AMC script not processing TV Series properly

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
vexx01
Posts: 5
Joined: 23 Feb 2015, 10:19

AMC script not processing TV Series properly

Post by vexx01 »

Hello,

I have a folder with a lot of movies and TV series inside. I'm trying to organize it using the AMC script for filebot.

While the script has done an amazing job with almost all movies, it doesn't seem to work with TV Series at all.

To be specific it doesn't recognize them as a TV series but as a movies instead, even if I try to force it to use TVDB over MovieDB using --def "ut_label=TV", but it doesn't seem to work at all.

Here is the code I'm using:

Code: Select all

filebot -script fn:amc --output "E:/test" --log-file amc.log --action hardlink --conflict override -non-strict "E:/Torrents/Movies" --def excludeList=amc.txt --def music=y subtitles=bg artwork=y --def "ignore=sub|srt|nfo"
Now, as I said, it has done miracles to movies, but hasn't been able to identify not even one series. "Friends.S02.UNCUT.DVDRip.XviD-SAiNTS"has become Friends (2001), "Black.Sails.S01.HDTV.x264-MiXED" has become Black (2014) and so on.

I have tested the script many times using one folder with episodes at a time, but without any luck.

So, if you guys have an idea what I might be doing wrong, please share.

Any help will be highly appreciated.

Thank you in advance!
Amishman
Donor
Posts: 51
Joined: 29 Dec 2013, 15:54

Re: AMC script not processing TV Series properly

Post by Amishman »

My first guess would be your not telling it what episode (E??) it is. You are only telling it the season (S02).
"Friends.S02.UNCUT.DVDRip.XviD-SAiNTS"
If it is Friends season 2 episode 1 then rename the file "Friends.S02E01.UNCUT.DVDRip.XviD-SAiNTS" and see if that fixes your issue.
vexx01
Posts: 5
Joined: 23 Feb 2015, 10:19

Re: AMC script not processing TV Series properly

Post by vexx01 »

Amishman wrote:My first guess would be your not telling it what episode (E??) it is. You are only telling it the season (S02).
"Friends.S02.UNCUT.DVDRip.XviD-SAiNTS"
If it is Friends season 2 episode 1 then rename the file "Friends.S02E01.UNCUT.DVDRip.XviD-SAiNTS" and see if that fixes your issue.

Hello and thanks for the reply.

However, this ("Friends.S02.UNCUT.DVDRip.XviD-SAiNTS") is just the parent directory for season two. Inside it there is a separate directories for each episode and they are all named in that fashion - "Friends.S02E01.UNCUT.DVDRip.XviD-SAiNTS" and also the video files have the episode number in their names as well.

Plus I have a lot of TV Series in my Movies folder and not even one of them is being recognized properly by the script, which is not the case when I do it manually from the GUI.

For troubleshooting purposes I have executed the script for another TV Series - Black Sails:

Code: Select all

E:\test>filebot -script fn:amc --output "E:/test" --log-file amc2.log --action hardlink --conflict override -non-strict "E:/Torrents/Movies/Black.Sails.S01.HDTV.x264-MiXED" --def excludeList=amc2.txt --def music=y subtitles=bg artwork=y --def "ignore=sub|srt|nfo"
And here is the content of amc2.log:

Code: Select all

