AMC Mis-match Odd Behavior

Any questions? Need some help?
Post Reply
JimJam
Posts: 6
Joined: 11 Feb 2015, 06:00

AMC Mis-match Odd Behavior

Post by JimJam »

Hey guys,

So I used this fantastic script: http://www.filebot.net/forums/viewtopic ... 1561#p5316 with the following argument:

Code: Select all

~/filebot/filebot.sh -script fn:amc --output $HOME/torrents/Plex/ --log-file amc.log --conflict override --action symlink -non-strict $HOME/torrents/downloading/TV\ Shows/ --def excludeList=amc.txt
and it worked fantastically for the most part. If anything, I thought that if any mis-matches were to occur, it would be for an entire series and all episodes would be labeled incorrectly (as a function of the encoder following a particular naming scheme), however, this was not the result I encountered. Below are some screenshots detailing mis-matches that I'm not sure how to handle given the majority of the episodes in the series were correctly labeled.

Special is actually the first episode of the 26th season:
http://screencast.com/t/1BS2tLE4U

After-show not labeled at all:
http://screencast.com/t/ftPzqQ4cQ

The Real World episode listed as Grey's Anatomy:
http://screencast.com/t/4T4fuuLsZD

Two The Real World episodes listed as The Walking Dead:
http://screencast.com/t/jt9z0OvGHpca

The Real World episode listed as Two and a Half Men:
http://screencast.com/t/uzobyu6z6

The Real World Episodes listed as episodes of The Real World from other seasons:
http://screencast.com/t/lyMcZ4hFny

The odd thing is that episodes of The Real World (excluding the last example) are from the same season and the last example was never mis-matched if using Plex alone (which is using the same Agent [TheTVDB] that FileBot is using).

I will say that FileBot has been incredibly useful in sorting out other TV Shows that Plex never picked up in the first place (The IT Crowd) and properly naming and organizing specials (The Legend of Korra), but this is just very peculiar.

I have no idea if this is a FileBot issue or a TheTVDB issue or if I need to include certain filters (for which I have no idea where to start), but some kind of help would be appreciated!
skullzy
Power User
Posts: 50
Joined: 07 Jan 2015, 22:19

Re: AMC Mis-match Odd Behavior

Post by skullzy »

Are you able to screenshot or at least provide the original names of an entire season? When filebot renames something it does so using the file name. exmaple: the.walking.dead.s05e09.720p.hdtv.x264-killers.mkv So there could be something within the filename that's causing this problem.. and the only way we could figure that out for you would be to see a list of the original filenames.
JimJam
Posts: 6
Joined: 11 Feb 2015, 06:00

Re: AMC Mis-match Odd Behavior

Post by JimJam »

skullzy wrote:Are you able to screenshot or at least provide the original names of an entire season? When filebot renames something it does so using the file name. exmaple: the.walking.dead.s05e09.720p.hdtv.x264-killers.mkv So there could be something within the filename that's causing this problem.. and the only way we could figure that out for you would be to see a list of the original filenames.
Yes, absolutely! I will post the original file names for the offenders below (in the same order as the OP):

The Challenge: Battle of the Exes 2
Image

The Real World Season 28 (I believe the only offending season, I can double check):
Image

Let me know if you need anything else.
JimJam
Posts: 6
Joined: 11 Feb 2015, 06:00

Re: AMC Mis-match Odd Behavior

Post by JimJam »

Friendly bump.
skullzy
Power User
Posts: 50
Joined: 07 Jan 2015, 22:19

Re: AMC Mis-match Odd Behavior

Post by skullzy »

Sorry I haven't been on to reply sooner..

Okay for The Real World Season 28, the file called The sh_t they should've shown is a special episode, but it appears to be listed separately from the series.. I'm assuming filebot hasn't renamed this with something like S28E00 - Title? if it has then the issue regarding this particular episode wouldn't be a filebot issue.. as filebot would've done it's job and renamed the file according to TheTVdb.

As for the other two episode issues, this appears to be an issue with the two AfterShow episodes.. this is because TheTVDB doesn't have the Aftershow within the DB for that season.. so filebot then grabs the closest thing to it.. in this case it took the title of the aftershow and grabbed the closest match.. which just so happens to be an episode in s12 and in s18.

The Challenge on the other hand is doing the same thing.. I would assume it's to do with the aftershow yet again. but I'm not certain.. unfortunately I don't think there is anything you can do.. other than manually correct it.. but because TheTVDB doesn't have the aftershows listed for the season, filebot won't assume this and will instead find the closest match.

As for any special episodes in a series.. if filebot has renamed it properly example: S28E00 then the issue lies within the configuration of your media player.
JimJam
Posts: 6
Joined: 11 Feb 2015, 06:00

