King & Maxwell; AMC script incorrect/Manual Filebot correct

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
WildernessJ
Posts: 5
Joined: 27 Jun 2013, 02:28

King & Maxwell; AMC script incorrect/Manual Filebot correct

Post by WildernessJ »

First, let me say thank you so much for developing and maintaining this amazing program. I know its the reason my automated media center is actually an automated and mostly a hands-off experience.

I've been using the AMC script and it works beautifully - I've only encountered 2 shows where it didn't work correctly, because of the "&" in their title (Franklin & Bash, and King & Maxwell). The reason being is that all the file names I'd download would be along the lines of Franklin.And.Bash and the script wouldn't know that it should be looking for & instead of and. A simple replace function later and my incoming files are named "Franklin & Bash.yadayada" and now filebot correctly identifies the show.

However, this doesn't work with King & Maxwell. It seems that no matter how I rename the file, the AMC script always comes back to it being just a show called King. When I open up filebot and manually drop the filename into it and select TheTVDB a pop-up appears which lists various "king" related shows with King (the one the AMC script always picks) as the first option. BUT if I hit ignore on that little pop-up, the suggested re-name that Filebot gives me is for the show King & Maxwell with the correct episode information.

So what exactly am I doing when I hit the "ignore" option on the list of shows that pop up when I manually drop that file name into filebot? Is there a way to replicate that or otherwise come up with the correct match for this show using the AMC script? I've spent a few hours trying different ways that I could think of based on searching these forums but I've had no success. In the end, having one show that this doesn't work for is a fairly small concern, as the script has does everything I've asked of it for every other show and movie I've acquired but I have a bit of OCD about how everything looks so I figured it can't hurt to ask.
User avatar
rednoah
The Source
Posts: 22980
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: King & Maxwell; AMC script incorrect/Manual Filebot corr

Post by rednoah »

Works for me. Try using the latest FileBot version. The whole and/& stuff should have been solved months ago when I build in my own search engine.

Here's what I get from the AMC script:

Code: Select all

Input: D:\testdata\AMC-TEST\Franklin & Bash S01E01.mp4
Input: D:\testdata\AMC-TEST\King & Maxwell S01E01.mp4
Group: [tvs:Franklin Bash] => [Franklin & Bash S01E01.mp4]
Group: [tvs:King Maxwell] => [King & Maxwell S01E01.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [Franklin Bash]
Fetching episode data for [Franklin & Bash]
[COPY] Rename [D:\testdata\AMC-TEST\Franklin & Bash S01E01.mp4] to [D:\output\TV Shows\Franklin & Bash\Season 01\Franklin & Bash - S01E01 - Pilot.mp4]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [King Maxwell]
Fetching episode data for [King & Maxwell]
[COPY] Rename [D:\testdata\AMC-TEST\King & Maxwell S01E01.mp4] to [D:\output\TV Shows\King & Maxwell\Season 01\King & Maxwell - S01E01 - Pilot.mp4]
Processed 1 files
If you send me the paths that don't work I can do further testing.

EDIT:
Got it. It's the other way around that doesn't work. I'll look into that.
:idea: Please read the FAQ and How to Request Help.
WildernessJ
Posts: 5
Joined: 27 Jun 2013, 02:28

Re: King & Maxwell; AMC script incorrect/Manual Filebot corr

Post by WildernessJ »

Thank you very much for the quick reply. I'm not sure why I don't get the same results - I installed the latest (I believe) version of filebot yesterday before I began playing around with this. Here's what I get:

Code: Select all

C:\Users\Holdy\Documents>filebot -script fn:amc "C:\Users\Holdy\Downloads\Test"
--output "C:\Users\Holdy\Downloads\Test" --action copy --conflict skip -non-strict
Argument: C:\Users\Holdy\Downloads\Test
Input: C:\Users\Holdy\Downloads\Test\King & Maxwell - S01E03.mp4
Group: [tvs:King] => [King & Maxwell - S01E03.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [King, King Maxwell]
Fetching episode data for [King]
Fetching episode data for [Kings]
Fetching episode data for [Kingpin]
Fetching episode data for [Kingdom]
Fetching episode data for [King (2011)]
Fetching episode data for [King's War]
Fetching episode data for [King Maker]
Fetching episode data for [King Rollo]
Fetching episode data for [King's Dream]
Fetching episode data for [King & Maxwell]
Fetching episode data for [King Geunchogo]
Fetching episode data for [King of Dramas]
Fetching episode data for [King's Crossing]
Fetching episode data for [King Arthur's Disasters]
Fetching episode data for [King of Baking, Kim Tak Goo]
Fetching episode data for [King Arthur - The Truth Behind The Legend]
[COPY] Rename [C:\Users\Holdy\Downloads\Test\King & Maxwell - S01E03.mp4] to [C:
\Users\Holdy\Downloads\Test\TV Shows\King\Season 01\King - S01E03 - In Near Under and Out the Other.mp4]
Processed 1 files
Done ?(?????)?

C:\Users\Holdy\Documents>filebot -version
FileBot 3.61 (r1646) / Java(TM) SE Runtime Environment 1.7.0_21
User avatar
rednoah
The Source
Posts: 22980
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: King & Maxwell; AMC script incorrect/Manual Filebot corr

Post by rednoah »

King & Maxwell should work. But since you've already renamed the file once with filebot (I assume) it has set some xattr metadata and it's using that for matching.

Use this to clear metadata:

Code: Select all

filebot -script fn:xattr --action clear /path/to/files
And when testing you can use --action test, that'll automatically disable any use of xattr.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22980
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: King & Maxwell; AMC script incorrect/Manual Filebot corr

Post by rednoah »

Update my internal tvdb index with those aliases to make it work for Franklin and Bash and King and Maxwell. Just clear the cache and try again. On files that have been mismatched before you might wanna run the xattr-delete script beforehand.

Here's what I get now:

Code: Select all

Input: D:\testdata\AMC-TEST\Franklin and Bash S01E01.mp4
Input: D:\testdata\AMC-TEST\King and Maxwell S01E01.mp4
Group: [tvs:Franklin and Bash] => [Franklin and Bash S01E01.mp4]
Group: [tvs:King and Maxwell] => [King and Maxwell S01E01.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [Franklin and Bash]
Fetching episode data for [Franklin & Bash]
[COPY] Rename [D:\testdata\AMC-TEST\Franklin and Bash S01E01.mp4] to [D:\output\TV Shows\Franklin & Bash\Season 01\Franklin & Bash - S01E01 - Pilot.mp4]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [King and Maxwell]
Fetching episode data for [King & Maxwell]
[COPY] Rename [D:\testdata\AMC-TEST\King and Maxwell S01E01.mp4] to [D:\output\TV Shows\King & Maxwell\Season 01\King & Maxwell - S01E01 - Pilot.mp4]
Processed 1 files
:idea: Please read the FAQ and How to Request Help.
WildernessJ
Posts: 5
Joined: 27 Jun 2013, 02:28

Re: King & Maxwell; AMC script incorrect/Manual Filebot corr

Post by WildernessJ »

It is working now - thank you for all your help, it is much appreciated!

It was long overdue, and I couldn't do a lot, but a donation sent your way - thanks again :)
User avatar
rednoah
The Source
Posts: 22980
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: King & Maxwell; AMC script incorrect/Manual Filebot corr

Post by rednoah »

I guess that fix was overdue, didn't know it was broken.

PS: 2-digit donations are VERY much appreciated. Consider yourself as one of very few. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply