TV Shows matching as Movies

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

TV Shows matching as Movies

Post by cheaters »

I have seen this happen a few times. I have information for this last occurrence. Hoping to learn how to prevent this in the future ;)

My script:

Code: Select all

filebot -script fn:amc --output "/Volumes/PlexMedia" --action duplicate --conflict auto -non-strict --log-file amc.log --def excludeList=/Users/John/.filebot/amc.excludes --def unsorted=y --def music=y --def subtitles=en --def minFileSize=0 --def minLengthMS=0 --def plex="127.0.0.1":"MyTokenValue" "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
This is the amc.log from the latest mismatch:

Parameter: ut_dir = /Volumes/PlexMedia/Seeding/BBC.The.Truth.about.Meat.1080i.HDTV.MVGroup.mkv
Parameter: ut_title = BBC.The.Truth.about.Meat.1080i.HDTV.MVGroup.mkv
Input: /Volumes/PlexMedia/Seeding/BBC.The.Truth.about.Meat.1080i.HDTV.MVGroup.mkv
BBC.The.Truth.about.Meat.1080i.HDTV.MVGroup.mkv [series: null, movie: The Truth (2010)]
Group: [tvs:null, mov:the truth 2010] => [BBC.The.Truth.about.Meat.1080i.HDTV.MVGroup.mkv]
No matching subtitles found: /Volumes/PlexMedia/Seeding/BBC.The.Truth.about.Meat.1080i.HDTV.MVGroup.mkv
Auto-detect movie from context: [/Volumes/PlexMedia/Seeding/BBC.The.Truth.about.Meat.1080i.HDTV.MVGroup.mkv]
[DUPLICATE] From [/Volumes/PlexMedia/Seeding/BBC.The.Truth.about.Meat.1080i.HDTV.MVGroup.mkv] to [/Volumes/PlexMedia/Movies/The Truth (2010)/The Truth (2010).mkv]

There are many titles listed this way.

I looked at "--conflict auto -non-strict" and thought it should be changed. Would "--conflict auto -strict" help in this situation :?:

Before using the AMC script I used to name titles manually. I had two scripts, one for TVseries and one for Movies. Since I knew which were which. In Vuze I used tags to determine which folder they downloaded to and I had different scripts for each folder. This was my TVS script:

Code: Select all

TV Shows/{info.network}/{primaryTitle}/Season {s} ({airdate.format('yyyy')})/{n} - {s00e00} - {t}
Is there a way to edit my AMC script to have TVseries listed this way? Could I at least add {info.network} to the AMC script :?:

Thank you all.
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: TV Shows matching as Movies

Post by cheaters »

Looking at TVDB this is the series page:
https://www.thetvdb.com/series/the-truth-about

IMDB
https://www.imdb.com/title/tt6840868/?ref_=nv_sr_1

TMDB
no match

Changed title of file to: "The.Truth.about.Meat.(S01E10).mkv"

Code: Select all

Input: /Volumes/PlexMedia/Seeding/The.Truth.about.Meat.(S01E10).mkv
xattr: [The.Truth.about.Meat.(S01E10).mkv] => [The Truth (2010)]
Group: [mov:the truth 2010] => [The.Truth.about.Meat.(S01E10).mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/Volumes/PlexMedia/Seeding/The.Truth.about.Meat.(S01E10).mkv]
CmdlineException: Failed to identify or process any files
Finished without processing any files
Failure (°_°)
It looks like the file has extended attributes that were matched to a move titled "the Truth" and no changing of the file name is going to effect this. How can I tell filebot to remove or ignore these extended attributes :?:
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: TV Shows matching as Movies

Post by cheaters »

I found this in the forums which applies in this case. I am a bit confused because it says filebot can't create mkv metadata, but it's there for sure:

Code: Select all

