Feature #3011
Allow to modify recording's to-be-saved-by-title using external programs or scripts
0%
Description
In my country, Finland, they put extra information to the programs title. For example, The Simpsons are "Simpsonit (7)" or "Simpsonit (12)" depending on the content rating (normal episode vs horror episode). In a result, this makes multiple subdirectories for one program. When this happens with many different TV shows, it's hard to keep track which episode is the newest, plus of course the many many extra folders that are unnecessary.
I've heard something of grabbing and modifying the EPG, but I'm not sure how to do that. Post-processing script can't do this either because it tvheadend losts track of the file?
If I could use sed or some script to decide the filename / title before the recording starts, it would work perfertly. Like put a checkbox "run by shell" next to Format String in the recording options would allow to use sed-command to format it.
$(echo $t | sed 's/ (\ */(/g' | sed -e 's/\s(/(/g'|sed 's/([^)]*)//g') makes "Simpsonit (7)" to "Simpsonit"
Thanks for this great program! If this can't be implemented somehow, I'll figure something out.