Page 1 of 1

Is it possible to do this in the gui.

Posted: 25 Oct 2013, 22:00
by bonelifer
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:

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}

Re: Is it possible to do this in the gui.

Posted: 25 Oct 2013, 22:30
by rednoah
Not really. I guess at best you can play around with the format and move files certain lastModified dates to some other folder.

I'm thinking something along the lines of this:

Code: Select all

{file.lastModified() < 1382716800000 ? 'X:/OLD/' : './'}

That's as much as the GUI can do for you anyway. Sounds more like a scripting task to me really.