how to fix the epsiode detection

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
elkiman
Posts: 1
Joined: 04 Oct 2016, 18:00

how to fix the epsiode detection

Post by elkiman »

mediathekview creates always files with an session id at the filename.
This disturbes filebot for correct detection

as you can see below the linked filename without the session-id is correct detected. For sure I can strip of the filename ending with some other tool but the gui detects the files correct. So there must be some hint ;-)

host:/tmp/Großstadtrevier$ ls -l
total 426052
-rw-rw-r-- 1 xxx xxx 219769954 Oct 4 18:48 Großstadtrevier-Videomann-2018142257.mp4
lrwxrwxrwx 1 xxx xxx 41 Oct 4 19:41 Großstadtrevier-Videomann.mp4 -> Großstadtrevier-Videomann-2018142257.mp4

host:/tmp/Großstadtrevier$ filebot --log ALL --log-file /tmp/logfile -rename --action test -non-strict --db thetvdb --format "Season {s.pad(2)}/{n} {sxe} {t}" --lang de ./
Locking /tmp/logfile
Rename episodes using [TheTVDB]
Auto-detected query: [Großstadtrevier, Großstadtrevier Folge]
Fetching episode data for [Großstadtrevier]
Auto-detected query: [Großstadtrevier]
Fetching episode data for [Großstadtrevier]
Stripping invalid characters from new path: Season 02/Großstadtrevier 2x01 Foulspiel a.k.a Rote Karte für Thomas?
[TEST] Rename [/tmp/Großstadtrevier/Großstadtrevier-Videomann-2018142257.mp4] to [Season 02/Großstadtrevier 2x01 Foulspiel a.k.a Rote Karte für Thomas.mp4]

[TEST] Rename [/tmp/Großstadtrevier/Großstadtrevier-Videomann.mp4] to [Season 18/Großstadtrevier 18x04 Videomann.mp4]
Processed 2 files
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to fix the epsiode detection

Post by rednoah »

1.
If you want to match files by name only, then you will need to strip misleading numbers from the filename beforehand:
viewtopic.php?f=3&t=2072


2.
Depending on what exactly you're doing, the --filter option could potentially be used to rule in/out episode matches:
viewtopic.php?f=3&t=2127

e.g. specific episode filter:

Code: Select all

--filter "t == /Videomann/"
:idea: Please read the FAQ and How to Request Help.
Post Reply