From
time to
time, there has been comment on the fact that only a series recording can put recordings in a folder and the folder must be in the system's [My] Video directory.
Nonetheless the WebIf function for listing the schedule in
/mod/webif/html/sched/list/index.jim
appears to try to display a non-empty folder set for a single recording, even though that folder won't be used (however
a) the folder could only have been set by hacking the reservation
; b) this code uses a ucRecKind
value of 1 which seems to be otherwise unused, instead of 0: was this part of some incomplete experimental version?).
Here a technique for overcoming the "one folder deep" limitation was discussed, but of course that also only works for a series.
Here it was proposed that by transforming a single recording reservation into a series with a dummy series CRID and the same event information the limitation that would apply to a single recording could be overcome. As demonstrated at that time, this technique does work, and retains the scheduling characteristics of the original single recording because the same event is being used.
Is it considered that
sweeper is a sufficient solution, or is it worth implementing this feature?
The following changes would be needed:
- algorithm to make a dummy series CRID (guaranteed not to clash with broadcasters), eg crid://domain/path -> crid://domain.hpkg.tv/path;
- update
/mod/webif/html/sched/list/script.js
to enable the "Create Folder" menu item for single recordings;
- update
/mod/webif/html/sched/rpc/mkdir.jim
to add processing for the case of a single recording to change the reservation to a series recording linked to the same EPG event but with a dummy series CRID as above;
- create a
recmon
hook to delete the transformed series event once the recording has completed (on any status, or only on success?);
- optionally, remove the (attempted?) display of a non-functional folder for a single recording from
/mod/webif/html/sched/list/index.jim
.
Separately, if
/mod/webif/html/sched/list/index.jim
were modified to pass a "direxists" attribute on a series row (0 if folder not created), it would be possible to use that in the code that en/dis/ables the "Create Folder" menu item.