Detection of tv show fails

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
tsero
Posts: 2
Joined: 10 May 2016, 06:37

Detection of tv show fails

Post by tsero »

Hi,

I'm running into an issue with one tv show ... House of Cards is mapped to Oprah's Next Chapter. The detection is not working properly and I have no idea what could cause this (all other tv shows are working fine):

tsero@ds412:~$ ./filebot-move.sh
Locking /volume1/video/downloads/00-logs/filebot.log
Run script [fn:amc] at [Tue May 10 12:53:51 CEST 2016]
Parameter: seriesFormat = /volume1/video/tv-shows/{n.space('.')}/{'Season.'+s.pad(2)}/{n.space('.')}.{s00e00}_{t.space('.')}
Parameter: movieFormat = /volume1/video/movies/{n.space('.')}_({y})/{fn.space('.')}
Parameter: musicFormat = /volume1/music/{n}/{fn}
Parameter: skipExtract = y
Parameter: clean = y
Parameter: excludeList = /volume1/video/downloads/00-config/filebot-exclude.txt
Parameter: exec = /usr/syno/bin/synoindex -a "{file}"
Argument: /volume1/video/downloads/extracted
Using excludes: /volume1/video/downloads/00-config/filebot-exclude.txt (1839)
Ignore hidden folder: /volume1/video/downloads/extracted/House.of.Cards/@eaDir
Input: /volume1/video/downloads/extracted/House.of.Cards/House.of.Cards.(US).S03E01.mkv
Group: [tvs:oprahs next chapter] => [House.of.Cards.(US).S03E01.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Oprah's Next Chapter]
Fetching episode data for [Oprah's Next Chapter]
[TEST] Rename [/volume1/video/downloads/extracted/House.of.Cards/House.of.Cards.(US).S03E01.mkv] to [/volume1/video/tv-shows/Oprah's.Next.Chapter/Season.03/Oprah's.Next.Chapter.S03E01_Russell.Brand.&.Heroin.Addiction.mkv]
Processed 1 files
Execute: /usr/syno/bin/synoindex -a "/volume1/video/tv-shows/Oprah's.Next.Chapter/Season.03/Oprah's.Next.Chapter.S03E01_Russell.Brand.&.Heroin.Addiction.mkv"
Done ヾ(@⌒ー⌒@)ノ

If I query using the same episode name, it returns the correct tv show:
tsero@ds412:~$ filebot -list --q "House.of.Cards.(US).S03E01.mkv"
House of Cards (US) - 1x01 - Chapter 1
House of Cards (US) - 1x02 - Chapter 2
House of Cards (US) - 1x03 - Chapter 3
...
House of Cards (US) - 3x01 - Chapter 27
House of Cards (US) - 3x02 - Chapter 28
House of Cards (US) - 3x03 - Chapter 29
...

Here is how I call it (I've set action temporarly to test):
/volume1/@appstore/filebot/filebot.sh -script fn:amc --output /volume1/video/unsorted --lang de --def seriesFormat=/volume1/video/tv-shows/{n.space('.')}/{'Season.'+s.pad(2)}/{n.space('.')}.{s00e00}_{t.space('.')} movieFormat=/volume1/video/movies/{n.space('.')}_({y})/{fn.space('.')} musicFormat=/volume1/music/{n}/{fn} --log-file /volume1/video/downloads/00-logs/filebot.log --action test -non-strict --def skipExtract=y --def clean=y /volume1/video/downloads/extracted --def excludeList=/volume1/video/downloads/00-config/filebot-exclude.txt --def exec=/usr/syno/bin/synoindex -a "{file}"

This is my version:
tsero@ds412:~$ filebot -script fn:sysinfo
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.73
Apache Commons VFS: [zip, ftps, rar, ftp, tar, tgz, tbz2, sftp]
Chromaprint: fpcalc version 1.3.1 (/usr/local/chromaprint/bin/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Runtime Environment 1.8.0_91 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 239 MB Max Memory / 13 MB Used Memory
OS: Linux (amd64)
Package: SPK
Data: /volume1/@appstore/filebot/data/tsero
uname: Linux ds412 3.10.77 #7321 SMP Thu Apr 21 14:34:36 CST 2016 x86_64 GNU/Linux synology_cedarview_412+
Done ヾ(@⌒ー⌒@)ノ

I must be missing something obvious here!
User avatar
rednoah
The Source
Posts: 24037
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Detection of tv show fails

Post by rednoah »

1.
Most likely, this file has previously been processed as "Oprah's Next Chapter" and now the auto-detection isn't based on the filename, but previously stored xattr. This is a common issue if you if your test setup is flawed (e.g. reusing files, not using real files, etc)


2.
Here's what it looks like with pristine files:

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [House of Cards US, house of cards]
Fetching episode data for [House of Cards (US)]
Fetching episode data for [House of Cards]
Fetching episode data for [House of Carters]
Fetching episode data for [House of Lies]
[COPY] Rename [House.of.Cards.(US).S03E01.mkv] to [TV Shows/House of Cards (US)/Season 03/House of Cards (US) - S03E01 - Chapter 27.mkv]
:idea: Please read the FAQ and How to Request Help.
tsero
Posts: 2
Joined: 10 May 2016, 06:37

Re: Detection of tv show fails

Post by tsero »

Thanks for the fast response.

After clearing the xattr information using

Code: Select all

filebot -script fn:xattr --action clear House.of.Cards.\(US\).S03E01.mkv
it worked smoothly!
User avatar
rednoah
The Source
Posts: 24037
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Detection of tv show fails

Post by rednoah »

When testing, always use --action test, otherwise FileBot will set xattr metadata and use that for auto-detection next time.
:idea: Please read the FAQ and How to Request Help.
Post Reply