Is it possible to do this in the gui.
Posted: 25 Oct 2013, 22:00
Is it possible to add to the naming logic used in the gui something that checks if destination file has a date older than a specified date. I'm going through my shows and re-recording most of them to remove the commercials, get better recordings(to replace recordings that have the stations weather map in the corner during weather events). So it would do something like:
if fileCreationDate is greater than or equal to 10-8-2013, then delete file and mv the newly created file to it's place.
Obviously I only want it doing this to recording that were created before I reinstalled mythtv. It's just been a pain to have to first manually delete these files since I'm doing this for a lot of shows.
Currently using this Episode Format:
if fileCreationDate is greater than or equal to 10-8-2013, then delete file and mv the newly created file to it's place.
Obviously I only want it doing this to recording that were created before I reinstalled mythtv. It's just been a pain to have to first manually delete these files since I'm doing this for a lot of shows.
Currently using this Episode Format:
Code: Select all
{["T:", "Y:"].collect{ drive -> def a=n; new File('Y:/incoming/scripts/names.csv').splitEachLine(';'){if (n==it[0]) a=it[1]}; return new File(drive+"/Videos/TV/", a)}.sort{ a,b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{episode.special ? "Season "+s.pad(2) : "Season "+s.pad(2)}/{def a; new File('Y:/incoming/scripts/names.csv').splitEachLine(';'){ if (n == it[0]) a = it[1]}; a ?: n.upperInitial().replaceTrailingBrackets()} - [{episode.special ? "00x"+special.pad(2) : s.pad(2) + "x" + e.pad(2)}] - {t}