Any way i could improve my matching results?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
pricejt
Posts: 16
Joined: 01 Dec 2016, 16:50

Any way i could improve my matching results?

Post by pricejt »

I am hoping someone has some ideas on how i could improve my matching results.

Take the below example.

Code: Select all

Input: /mnt/Media/Torrents/UnProcessed/Beyond.S01E07.HDTV.x264-BATV[rarbg]/Beyond.S01E07.HDTV.x264-BATV.mkv
Input: /mnt/Media/Torrents/UnProcessed/Beyond.S01E10.HDTV.x264-BATV[rarbg]/Beyond.S01E10.HDTV.x264-BATV.mkv
Group: [tvs:beyond] => [Beyond.S01E07.HDTV.x264-BATV.mkv, Beyond.S01E10.HDTV.x264-BATV.mkv]
Get [English] subtitles for 2 files
OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [Beyond]
Fetching episode data for [Beyond]
Fetching episode data for [Beyond (2005)]
Fetching episode data for [Beyond Belief]
Fetching episode data for [Beyond the Tank]
Fetching episode data for [Beyond the Cosmos]
Apply Filter: {age <7}
Include [Beyond - 1x01 - Pilot]
Include [Beyond - 1x02 - Tempus Fugit]
Failed to read media encoding date: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class net.filebot.mediainfo.MediaInfoLibrary
Failed to read media encoding date: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class net.filebot.mediainfo.MediaInfoLibrary
[MOVE] Rename [/mnt/Media/Torrents/UnProcessed/Beyond.S01E07.HDTV.x264-BATV[rarbg]/Beyond.S01E07.HDTV.x264-BATV.mkv] to [/mnt/Media/Media/TV Shows/Beyond/Season 01/Beyond - S01E01 - Pilot.mkv]
[MOVE] Rename [/mnt/Media/Torrents/UnProcessed/Beyond.S01E10.HDTV.x264-BATV[rarbg]/Beyond.S01E10.HDTV.x264-BATV.mkv] to [/mnt/Media/Media/TV Shows/Beyond/Season 01/Beyond - S01E02 - Tempus Fugit.mkv]
Processed 2 files
This is what my script looks like calling amc script.
-script fn:amc --output "/mnt/Media/Media" --log-file /home/pi/amc.log --action move --conflict override -non-strict --def music=y subtitles=en excludeList=amc.txt --filter "age <7" --def clean=y "%F"

All of these episodes errored on the same day 1/2/2017 so my age filter really doesn't help other than to get the correct show. It doesn't seem like it took into consideration the ep number after the age filter.

Thanks
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Any way i could improve my matching results?

Post by rednoah »

Your age filter is the problem. If you remove the filter then it'll work.

Code: Select all

Apply Filter: {age < 7}
Include [Beyond - 1x01 - Pilot]
Include [Beyond - 1x02 - Tempus Fugit]
Your filter forces FileBot to choose between 1x01 and 1x02 and thus won't be able to come up with the correct match because that has been explicitly excluded by you.

Since {age} throws an Exception if it is negative, --filter "{age < 7}" will include only episodes that have been aired in the last 7 days and exclude episodes that have been aired before that or have not been aired yet.

e.g.

Code: Select all

$ filebot -list --q "beyond" --format "{n} - {sxe} - {airdate} - {t}"
Beyond - 1x01 - 2017-01-02 - Pilot
Beyond - 1x02 - 2017-01-02 - Tempus Fugit
Beyond - 1x03 - 2017-01-09 - Ties That Bind
Beyond - 1x04 - 2017-01-16 - The Man in the Yellow Jacket
Beyond - 1x05 - 2017-01-23 - Fancy Meeting You Here
Beyond - 1x06 - 2017-01-30 - Celeste
Beyond - 1x07 - 2017-02-06 - The Hour of the Wolf
Beyond - 1x08 - 2017-02-13 - Last Action Hero
Beyond - 1x09 - 2017-02-20 - Out of Darkness
Beyond - 1x10 - 2017-02-27 - Into the Light
Beyond - 0x01 - 2017-01-01 - Sneak Preview
:?: How come you're processing files 2 months before they're even aired? :lol:
:idea: Please read the FAQ and How to Request Help.
pricejt
Posts: 16
Joined: 01 Dec 2016, 16:50

Re: Any way i could improve my matching results?

Post by pricejt »

@rednoah That is what i don't understand why the age filter is eliminating the other episodes.
If you go here http://epguides.com/beyond/ all episodes aired on January 2nd. When it filtered by age it should have returned every episode back as a possible match then tried to match based on the episode number. It looks like it returned back only top 2 records regardless of them all airing on the same day.

If i remove the age filter i get other show mismatches so removing it isn't an option.
pricejt
Posts: 16
Joined: 01 Dec 2016, 16:50

Re: Any way i could improve my matching results?

Post by pricejt »

I see on thetvdb they have it wrong.
http://thetvdb.com/?tab=season&seriesid ... 3879&lid=7

The season was all released at the same time.
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Any way i could improve my matching results?

Post by rednoah »

1.
TheTVDB says Beyond Episode 1x10 will air on 2017-02-27, hence {age} is undefined for this episode in accordance with TheTVDB data.


2.
pricejt wrote:If i remove the age filter i get other show mismatches so removing it isn't an option.
Everything has pros and cons. If there was a magical perfect solution that works for everyone all the time, then that would be default. ;)

:idea: You might be able to come up with your own --filter logic for your exact needs.
:idea: Please read the FAQ and How to Request Help.
Post Reply