I am currently using this code to naming my TV series episodes to my liking. It auto detects the contents resolution and cleans up the naming.
Code: Select all
Z:/TV/{n.colon(' - ')replaceTrailingBrackets()}/{'Season '+s}/{n.colon(' - ')replaceTrailingBrackets()} - {'s'+s.pad(2)+'e'+es*.pad(2).join('-e')}{' - '+vf.match(/720[pP]|1080[pP]/)} - {t.colon(' - ')}
I like to download both SD and HD versions of the same series if I can, and store them in separate folders ("Season 1" and "Season 1 - HD"). The code I am using puts all the episodes from the same season in the same folder, regardless of resolution. Is there any way to make a code that makes an output folder depend on the content it processes?
Something like this
Better.Call.Saul.S04E10.720p.HDTV.x264-AVS --> Z:/TV/Better Call Saul/Season 4 - HD/Better Call Saul - s04e10 - 720p - Winner
Better.Call.Saul.S04E10.HDTV.x264-SVA --> Z:/TV/Better Call Saul/Season 4/Better Call Saul - s04e10 - Winner
(Not like this viewtopic.php?t=6141, as that already have the file structure made, where as the one I want will need to make a new structure for each new season/series it adds)