opdenkamp/xbmc — pull request #309 by axmhari (2011-11-06 20:32:41+00:00)
Title: [FR] Add PVR recordings to the library

I've seen this topic already in some other issues, however I haven't seen it implemented yet. So I built up my own solution, which is of course more or less specialized for my needs and therefore probably not globally applicable. Anyway I would be glad if a solution similar to this one found its way to XBMC-PVR.

I have a set of more than 600 VDR movie and TV show recordings distributed on several external hard drives, which I wanted to add to the library. My VDR filesystem structure looks like that:

+<vdr base>
+External disk 1
+Films
+Film1
+Film2
+...
+TV Shows
+Show1
+Show2
+...
+External disk 2
+Films
+TV Shows
+...

When I started using XBMC-PVR somewhen in March the generated filenames for PVR-recordings seemed to change when recordings where added and removed. So I came up with my own fixed filename suitable for the library, which is simular to the original VDR file structure:

pvr://recordings/\/\/\.pvr

As I have only one client, I also removed the client ID. I'm wondering if it is independent of the client adding sequence by the way.

Furthermore I have added a solution for adding TV show episodes. The idea is to change the subtitle information (the "S" tag) in the VDR info file by hand to the following (with respective translation):

TV show - \ - \

The directory structure must be like in the following example (which is the standard structure, when VDR is programmed for repeated recordings):

\/\/\/\

The resulting filename for the episode in XBMC will than be:

pvr://recordings/\/\/\/\ - \ - \.pvr

Probably especially the TV show solution is not perfect but it's simple and it works well for VDR recordings.