Debug logging of matching logic

Any questions? Need some help?
Post Reply
despian
Posts: 15
Joined: 05 Oct 2016, 01:47

Debug logging of matching logic

Post by despian »

Hi rednoah, thanks for the excellent software 😊

I have an issue with an episode mismatch (Archer.S03E11.mkv => Archer (2009).S02E01.Swiss Miss.mkv). I suspect it's due to incorrect metadata in the file. But I wanted to know if there is any option to provide debug output on how matches are actually being made? I had a little search but couldn't seem to find the relevant cli option.

I tried `--log all` and `--def net.filebot.logging.debug=INFO|DEBUG|ALL` but they didn't seem to do anything.

Also, if it is metadata related, which tool is FB using to read it, or can you suggest a good cli tool I can use?

Command and log output:

Code: Select all

filebot --log all -no-xattr -script fn:amc --output /mnt/whitebox/media --log-file /var/log/filebot/amc.log --action copy --conflict skip -non-strict --def kind=multi "ut_title=Archer.S03E11.mkv" "ut_dir=/tmp/filebot/archer.2009.s03e11.720p.bluray.x264-reward/Archer.2009.S03E11.720p.BluRay.X264-REWARD/Archer.S03E11.mkv" "seriesFormat=tv/{n}/Season {s}/{n}.{s00e00}.{t}" "movieFormat=movies/{n} ({y})/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}" extractFolder=/tmp/filebot clean=y emby=localhost:xxx net.filebot.logging.debug=INFO

Run script [fn:amc] at [Sun Jul 31 11:39:23 UTC 2022]
Parameter: kind = multi
Parameter: ut_title = Archer.S03E11.mkv
Parameter: ut_dir = /tmp/filebot/archer.2009.s03e11.720p.bluray.x264-reward/Archer.2009.S03E11.720p.BluRay.X264-REWARD/Archer.S03E11.mkv
Parameter: seriesFormat = tv/{n}/Season {s}/{n}.{s00e00}.{t}
Parameter: movieFormat = movies/{n} ({y})/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}
Parameter: extractFolder = /tmp/filebot
Parameter: clean = y
Parameter: emby = *****
Parameter: net.filebot.logging.debug = INFO
Input: /tmp/filebot/archer.2009.s03e11.720p.bluray.x264-reward/Archer.2009.S03E11.720p.BluRay.X264-REWARD/Archer.S03E11.mkv
Group: {Series=archer} => [Archer.S03E11.mkv]
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [Archer]
Fetching episode data for [Archer]
└─ 6 episodes
Fetching episode data for [Archer (2009)]
└─ 142 episodes
Fetching episode data for [Archer's Goon]
└─ 6 episodes
Skipped [/tmp/filebot/archer.2009.s03e11.720p.bluray.x264-reward/Archer.2009.S03E11.720p.BluRay.X264-REWARD/Archer.S03E11.mkv] because [/mnt/whitebox/media/tv/Archer (2009)/Season 2/Archer (2009).S02E01.Swiss Miss.mkv] already exists
Processed 0 files
Finished without processing any files
Failure (×_×)⌒☆
Sysinfo:

Code: Select all

FileBot 4.9.6 (r9125)
JNA Native: 5.2.2
MediaInfo: 19.09
Tools: 7z/16.02 unrar/5.61
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2022-07-14 (r833)
Groovy: 3.0.9
JRE: OpenJDK Runtime Environment 11.0.15
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 3 Core / 1.0 GB Max Memory / 43 MB Used Memory
OS: Linux (amd64)
HW: Linux whitehole 5.4.0-122-generic #138-Ubuntu SMP Wed Jun 22 15:00:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: AMD EPYC Processor [MemTotal: 4.0 GB | MemFree: 121 MB | MemAvailable: 537 MB]
STORAGE: ext4 [/] @ 58 GB | ext4 [/mnt/HC_Volume_21620260] @ 200 GB | fuse.rclone [/mnt/whitebox] @ 3.6 TB
USER: matt
DATA: /home/matt/.filebot
Package: DEB
License: FileBot License P30114633 (Valid-Until: 2022-11-05)
Done ヾ(@⌒ー⌒@)ノ
Edit:

Just FYI, I solved my mismatch issue. It was a discrepancy between the tvdb episode numbering and the dvd episode numbering. Episode S03E11 doesn't exist in the tvdb and since I have `-non-strict` set I guess it just matched to what it thought was the closest thing. However, I'd still be interested to find out how to get debug logging working.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Debug logging of matching logic

Post by rednoah »

1.
Yep, blatantly wrong matches such as S03E11 => S02E01 are typically a consequence of the "correct match" not existing in the first place:
viewtopic.php?t=4695


:idea: Checking the episode list (via filebot -list so you can see what filebot sees) is indeed the typical first step when debugging issues. The debug logging output probably wouldn't be very useful in this case.



2.
You can enable debug logging like so:
rednoah wrote: 30 Jun 2016, 08:36 Enable debug logging: net.filebot.logging.debug = ALL | FINE | INFO

Code: Select all

filebot -script fn:properties --def net.filebot.logging.debug=ALL
:!: The --def name=value options are script parameters that are specific to each script, so passing --def net.filebot.logging.debug=ALL into the amc script has no effect.
:idea: Please read the FAQ and How to Request Help.
Post Reply