Record defined Series/Episodes
Posted: Sat Jan 25, 2020 12:00 am
...just as a preface: I don't want to high-jack this forum! But since it is important for me and I discovered a bug in a previously posted file (viewtopic.php?p=132906#p132906) I would like to correct this (unfortunately there is no "edit" of old posts available) :
Task:
how to record defined episodes of a series, like
record: = s02e05
record: < s03e10
record: > s05e00
the batch script should do this, now corrected for troubles of "octal" numbers having leading "0"...
- extract the txt, rename as "_Serie.bat" and copy into a Directory created within epg123 Directory (parallel to .../output; e.g. .../recreq); I have epg123 installed outside /program files... so; I'm not sure whether it will work "inside" (not tested)...
- you can change certain Default Settings:
+ directory for temporal files; default is "dr=", which means the files stay in the dir of the batch; I have directed them to my RAM-drive: "dr=x:\"
+ correction for UTC (0/1); normally not needed, so the default is "0";
+ create log-file; default is "1";
+ should Mediacenter (which is opened during the process) be closed at the end?; default is "1" (yes)
- the "_Serie.bat" has to be run as admin; I have set it up as a scheduled Task once a week (with 14 days of time line, this should be enough);
- basically this code performs a reverse Engineering on the "epg123.mxf" (it does not change it); on my small low power HTPC-machine the parsing takes ~1h (~50 Sat-channels);
- during the first run (do it manually; right-click as admin) the Batch will create a "_rec.ini" and stop; do not create the file any other way; read line 1+2 if the ini; don't delete them;
- you should now edit lines 3 and following (add lines as needed) with the series you want (it is possible to have the same series in more than one line, like "BLA = s05e03" and "BLA > s06e00")
- during the next run also a vbs file will be created which is needed
- there will be also for every series a "*_done.txt" created which contains the already recorded episodes; do not delete them
What this code does is to create a “*.c2r” file ("click to record") for each episode and inject it into Mediacenter; since that means Mediacenter incorporates the info on its own, the risk to destroy the database is minimized (but maybe not zero!); I tried to do it via recordings backup but obviously this fails because a critical ID of the channels in the .mxf is changing every day… kills the database…
Edit: ...corrected silly error with brackets in the _rec.ini creation step, sorry...
Task:
how to record defined episodes of a series, like
record: = s02e05
record: < s03e10
record: > s05e00
the batch script should do this, now corrected for troubles of "octal" numbers having leading "0"...
- extract the txt, rename as "_Serie.bat" and copy into a Directory created within epg123 Directory (parallel to .../output; e.g. .../recreq); I have epg123 installed outside /program files... so; I'm not sure whether it will work "inside" (not tested)...
- you can change certain Default Settings:
+ directory for temporal files; default is "dr=", which means the files stay in the dir of the batch; I have directed them to my RAM-drive: "dr=x:\"
+ correction for UTC (0/1); normally not needed, so the default is "0";
+ create log-file; default is "1";
+ should Mediacenter (which is opened during the process) be closed at the end?; default is "1" (yes)
- the "_Serie.bat" has to be run as admin; I have set it up as a scheduled Task once a week (with 14 days of time line, this should be enough);
- basically this code performs a reverse Engineering on the "epg123.mxf" (it does not change it); on my small low power HTPC-machine the parsing takes ~1h (~50 Sat-channels);
- during the first run (do it manually; right-click as admin) the Batch will create a "_rec.ini" and stop; do not create the file any other way; read line 1+2 if the ini; don't delete them;
- you should now edit lines 3 and following (add lines as needed) with the series you want (it is possible to have the same series in more than one line, like "BLA = s05e03" and "BLA > s06e00")
- during the next run also a vbs file will be created which is needed
- there will be also for every series a "*_done.txt" created which contains the already recorded episodes; do not delete them
What this code does is to create a “*.c2r” file ("click to record") for each episode and inject it into Mediacenter; since that means Mediacenter incorporates the info on its own, the risk to destroy the database is minimized (but maybe not zero!); I tried to do it via recordings backup but obviously this fails because a critical ID of the channels in the .mxf is changing every day… kills the database…
Edit: ...corrected silly error with brackets in the _rec.ini creation step, sorry...