Re: AMC Mis-match Odd Behavior

Post by JimJam »

Thanks for taking a look skullzy.

If I'm going to have to correct this manually, it's going to have to be done over a CLI on Linux, for which I am not experienced with. It took me a while just to figure out the initial argument. Would you be able to point me in the right direction for manual corrections?

Thanks!
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Mis-match Odd Behavior

Post by rednoah »

You could look into the --q and --filter options. However if the files simply don't match anything in the database then FileBot can't process them.

@see https://www.youtube.com/watch?v=b-8Z1kz ... Pt&index=5
:idea: Please read the FAQ and How to Request Help.
JimJam
Posts: 6
Joined: 11 Feb 2015, 06:00

Re: AMC Mis-match Odd Behavior

Post by JimJam »

Thanks for the link, but in the video example, the user CD'd to the directory and was performing FileBot actions on the single directory. I'm performing FileBot actions on a higher level directory that encompasses all my TV shows. How do I adjust the arguments to compensate?
skullzy
Power User
Posts: 50
Joined: 07 Jan 2015, 22:19

Re: AMC Mis-match Odd Behavior

Post by skullzy »

I understand were Rednoah is coming from, and I don't think this method will works as TheTVDB doesn't have the AfterShow episodes and therefor it wouldn't rename it correctly.. Take a look at Basic Linux Commands.

You will need to use
cd to navigate to the directory in question
ls to list everything within the directory, in order to get the filename.
cp to rename/move the file


Example:

cd Path/To/SeriesName/Season 00/

ls
output: S00E00 - Title of something.avi

cp S00E00 - Title of something.avi Path/To/SeriesName/Season 01/S01E00 - Title of Something.avi


from what I understand, to back out of a directory.. in order to go to another season folder.. you will have to do
cd ~

I will do what I can to help you from my end but because I don't have a linux system all I can do is provide information I find online.
JimJam
Posts: 6
Joined: 11 Feb 2015, 06:00

Re: AMC Mis-match Odd Behavior

Post by JimJam »

Any help is more than appreciated, skullzy.

It looks like I'm going to have to use AMC script with the exception of the problematic seasons, CD into those directories and deal with the episodes manually, and then manually try to sort them out in Plex.

Thank goodness for the exception list!

I'll try some stuff out and see where it gets me and report any problems back here.
skullzy
Power User
Posts: 50
Joined: 07 Jan 2015, 22:19

Re: AMC Mis-match Odd Behavior

Post by skullzy »

You should look into making a bash script to do this job in future.

The way I would do it on windows, would be to create a Batch script and a text file.. my batch script would look like this..

Code: Select all

@ECHO OFF
For /f "tokens=1,2,3,4 delims=:" %%A in (Organize.txt) do (
	IF NOT EXIST "%%D" (
		mkdir "%%D"
		Echo. Creating Dir path %%D
	)
	REN "%%A\%%B" "%%C"
	Echo. Renaming "%%B" "%%C"
	MOVE /-y "%%A\%%C" "%%D"
	Echo. Moving File "%%C" to "%%D"
)
And my Text File would look like this

Code: Select all

DirA\Season 01:S01E01 - AfterShow1.avi:S16E01 - Aftershow1.avi:DirB\Season 16
DirA\Season 02:S02E01 - AfterShow1.avi:S16E02 - Aftershow2.avi:DirB\Season 16
My Batch script would be at the beginning of the Directory, so in this Example I have above, my Directory would look something like this.

- C Drive
- - Batch.bat
- - Organize.txt
- - Dir A - > Series - > Season - Episode
- - Dir B - > Series - > Season - Episode


Now obviously this would be different to you, but the point of this setup would be to simply add all the issues to a text file and the script will do the rest.

The way the script above works;
-Create Directory we're moving files to, if it doesn't exist
-Rename File within directory
-Move file to new directory

I could go one step further and also include "If directory empty, delete folder" especially if I don't expect to use it again. Now I know this works because I tested it, and I've attempt to modify it into a bash script for you, so hopefuly the following does what you need.

Code: Select all

IFS=":"
while read -r DirFrom OldFile NewFile DirTo
do
	mkdir -p "$DTo"
	cp "$DirFrom/$OldFile" "$DirTo/$NewFile"

done <Organize.txt
In your text file write your data like so;
SOURCE/OF/FILE:ORIGINALNAME:NEWNAME:PATH/TO/DESTINATION

Now I know cp copies instead of moving.. so you might need to modify that to rename then move the file.. cp just renames and copies it to a new directory.

Let me know how you get one :)
Post Reply