Page 1 of 1

Wrong episode match

Posted: 22 Jan 2020, 17:06
by Boost
Hi there

I just started using FileBot on my Synology DS918+. Using the Filebot Node, and testing stuff out.
It works great, but today it match a episode with a wrong one. Don't know how to find the error, so I come here :)

Using the Filebot Node, but it runs this:

Code: Select all

filebot -script 'fn:amc' /volume1/Film/FTPMirror/series --output /volume1/Film/y --action move -non-strict --order Airdate --conflict auto --lang da --def 'ut_label=TV' 'artwork=y' 'clean=y' 'deleteAfterExtract=y' 'excludeList=.excludes' --log all --log-file '/usr/local/filebot-node/data/filebot.log'
Excerpt from log file:

Code: Select all

Rename episodes using [TheTVDB] with [Airdate Order]
Auto-detected query: [drabscheferne]
Fetching episode data for [Drabscheferne - de uopklarede sager]
[MOVE] from [/volume1/Film/FTPMirror/series/Drabscheferne.S01E04.DANISH.720p.WEB.x264-BALLIN/ballin-drabscheferne.s01e04.danish.720p.web.x264/Drabscheferne.S01E04.DANISH.720p.WEB.x264-BALLIN/ballin-drabscheferne.s01e04.danish.720p.web.x264.mkv] to [/volume1/Film/y/TV Shows/Drabscheferne - de uopklarede sager/Season 01/Drabscheferne - de uopklarede sager - S01E03 - Drabet på 12-årige Susan.mkv]
Processed 1 files
As you can see the file name have S01E04, but it finds it as S01E03.
Link to the serie: https://www.thetvdb.com/series/drabsche ... official/1

Sysinfo:

Code: Select all

FileBot 4.9.0 (r7047)
JNA Native: 6.1.0
MediaInfo: 19.09
7-Zip-JBinding: 9.20
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-01-06 (r614)
Groovy: 2.5.9
JRE: OpenJDK Runtime Environment 13.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 991 MB Max Memory / 36 MB Used Memory
OS: Linux (amd64)
HW: Linux NAS 4.4.59+ #24922 SMP PREEMPT Mon Aug 19 12:13:37 CST 2019 x86_64 GNU/Linux synology_apollolake_918+
STORAGE: ext4 [/] @ 1.1 GB | ext4 [/volume1] @ 344 GB | btrfs [/volume2] @ 1.5 TB | ext4 [/volume1/@docker] @ 344 GB
DATA: /volume1/@appstore/filebot/data/Henrik
Package: SPK
Activate License [P11259512] on [Wed Jan 22 18:00:12 CET 2020]
License: FileBot License P11259512 (Valid-Until: 2021-01-24)
Done ヾ(@⌒ー⌒@)ノ

Re: Wrong episode match

Posted: 22 Jan 2020, 17:41
by rednoah
Looks like S01E04 didn't exist at the time, so it picked the "next best" one.


:idea: If you use strict mode then it'll simply fail for lack of a good match at the time:
viewtopic.php?t=4695


:idea: You can generally work around this issue, by processing files a few days after release date, or by ensuring yourself that all the episode information is entered a few days in advance.

Re: Wrong episode match

Posted: 22 Jan 2020, 19:46
by Boost
rednoah wrote: 22 Jan 2020, 17:41Looks like S01E04 didn't exist at the time, so it picked the "next best" one.
I tried running the script multiple times after I verified the show on thetvdb.com.
rednoah wrote: 22 Jan 2020, 17:41 :idea: If you use strict mode then it'll simply fail for lack of a good match at the time:
viewtopic.php?t=4695
If I rerun on the same file with strict mode, it does not find anything and aborts. Tried with both english and danish language.

The only difference I see is that for the E04 episode on thetvdb there is no english entry, only a danish one. There is both for episodes 1-3.

Re: Wrong episode match

Posted: 22 Jan 2020, 19:56
by rednoah
Episode 4 is not there as far as FileBot can tell:

Code: Select all

$ filebot -list --db TheTVDB --q "Drabscheferne"
Drabscheferne - de uopklarede sager - 1x01 - Episode 1
Drabscheferne - de uopklarede sager - 1x02 - Episode 2
Drabscheferne - de uopklarede sager - 1x03 - Episode 3
:idea: TheTVDB might be caching the results, so we don't see recently added episodes.

Re: Wrong episode match

Posted: 22 Jan 2020, 20:02
by Boost
It's beginning to make sense :)
I'll keep an eye on it, and I should probably use strict mode in the future.

Re: Wrong episode match

Posted: 22 Jan 2020, 20:24
by Boost
Sorry to bother again.
But if if do this:

Code: Select all

$filebot -list --db TheTVDB --q "Drabscheferne" --lang da
Drabscheferne - de uopklarede sager - 1x01 - Drabet på Stine Geisler
Drabscheferne - de uopklarede sager - 1x02 - Knivdrabet på Louise Borglit
Drabscheferne - de uopklarede sager - 1x03 - Drabet på 12-årige Susan
Drabscheferne - de uopklarede sager - 1x04 - Drabet på Cem Aydin


$filebot -list --db TheTVDB --q "Drabscheferne"
Drabscheferne - de uopklarede sager - 1x01 - Episode 1
Drabscheferne - de uopklarede sager - 1x02 - Episode 2
Drabscheferne - de uopklarede sager - 1x03 - Episode 3
So episode 4 is there in danish, but not in english. However I do choose danish as a language in Filebot, but seems it does an initial search in english first ?

Re: Wrong episode match

Posted: 22 Jan 2020, 21:42
by rednoah
Well, that works, fundamentally, at least now:

Code: Select all

$ filebot -rename *.mp4 --action TEST --lang Danish --log INFO
[TEST] from [Drabscheferne 1x04.mp4] to [Drabscheferne - de uopklarede sager - 1x04 - Drabet på Cem Aydin.mp4]

Re: Wrong episode match

Posted: 26 Jan 2020, 07:57
by Boost
I simply think TheTvDB API caching is broken. Several days ago I added the english episode 4 of "drabscheferne" and episode 2 of "Plastikkongerne"
FileBot sees the english episode 4 of "drabscheferne" but with no title. FileBot can't see episode 2 of "Plastikkongerne"

But I don't think FileBot is wrong, but simply that TheTVDB has so many API problems at the moment :(

Re: Wrong episode match

Posted: 26 Jan 2020, 09:09
by rednoah
As far as FileBot is concerned, it'll cache things ~5 days, due to the weekly nature of most TV Shows, but if you're manually adding data and wanna check it immediately, then you can clear the client-side cache manually:
viewtopic.php?t=1996