Recordings...
Added by Kjell A. Stormo almost 12 years ago
Hello, just a question about the output of recordings.
Is it posible to sort the recordings by user?
So when you connect to Tvh. you only get the recordings you have set.
User A gets the recordings crated by user A, and user *
User B get recordings created by user B and user *
When all recordings are posted to clients, it takes much time to find a recording working (XBMC client)
and the list of recordings is growing rapidly.
And maybe a option box to check users alowed to your recording, from gui on the recording tab.
recordings started from client will only put connected user as user?
If posible please add this option, else put it in the future requests.
Kjell
Replies (1)
RE: Recordings... - Added by Prof Yaffle almost 12 years ago
You might be able to frig something with a post-processing script - tvheadend can pass the user who created the recording. From the help:
Post-processor command
Command to run after finishing a recording. The command will be run in background and is executed even if a recording is aborted or an error occurred.
Use the %e error formatting string to check for errors, the error string is empty if recording finished successfully.
Support format strings:
Format Description Example value
%f Full path to recording /home/user/Videos/News.mkv
%b Basename of recording News.mkv
%c Channel name BBC world
%C Who created this recording user
%t Program title News
%d Program description News and stories...
%e Error message Aborted by user
%S Start time stamp of recording, UNIX epoch 1224421200
%E Stop time stamp of recording, UNIX epoch 1224426600
(formatting gabled, but you can still follow it).
Now, XBMC would still point to the Recordings directory as defined in tvheadend - but you could perhaps sort by user using this mechanism, into separate subdirectories or similar?