AMC + UK Soap - parsing date as series/episode info

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
chrisbanes
Posts: 2
Joined: 28 Dec 2017, 10:07

AMC + UK Soap - parsing date as series/episode info

Post by chrisbanes »

Hi,

I have filebot + AMC organising my media automatically and it has worked great so far. However I've started obtaining certain UK Soaps (for the girlfriend) which tend to be referenced by date, and this chokes AMC.

For instance:

Code: Select all

Run script [/opt/filebot/amc.groovy] at [Thu Dec 28 10:42:29 CET 2017]
Parameter: ut_kind = multi
Parameter: ut_dir = xxx/torrents/data/Hollyoaks 1st Dec 2017 HDTV (Deep61) [WWRG]
Parameter: subtitles = en
Parameter: artwork = false
Parameter: extractFolder = xxx
Parameter: skipExtract = n
Parameter: music = y
Input: xxx/Hollyoaks 1st Dec 2017 HDTV (Deep61) [WWRG]/Hollyoaks 1st Dec 2017 HDTV (Deep61) [WWRG].mp4
xattr: [Hollyoaks 1st Dec 2017 HDTV (Deep61) [WWRG].mp4] => [Hollyoaks - 20x17 - A Silent Witness]
Hollyoaks 1st Dec 2017 HDTV (Deep61) [WWRG].mp4 [series: Hollyoaks, movie: null]
Group: [tvs:hollyoaks, mov:null] => [Hollyoaks 1st Dec 2017 HDTV (Deep61) [WWRG].mp4]
Get [English] subtitles for 1 files
CmdlineException: OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [Hollyoaks]
Fetching episode data for [Hollyoaks]
Fetching episode data for [Hollyoaks Later]
Fetching episode data for [Hollyoaks: In the City]
[SYMLINK] From [xxx/Hollyoaks 1st Dec 2017 HDTV (Deep61) [WWRG]/Hollyoaks 1st Dec 2017 HDTV (Deep61) [WWRG].mp4] to [xxx/media/TV Shows/Hollyoaks/Season 20/Hollyoaks - S20E17 - A Silent Witness.mp4]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
As you can see, it seems to be parsing 2017 as S20E17. Any ideas? I tried to find the parseDate function to tweak it, but I'm guessing its a filebot or groovy framework method.

If I rename the folder to "Hollyoaks 2017.12.01 HDTV (Deep61) [WWRG]" filebot picks the date correctly, so I could fix it with some preprocessing.
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC + UK Soap - parsing date as series/episode info

Post by rednoah »

1st Dec 2017 is not a supported date pattern that FileBot can recognize. You could write a custom script to pre-process files and translate 1st Dec 2017 to 2017.12.01 which will be recognized and matched correctly.

Probably best to use the GUI if it's a one-time thing:
viewtopic.php?f=3&t=2072
:idea: Please read the FAQ and How to Request Help.
chrisbanes
Posts: 2
Joined: 28 Dec 2017, 10:07

Re: AMC + UK Soap - parsing date as series/episode info

Post by chrisbanes »

Yeah I guessed. Thanks for the help, I'll script it up.
Post Reply