HTSP "path" configuration for recordings - Add top level directories to group "owners" recordings
Added by Rob M about 8 years ago
Hello,
Is there a way to configure the path of a recording sent to the HTSP client?
At the moment TVH sends the path created for the given recording from the base of the Recorder Profile. I was hoping it would send the directory from the base HTS path, instead of:
'path': '/Littlest Pet Shop/Littlest Pet Shop.2016-10-12.00-00.ts',
I would like:
'path': '/Fins TV/Littlest Pet Shop/Littlest Pet Shop.2016-10-12.00-00.ts',
I have the following setup:
Base Directory: /home/hts
Recording Profile: /home/hts/Joshs TV
Recording Profile: /home/hts/Fins TV
rob@tvheadend:/home/hts$ ls */* Fins TV/Littlest Pet Shop: Littlest Pet Shop.2016-10-09.13-02.ts Littlest Pet Shop.2016-10-11.15-33.ts Littlest Pet Shop.2016-10-11.16-31.ts Joshs TV/Franklin And Friends: Franklin And Friends.2016-10-09.13-32.ts Franklin And Friends.2016-10-09.14-00.ts Franklin And Friends.2016-10-10.07-00.ts
The idea is that in the Kodi GUI the TV would be split up so I don't have to search through the kids TV to see just my recordings.
When viewing the recordings I would be presented with the Profiles directories first, then after selecting a profile it would show just my recordings, or the kids recordings.
Is this possible with the current build? I can understand why it flattens the structure to help combine all the recordings into one list, it's just I would like it not to
Another avenue I did look at is moving the recordings as a post process. It appears that this could be possible using the REST API, calling the "/api/dvr/entry/filemoved" URI, however on my build (I have the latest from the unstable branch) this gives a 404 error back (others API calls do work, such as /api/dvr/autorec/grid). The idea was to move the files into a good directory structure which would be passed to the Kodi client and I would have my "Recording Profiles" recreated.
I got this API function from: https://tvheadend.org/issues/3818
I believe that you cannot move and update the file locations any other way?
I have also tried adding two directories in the autorec rule, but the "/" changes to a "-", resulting in one directory not two
I did post originally on the Kodi TVH PVR forum (which has screenshots of my ultimate aim):
http://forum.kodi.tv/showthread.php?tid=293283
Any help or tips on how I could patch my local copy would be much appreciated! I maybe missing something simple as I'm new to TVH!
Many thanks
Rob
PS A bit of background is that I've come from MythTV and loved the way the Recording Groups worked to split up the recordings, something that the family is used to and would not be happy to be changed. Having bought a SAT>IP box which MythTV doesn't support I'm came across Tvheadend which was lovely to setup and works really well, except for this little end user issue
Replies (1)
RE: HTSP "path" configuration for recordings - Add top level directories to group "owners" recordings - Added by Rob M about 8 years ago
So I've been playing a bit more with this, confirming that if I can indeed add another directory to the recordings I can get the Kodi client to group the recordings. However this is if I do everything manually and stop/start Tvheadend whilst I change the location.
I did find out that apt wasn't picking up the latest version from the unstable branch, I manually installed it and I am now on version:
tvheadend: version 4.1-2270~g9e85ef2
With the latest version, the API function /api/dvr/entry/filemoved is there and I think I understand how it is supposed to work?
- Move the file manually using the file system commands (mv)
- Call the /api/dvr/entry/filemoved passing the old location and new location
It will return a 400 message if I give the wrong path, but if I get it right Tvheadend crashes.
I'll raise a bug on this I guess it shouldn't be crashing