$ xattr -l /Volumes/PlexMedia/Seeding/The.Truth.about.Meat.\(S01E10\).mkv
com.apple.lastuseddate#PS:
00000000  58 80 F0 5A 00 00 00 00 73 D9 D3 26 00 00 00 00  |X..Z....s..&....|
00000010
net.filebot.filename:
00000000  42 42 43 2E 54 68 65 2E 54 72 75 74 68 2E 61 62  |BBC.The.Truth.ab|
00000010  6F 75 74 2E 4D 65 61 74 2E 31 30 38 30 69 2E 48  |out.Meat.1080i.H|
00000020  44 54 56 2E 4D 56 47 72 6F 75 70 2E 6D 6B 76 00  |DTV.MVGroup.mkv.|
00000030
net.filebot.metadata:
00000000  7B 22 40 74 79 70 65 22 3A 22 4D 6F 76 69 65 22  |{"@type":"Movie"|
00000010  2C 22 79 65 61 72 22 3A 32 30 31 30 2C 22 69 6D  |,"year":2010,"im|
00000020  64 62 49 64 22 3A 31 33 31 35 34 31 39 2C 22 74  |dbId":1315419,"t|
00000030  6D 64 62 49 64 22 3A 33 39 32 34 30 2C 22 6C 61  |mdbId":39240,"la|
00000040  6E 67 75 61 67 65 22 3A 22 65 6E 22 2C 22 69 64  |nguage":"en","id|
00000050  22 3A 33 39 32 34 30 2C 22 6E 61 6D 65 22 3A 22  |":39240,"name":"|
00000060  54 68 65 20 54 72 75 74 68 22 2C 22 61 6C 69 61  |The Truth","alia|
00000070  73 4E 61 6D 65 73 22 3A 5B 5D 7D 00              |sNames":[]}.|
0000007c
Looking at the file in Subler I see no metadata at all.

I used the terminal commands to view (xattr -l /path/to/file) and delete (xattr-d xxx.xxxx.xxx /path/to/file) extended attributes (xattr)

Code: Select all

iMac132:~ $ xattr -l /Volumes/PlexMedia/Seeding/The.Truth.about.Meat.\(S01E10\).mkv
com.apple.lastuseddate#PS:
00000000  58 80 F0 5A 00 00 00 00 73 D9 D3 26 00 00 00 00  |X..Z....s..&....|
00000010
net.filebot.filename:
00000000  42 42 43 2E 54 68 65 2E 54 72 75 74 68 2E 61 62  |BBC.The.Truth.ab|
00000010  6F 75 74 2E 4D 65 61 74 2E 31 30 38 30 69 2E 48  |out.Meat.1080i.H|
00000020  44 54 56 2E 4D 56 47 72 6F 75 70 2E 6D 6B 76 00  |DTV.MVGroup.mkv.|
00000030
net.filebot.metadata:
00000000  7B 22 40 74 79 70 65 22 3A 22 4D 6F 76 69 65 22  |{"@type":"Movie"|
00000010  2C 22 79 65 61 72 22 3A 32 30 31 30 2C 22 69 6D  |,"year":2010,"im|
00000020  64 62 49 64 22 3A 31 33 31 35 34 31 39 2C 22 74  |dbId":1315419,"t|
00000030  6D 64 62 49 64 22 3A 33 39 32 34 30 2C 22 6C 61  |mdbId":39240,"la|
00000040  6E 67 75 61 67 65 22 3A 22 65 6E 22 2C 22 69 64  |nguage":"en","id|
00000050  22 3A 33 39 32 34 30 2C 22 6E 61 6D 65 22 3A 22  |":39240,"name":"|
00000060  54 68 65 20 54 72 75 74 68 22 2C 22 61 6C 69 61  |The Truth","alia|
00000070  73 4E 61 6D 65 73 22 3A 5B 5D 7D 00              |sNames":[]}.|
0000007c
iMac132:~ $ xattr -d /Volumes/PlexMedia/Seeding/The.Truth.about.Meat.\(S01E10\).mkv
iMac132:~ $ xattr -d net.filebot.filename /Volumes/PlexMedia/Seeding/The.Truth.about.Meat.\(S01E10\).mkv
iMac132:~ $ xattr -d net.filebot.metadata /Volumes/PlexMedia/Seeding/The.Truth.about.Meat.\(S01E10\).mkv
checking again…

Code: Select all

iMac132:~ $ xattr -l /Volumes/PlexMedia/Seeding/The.Truth.about.Meat.\(S01E10\).mkv
com.apple.lastuseddate#PS:
00000000  79 86 F0 5A 00 00 00 00 29 B5 4D 14 00 00 00 00  |y..Z....).M.....|
00000010
Now I can try to rename the file. Have to go into .filebot/amc.excludes and remove the title so I can attempt to process it again. Should I also remove the title from .filebot/history.xml :?:

Is there an easier way:?:
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: TV Shows matching as Movies

Post by cheaters »

unfortunately,
Input: /Volumes/PlexMedia/Seeding/The.Truth.about.Meat.(S01E10).mkv
Group: [tvs:the truth about meat] => [The.Truth.about.Meat.(S01E10).mkv]
Auto-detected query: [the truth about meat]
Failed to fetch episode data: [the truth about meat]
CmdlineException: Failed to match files to episode data
Finished without processing any files
Failure (°_°)
Red said:
You can use 3rd party tools such as mkvpropedit to automatically modify embedded metadata.
Unfortunately, this library, mkvpropedit, doesn't appear to be installed when installing mkvtoolnix via Brew.
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: TV Shows matching as Movies

Post by cheaters »

Changed title of file to "The truth about" and options popped up in interactive mode, --mode interactive, but not the correct episode.Image
Changing the title back to the truth about meat (s01e10)
Input: /Volumes/PlexMedia/Seeding/The.Truth.about meat (S01E10).mkv
Group: [tvs:the truth about meat] => [The.Truth.about meat (S01E10).mkv]
Auto-detected query: [the truth about meat]
Failed to fetch episode data: [the truth about meat]
CmdlineException: Failed to match files to episode data
Finished without processing any files
Failure (°_°)
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: TV Shows matching as Movies

Post by cheaters »

:roll: OK, I am an idiot

I decided to check what happens if I choose the first on the list The Truth About with the elipses. And it worked! It gave me a structure like this: /The Truth About/Season 01/The Truth About… - S01E10 - Meat.mkv

The title of the show has elipses in it. For some reason I didn't see this and assumed the show titles ,in the best matches, were all episodes of the show.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Shows matching as Movies

Post by rednoah »

Too many individual unrelated questions in this thread for me to answer coherently.

I guess you figured it out. Feel free to ask specific questions in separate threads.


:idea: --conflict is for file override behaviour. -non-strict for not running sanity checks on matches. Neither has anything to do with movie / series differentiation logic which is part of the amc script itself.


:idea: xattr is a filesystem feature to store arbitrary attributes alongside each file, and it's distinctly different from container format specific metadata which is part of the file itself.
:idea: Please read the FAQ and How to Request Help.
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: TV Shows matching as Movies

Post by cheaters »

It was the process of trying to figure out why the title was matched to a movie and not a TV show? And how to prevent this in the future. Is there a foolproof way of renaming a tv series so it's recognized? Or, at least it's not matched without giving a notification of the match first?

Also, it appears filebot does add metadata to the file in the form of extended attributes, or I am not understanding?

Thank you.
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: TV Shows matching as Movies

Post by cheaters »

Is the opposite of -non-strict, -strict OR is it removing -non-strict altogether? I am guessing the later.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Shows matching as Movies

Post by rednoah »

Correct.

-non-strict is a command-line flag. Not passing this argument implies strict mode. Hence there is no such thing as a -strict flag.
:idea: Please read the FAQ and How to Request Help.
cheaters
Posts: 214
Joined: 09 Oct 2016, 02:01

Re: TV Shows matching as Movies

Post by cheaters »

Thank you.

while you are here. one last question repeated from above.
Before using the AMC script I used to name titles manually. I had two scripts, one for TVseries and one for Movies. Since I knew which were which. In Vuze I used tags to determine which folder they downloaded to and I had different scripts for each folder. This was my TVS script:

TV Shows/{info.network}/{primaryTitle}/Season {s} ({airdate.format('yyyy')})/{n} - {s00e00} - {t}

Is there a way to edit my AMC script to have TVseries listed this way? Could I at least add {info.network} to the AMC script :?:
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Shows matching as Movies

Post by rednoah »

1.
I recommend forcing movie / series / anime mode by passing the appropriate ut_label parameter. I believe that is documented quite extensively in the manual.

2.
Yes, FileBot does store extended attributes are used by FileBot if you process these files again, and can be used by any other tool to quickly make sense of the files (but I'm not aware of any major ones with FileBot xattr support).
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Shows matching as Movies

Post by rednoah »

3. You can use custom formats of course. Also, see the manual please. There's a section for just that too. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply