Determining completion of a Season or Series

Any questions? Need some help?
Post Reply
RustEE
Posts: 3
Joined: 27 Oct 2013, 04:42

Determining completion of a Season or Series

Post by RustEE »

I have a manual process that I'd like to automate:

1. I manually review the Season (e.g."Season 02") to ensure that all episodes are there, cross-referncing this to TVRage.com, for example;
2. When I'm happy that all episodes are there, I rename the folder to identify it is complete (e.g. "Season 02 (Complete)";
3. I repeat step 1 & 2 for the series. For example, "Dilbert" with all it's season subfolders becomes "Dilbert (Complete)"

I look forward to the guru's on this forum lending a hand. Thanks in advance.
User avatar
rednoah
The Source
Posts: 23027
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Determining completion of a Season or Series

Post by rednoah »

You'll have to figure this out yourself I guess. Here's some ideas that came to mind.

Basic script to find missing episodes:
http://www.filebot.net/forums/viewtopic ... =869#p5518



Advanced Format that'll cross-check your file/episode mappings vs full episodelist data and sort files into Season N or Season N (Complete) folders accordingly:

Code: Select all

{n}/Season {s.pad(2)}{model.values().containsAll(episodelist.findAll{it.season == s}) ? ' (COMPLETE)' : ''}/{n} {sxe} {t}
(this will only work if you rename all episodes of the season at once)
:idea: Please read the FAQ and How to Request Help.
RustEE
Posts: 3
Joined: 27 Oct 2013, 04:42

Re: Determining completion of a Season or Series

Post by RustEE »

Thanks very much rednoah. I'll give that a go.
Cheers.
RustEE
Posts: 3
Joined: 27 Oct 2013, 04:42

Re: Determining completion of a Season or Series

Post by RustEE »

I gave the code a go.

It's probably pretty clear by the screenshot attached, that I'm lacking knowledge on the groovy coding side of things.

Did I need to simply create a .groovy file with the code supplied, or is there more to it?

Thanks for your patience.
User avatar
rednoah
The Source
Posts: 23027
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Determining completion of a Season or Series

Post by rednoah »

The code I pasted is a format expression. If you do filebot -rename it's what you'd pass as --format.

Here's how it looks if you set this format in the GUI:
https://twitter.com/filebot_renamer/sta ... 69/photo/1


FileBot format expressions and groovy scripting is all based on Groovy, but it's two different things entirely really.
:idea: Please read the FAQ and How to Request Help.
Post Reply