Parameter: excludeList = amc2.txt
Parameter: music = y
Parameter: subtitles = bg
Parameter: artwork = y
Parameter: ignore = sub|srt|nfo
Argument: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e01.hdtv.x264-2hd.bul.srt
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e01.hdtv.x264-2hd.mp4
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e02.hdtv.x264-killers.bul.srt
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e02.hdtv.x264-killers.mp4
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e03.hdtv.x264-2hd.bul.srt
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e03.hdtv.x264-2hd.mp4
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e04.hdtv.x264-killers.bul.srt
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e04.hdtv.x264-killers.mp4
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e05.hdtv.x264-killers.bul.srt
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e05.hdtv.x264-killers.mp4
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e06.hdtv.x264-killers.bul.srt
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e06.hdtv.x264-killers.mp4
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e07.hdtv.x264-killers.bul.srt
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e07.hdtv.x264-killers.mp4
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e08.hdtv.x264-2hd.bul.srt
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e08.hdtv.x264-2hd.mp4
Input: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e08.hdtv.x264-2hd.srt
Exclude: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\- README - subs.sab.bz - Brought to you by  xen.headoff.com -.html
Exclude: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e08.720p.hdtv.x264-2hd.srt
Exclude: E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\Black.Sails.S01E08.HDTV.XviD-AFG.srt
Group: [:] => [black.sails.s01e01.hdtv.x264-2hd.bul.srt, black.sails.s01e02.hdtv.x264-killers.bul.srt, black.sails.s01e03.hdtv.x264-2hd.bul.srt, black.sails.s01e04.hdtv.x264-killers.bul.srt, black.sails.s01e05.hdtv.x264-killers.bul.srt, black.sails.s01e06.hdtv.x264-killers.bul.srt, black.sails.s01e07.hdtv.x264-killers.bul.srt, black.sails.s01e08.hdtv.x264-2hd.bul.srt, black.sails.s01e08.hdtv.x264-2hd.srt]
Group: [mov:black 2005] => [black.sails.s01e01.hdtv.x264-2hd.mp4, black.sails.s01e02.hdtv.x264-killers.mp4, black.sails.s01e03.hdtv.x264-2hd.mp4, black.sails.s01e04.hdtv.x264-killers.mp4, black.sails.s01e05.hdtv.x264-killers.mp4, black.sails.s01e06.hdtv.x264-killers.mp4, black.sails.s01e07.hdtv.x264-killers.mp4, black.sails.s01e08.hdtv.x264-2hd.mp4]
No missing subtitles
Rename movies using [TheMovieDB]
Auto-detect movie from context: [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e01.hdtv.x264-2hd.mp4]
Auto-detect movie from context: [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e02.hdtv.x264-killers.mp4]
Auto-detect movie from context: [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e03.hdtv.x264-2hd.mp4]
Auto-detect movie from context: [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e04.hdtv.x264-killers.mp4]
Auto-detect movie from context: [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e05.hdtv.x264-killers.mp4]
Auto-detect movie from context: [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e06.hdtv.x264-killers.mp4]
Auto-detect movie from context: [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e07.hdtv.x264-killers.mp4]
Auto-detect movie from context: [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e08.hdtv.x264-2hd.mp4]
[HARDLINK] Rename [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e01.hdtv.x264-2hd.mp4] to [E:\test\Movies\Black (2005)\Black (2005) CD1.mp4]
[HARDLINK] Rename [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e02.hdtv.x264-killers.mp4] to [E:\test\Movies\Black (2005)\Black (2005) CD2.mp4]
[HARDLINK] Rename [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e03.hdtv.x264-2hd.mp4] to [E:\test\Movies\Black (2005)\Black (2005) CD3.mp4]
[HARDLINK] Rename [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e04.hdtv.x264-killers.mp4] to [E:\test\Movies\Black (2005)\Black (2005) CD4.mp4]
[HARDLINK] Rename [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e05.hdtv.x264-killers.mp4] to [E:\test\Movies\Black (2005)\Black (2005) CD5.mp4]
[HARDLINK] Rename [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e06.hdtv.x264-killers.mp4] to [E:\test\Movies\Black (2005)\Black (2005) CD6.mp4]
[HARDLINK] Rename [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e07.hdtv.x264-killers.mp4] to [E:\test\Movies\Black (2005)\Black (2005) CD7.mp4]
[HARDLINK] Rename [E:\Torrents\Movies\Black.Sails.S01.HDTV.x264-MiXED\black.sails.s01e08.hdtv.x264-2hd.mp4] to [E:\test\Movies\Black (2005)\Black (2005) CD8.mp4]
Processed 8 files
Fetching movie artwork for [Black (2005) [1]] to [E:\test\Movies\Black (2005)]
Fetching E:\test\Movies\Black (2005)\poster.jpg => {category: posters, width: 500, height: 750, language: en, url: http://image.tmdb.org/t/p/original/fhV8VT74IgJtnLjt29YkMYp0l5u.jpg}
Fetching E:\test\Movies\Black (2005)\fanart.jpg => {category: backdrops, width: 1920, height: 1080, language: null, url: http://image.tmdb.org/t/p/original/cb9A2QR9BCbZoGRHeTppfQEXKxZ.jpg}
Fanart not found: E:\test\Movies\Black (2005)\clearart.png / movieart
Fanart not found: E:\test\Movies\Black (2005)\logo.png / movielogo
Fanart not found: E:\test\Movies\Black (2005)\disc.png / moviedisc
Fanart not found: E:\test\Movies\Black (2005)\disc.png / moviedisc
Fanart not found: E:\test\Movies\Black (2005)\disc.png / moviedisc
Done ヾ(@⌒ー⌒@)ノ

You can clearly see that it is using TheMovieDB instead of TheTVDB. And even if I force it with "ut_label=TV", it is still using TheMovieDB. I don't know why that is, but I feel like I tried everything.

So, any other suggestions are welcome.

Hope that log is helpful.
mrpeanut
Posts: 5
Joined: 24 Feb 2015, 03:48

Re: AMC script not processing TV Series properly

Post by mrpeanut »

I have the exact same issue.

I can't force it to be TV. It finds movies fine, but matches TV as Movies, or ignores TV all together.

Calling with my test script:

Code: Select all

#!/bin/bash
filebot -script fn:amc --output "$HOME/Movies/Media" --log-file amc.log --action move -non-strict --conflict skip -non-strict "$HOME/Movies/Torrented" --def "seriesFormat=$HOME/Movies/Media/'TV Shows'/{n}/{'Season '+s.pad(2)}/{n} - {S00E00} - {t}" --def "movieFormat=$HOME/Movies/Media/Movies/{n} [{y}]" --def clean=y
And here's the output...

Code: Select all

Parameter: seriesFormat = /Users/blagh/Movies/Media/'TV Shows'/{n}/{'Season '+s.pad(2)}/{n} - {S00E00} - {t}
Parameter: movieFormat = /Users/blagh/Movies/Media/Movies/{n} [{y}]
Parameter: clean = y
Argument: /Users/blagh/Movies/Torrented
Ignore hidden: /Users/blagh/Movies/Torrented/.DS_Store
Ignore hidden: /Users/blagh/Movies/Torrented/Reign.S02E14.HDTV.x264-2HD[ettv]/.DS_Store
Ignore hidden: /Users/blagh/Movies/Torrented/Top Gear/.DS_Store
Input: /Users/blagh/Movies/Torrented/Gotham.S01E17.HDTV.x264-LOL[ettv]/gotham.117.hdtv-lol.mp4
Input: /Users/blagh/Movies/Torrented/Scott Pilgrim vs the World (2010)/Scott.Pilgrim.vs.the.World.2010.Bluray.720p.x264.YIFY.mp4
Input: /Users/blagh/Movies/Torrented/Scott Pilgrim vs the World (2010)/Scott.Pilgrim.vs.the.World.2010.Bluray.720p.x264.YIFY.srt
Input: /Users/blagh/Movies/Torrented/The Walking Dead S05E11 HDTV XviD-FUM[ettv]/The.Walking.Dead.S05E11.INTERNAL.HDTV.XviD-FUM.avi
Input: /Users/blagh/Movies/Torrented/The.Walking.Dead.S05E09.HDTV.x264-KILLERS[ettv]/The.Walking.Dead.S05E09.HDTV.x264-KILLERS.mp4
Input: /Users/blagh/Movies/Torrented/Top.Gear.22x05.720p.HDTV.x264-FoV.mkv
Exclude: /Users/blagh/Movies/Torrented/Scott Pilgrim vs the World (2010)/WWW.YIFY-TORRENTS.COM.jpg
Group: [mov:null] => [gotham.117.hdtv-lol.mp4, Top.Gear.22x05.720p.HDTV.x264-FoV.mkv]
Group: [mov:scott pilgrim vs the world 2010] => [Scott.Pilgrim.vs.the.World.2010.Bluray.720p.x264.YIFY.mp4, Scott.Pilgrim.vs.the.World.2010.Bluray.720p.x264.YIFY.srt]
Group: [mov:the dead 1987] => [The.Walking.Dead.S05E11.INTERNAL.HDTV.XviD-FUM.avi, The.Walking.Dead.S05E09.HDTV.x264-KILLERS.mp4]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/Users/blagh/Movies/Torrented/Scott Pilgrim vs the World (2010)/Scott.Pilgrim.vs.the.World.2010.Bluray.720p.x264.YIFY.mp4]
[MOVE] Rename [/Users/blagh/Movies/Torrented/Scott Pilgrim vs the World (2010)/Scott.Pilgrim.vs.the.World.2010.Bluray.720p.x264.YIFY.mp4] to [/Users/blagh/Movies/Media/Movies/Scott Pilgrim vs. the World [2010].mp4]
[MOVE] Rename [/Users/blagh/Movies/Torrented/Scott Pilgrim vs the World (2010)/Scott.Pilgrim.vs.the.World.2010.Bluray.720p.x264.YIFY.srt] to [/Users/blagh/Movies/Media/Movies/Scott Pilgrim vs. the World [2010].srt]
Processed 2 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/Users/blagh/Movies/Torrented/The Walking Dead S05E11 HDTV XviD-FUM[ettv]/The.Walking.Dead.S05E11.INTERNAL.HDTV.XviD-FUM.avi]
Auto-detect movie from context: [/Users/blagh/Movies/Torrented/The.Walking.Dead.S05E09.HDTV.x264-KILLERS[ettv]/The.Walking.Dead.S05E09.HDTV.x264-KILLERS.mp4]
[MOVE] Rename [/Users/blagh/Movies/Torrented/The Walking Dead S05E11 HDTV XviD-FUM[ettv]/The.Walking.Dead.S05E11.INTERNAL.HDTV.XviD-FUM.avi] to [/Users/blagh/Movies/Media/Movies/The Dead [1987].avi]
[MOVE] Rename [/Users/blagh/Movies/Torrented/The.Walking.Dead.S05E09.HDTV.x264-KILLERS[ettv]/The.Walking.Dead.S05E09.HDTV.x264-KILLERS.mp4] to [/Users/blagh/Movies/Media/Movies/The Dead [1987].mp4]
Processed 2 files
Clean clutter files and empty folders
Delete /Users/blagh/Movies/Torrented/Scott Pilgrim vs the World (2010)/WWW.YIFY-TORRENTS.COM.jpg
Delete /Users/blagh/Movies/Torrented/The.Walking.Dead.S05E09.HDTV.x264-KILLERS[ettv]
Delete /Users/blagh/Movies/Torrented/The Walking Dead S05E11 HDTV XviD-FUM[ettv]
Delete /Users/blagh/Movies/Torrented/Scott Pilgrim vs the World (2010)
Done ヾ(@⌒ー⌒@)ノ
mrpeanut
Posts: 5
Joined: 24 Feb 2015, 03:48

Re: AMC script not processing TV Series properly

Post by mrpeanut »

I figured out my issue by going deeper into the forum... I was using the 'Movies' directory. Changed that to 'Media', all works well. Suggest you try a different folder that doesn't use 'Movies'.
vexx01
Posts: 5
Joined: 23 Feb 2015, 10:19

Re: AMC script not processing TV Series properly

Post by vexx01 »

Hello mrpeanut,

That worked like a charm! :)

Thank you !

Now I only have one issue, but its not related to filebot or amc, but with uTorrent. Because when I rename my Movies folder it breaks all torrents inside and stop seeding. And there are way too many torrents to just reallocate them manually from the GUI.

But I will figure it out somehow, anyway thanks once again.
User avatar
rednoah
The Source
Posts: 19150
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC script not processing TV Series properly

Post by rednoah »

Instead of relocating torrents you should look into organizing files into a new structure via copy, symlink or hardlink.
:idea: Please read the FAQ and How to Request Help.
vexx01
Posts: 5
Joined: 23 Feb 2015, 10:19

Re: AMC script not processing TV Series properly

Post by vexx01 »

rednoah wrote:Instead of relocating torrents you should look into organizing files into a new structure via copy, symlink or hardlink.

That's exactly what I'm doing (take a look at my first post). However my original files were downloaded into folder /Torrents/Movies (there are both movies and tv shows inside) and when I execute amc script for that folder it doesn't recognize tv shows as such. Instead it thinks they are movies and uses TheMovieDB for them. So as a workaround I renamed the original folder "Movies" to "Media" and now the script works like a charm. The only problem is that this breaks the torrents and I cannot seed them unless I use "set download location..." (uTorrent)
User avatar
rednoah
The Source
Posts: 19150
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC script not processing TV Series properly

Post by rednoah »

1. Kill uTorrent
2. Rename Movies to Media
3. Symlink Media to Movies
4. Restart uTorrent
:idea: Please read the FAQ and How to Request Help.
dacari
Donor
Posts: 44
Joined: 20 Mar 2013, 14:42

Re: AMC script not processing TV Series properly

Post by dacari »

Thanks all...I have been trying to fix this for ages!
Post Reply