amc not obeying forced anime tag

All your suggestions, requests and ideas for future development
Post Reply
PsychicMuffin
Posts: 2
Joined: 18 Jul 2016, 17:59

amc not obeying forced anime tag

Post by PsychicMuffin »

No matter what I do, I can't seem to force amc to interpret stuff as anime, even if it's in an Anime folder AND I use the anime tag. It recognizes I've set the tag, but puts it in the tvs group and tries to ID it with TVDB, which results in it trying to name it incorrectly as a duplicate (which is why it's actually failing here). I saw a related thread but the problem was faulty regex identifying the parent folder as TV shows, but I checked the forceSeries def and I don't think the simple variables I've made are causing that. Any ideas? If not, I can download the script and run it locally, tweaking random things to try and debug if necessary. Thank you for any help!

Code: Select all

C:\Users\Soda>filebot -script fn:amc --output "\\NAS\nas" --action copy --conflict skip -non-strict "D:\Anime" --log-file amc.log --def ut_label=Anime artwork=y
Locking C:\Users\Soda\AppData\Roaming\FileBot\logs\amc.log
Run script [fn:amc] at [Mon Jul 18 22:23:51 EDT 2016]
Parameter: ut_label = Anime
Parameter: artwork = y
Argument: D:\Anime
Input: D:\Anime\Sword Art Online II\Season 01\Sword Art Online II - S01E01 - The World of Guns.mkv
Group: [tvs:sword art online ii] => [Sword Art Online II - S01E01 - The World of Guns.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Sword Art Online II]
Fetching episode data for [Sword Art Online]
Fetching episode data for [Sword Art Online Abridged]
Skipped [D:\Anime\Sword Art Online II\Season 01\Sword Art Online II - S01E01 - The World of Guns.mkv] because [\\NAS\nas\TV Shows\Sword Art Online\Season 01\Sword Art Online - S01E01 - The World of Swords.mkv] already exists
Processed 0 files
Finished without processing any files
Failure (┬░_┬░)
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: amc not obeying forced anime tag

Post by rednoah »

If the filename contains SxE patterns like S01E01 the amc script will always force TV mode.

In this case it might work, because S01E01 is E01 but if you had S02E01 then it couldn't possibly work because AniDB doesn't know SxE numbers, so FileBot couldn't possibly know which SxE numbers corresponds to which Absolute E numbers.
:idea: Please read the FAQ and How to Request Help.
PsychicMuffin
Posts: 2
Joined: 18 Jul 2016, 17:59

Re: amc not obeying forced anime tag

Post by PsychicMuffin »

Ohhhh I see, that is rather unfortunate. All of my anime was S01EXX, so it was all using absolute ordering but DID still have S01 in front of everything. So I ran it with forced anime but apparently the name forced it into TV mode and now most of it is divided into actual american seasons since about 75% of them got matched in TVDB, so that's a bit borked =/.

It might be slightly awkward code, but would it make sense to check if ut_label is set first before checking any of the regexes and such. If it is set, match it to one of the forced defs or return with an error if it was an invalid label. If it isn't set, then try to identify via file patterns and such. That way, the labels will always be obeyed and you can verify the label was valid and it won't just proceed and ignore it if you put in a typo.
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: amc not obeying forced anime tag

Post by rednoah »

You can always not use the amc script if you want to force or fix something manually. Might as well do it in the GUI. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply