vdr-plugin-vnsiserver icon indicating copy to clipboard operation
vdr-plugin-vnsiserver copied to clipboard

Two recordings with same name in "non-VDR" subdirectory. One deleted, both gone?

Open M-Reimer opened this issue 7 years ago • 6 comments

Some days ago, the following happened:

  • I have two recordings with exactly the same name (which would show up as two equal entries in plain VDR and is grouped into a folder on Kodi side with your latest changes).
  • I entered this directory (non-visible in VDR, visible in Kodi) and deleted one recording.
  • Now Kodi somewhat reacted unexpected and threw me out of the directory.
  • Searching for the second recording now was unsuccessful. Seems like both are gone.

I'm not 100% sure if this really is a major problem and I don't have any more recordings, I want to loose. So please just double check that your new code (with the directories, usually not visible directly in VDR) really works the way it should, especially if it gets to deleting recordings.

M-Reimer avatar Mar 09 '17 16:03 M-Reimer

What was the value of the new setting during your tests?

FernetMenta avatar Mar 09 '17 18:03 FernetMenta

I used the "new way", meaning that the "extra directories" are shown in Kodi. What I have in this case, are two layers of directories. For example, if I have several recordings, named "Some Recording", then VDR itself will just show several "Some Recording" items in the recording list. Kodi with VNSI now has only one "Some Recording". If I enter this directory, I have a list of entries with just the name "Some Recording". In my case, I had exactly two recordings with the same name. They only differed in the recording date and time. So I entered the first directory with the name of my recording and had two entries in there, again with my recording name. When deleting one of them, it seems that the whole thing falls back to the case that only one recording with this name exists, which seems to have caused some trouble.

M-Reimer avatar Mar 10 '17 16:03 M-Reimer

Thanks for the detailled report. I will investigate.

FernetMenta avatar Mar 10 '17 16:03 FernetMenta

I about to reproduce but I am not sure if I got this right. Look at this example:

~/MyVideos/Tagesschau/2013-03-13.16.03.1-0.rec

A second recording with the same name "Tagesschau" would be in the same OS folder:

xbmc@j4205:~/MyVideos/Tagesschau$ ls -ls total 8 4 drwxrwxr-x 2 xbmc video 4096 Mar 13 2013 2013-03-13.16.03.1-0.rec 4 drwxrwxr-x 2 xbmc video 4096 Mar 13 2013 2013-03-13.16.08.1-0.rec

Is this the situation you are referring to?

FernetMenta avatar Mar 11 '17 13:03 FernetMenta

Yes. This is the situation where I potentially lost both recordings when trying to delete one of them.

M-Reimer avatar Mar 11 '17 13:03 M-Reimer

Before. You see that Kodi shows the same structure as the OS file system. The folder "Tagesschau" does exist (vdr does not show it) screenshot001

xbmc@j4205:~/MyVideos/testing/Tagesschau$ ls -la total 16 drwxrwxr-x 4 xbmc xbmc 4096 Mar 11 15:40 . drwxrwxr-x 3 xbmc xbmc 4096 Mar 11 15:40 .. drwxrwxr-x 2 xbmc xbmc 4096 Mar 11 15:40 2013-03-13.16.03.1-0.rec drwxrwxr-x 2 xbmc xbmc 4096 Mar 11 15:40 2013-03-13.16.08.1-0.rec

After having deleted one recording. The OS folder "Tagesschau" is not shown by Kodi anymore. screenshot002

But it still exists:

xbmc@j4205:~/MyVideos/testing/Tagesschau$ ls -la total 16 drwxrwxr-x 4 xbmc xbmc 4096 Mar 11 15:44 . drwxrwxr-x 3 xbmc xbmc 4096 Mar 11 15:40 .. drwxrwxr-x 2 xbmc xbmc 4096 Mar 11 15:40 2013-03-13.16.03.1-0.rec drwxrwxr-x 2 xbmc xbmc 4096 Mar 11 15:40 2013-03-13.16.08.1-0.del

This is desired behaviour and saves an additional click (when playing a recoding), if only a single *.rec file is in a folder. In other words, the folder is only shown if there are more than a single *.rec file in this folder.

FernetMenta avatar Mar 11 '17 14:03 FernetMenta