Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

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

Open
M-Reimer opened this issue Mar 9, 2017 · 6 comments

Comments

@M-Reimer
Copy link

M-Reimer commented Mar 9, 2017

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.

@FernetMenta
Copy link
Owner

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

@M-Reimer
Copy link
Author

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.

@FernetMenta
Copy link
Owner

Thanks for the detailled report. I will investigate.

@FernetMenta
Copy link
Owner

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?

@M-Reimer
Copy link
Author

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

@FernetMenta
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants