Is it possible to do this in the gui.

Any questions? Need some help?
Post Reply
User avatar
bonelifer
Power User
Posts: 83
Joined: 23 Mar 2013, 18:27

Is it possible to do this in the gui.

Post 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}
User avatar
rednoah
The Source
Posts: 23927
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply