Determine if Series/Show Has Ended
Posted: 04 Jun 2015, 13:44
Ok, pertinent information first.
System: Linux - Slackware64 14.1
Java: OpenJDK 7u79 (Iced Tea 2.5.5)
Filebot: 4.2 (Iced Tea doesn't have a build based on JDK8 yet)
Installed: downloaded pre-built binary since I could not find compile instructions
Use: GUI use only... I like to look everything over before it's renamed.
I currently sort my TV series onto two different drives. One is mounted to /share/TV/ongoing, and the other is /share/TV/completed. These are obviously for shows still airing vs cancelled/ended by the network. Currently, I have two identical rules (except for the locations) rules that I just switch between when I'm dealing with one show or another, but with all the configuration options I've seen, I'm thinking there's likely an ability to determine if the show has ended. I've seen expressions that determine if the season is complete, but I haven't seen any if the show itself is complete (I know the information is available on thetvdb.com, because I usually reference that if I am unsure whether a show will get new episodes).
Here is my current expression:
If a show is still airing, I'd like it in /share/TV/ongoing/og-sorted, but if it has ended, I'd like it in /share/TV/completed/cm-sorted. I've tried doing a lot of digging to find this out, but I've come up empty. In fact, I am amazed at what people are able to come up with, because I haven't found a good chunk of it documented anywhere (like whoever had posted the code for determining if a season is completed or not -- how did they figure that out? I couldn't find it documented anywhere else).
Thanks for all your work on this. It's been a lifesaver since it works on Linux and it is much better at determining the correct season/episode than therenamer.
System: Linux - Slackware64 14.1
Java: OpenJDK 7u79 (Iced Tea 2.5.5)
Filebot: 4.2 (Iced Tea doesn't have a build based on JDK8 yet)
Installed: downloaded pre-built binary since I could not find compile instructions
Use: GUI use only... I like to look everything over before it's renamed.
I currently sort my TV series onto two different drives. One is mounted to /share/TV/ongoing, and the other is /share/TV/completed. These are obviously for shows still airing vs cancelled/ended by the network. Currently, I have two identical rules (except for the locations) rules that I just switch between when I'm dealing with one show or another, but with all the configuration options I've seen, I'm thinking there's likely an ability to determine if the show has ended. I've seen expressions that determine if the season is complete, but I haven't seen any if the show itself is complete (I know the information is available on thetvdb.com, because I usually reference that if I am unsure whether a show will get new episodes).
Here is my current expression:
Code: Select all
/share/TV/ongoing/og-sorted/{n.replaceAll(/[:|]/, "- ")}/{n.replaceAll(/[:|]/, "- ")} - {S00E00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").replaceAll(/[:|]/, "- ")}
Thanks for all your work on this. It's been a lifesaver since it works on Linux and it is much better at determining the correct season/episode than therenamer.