Anime Season issue

All about user-defined episode / movie / file name format expressions
Post Reply
psxlover
Posts: 19
Joined: 21 Feb 2015, 17:47

Anime Season issue

Post by psxlover »

Hallo,

since I updated filebot to v4.7 I'm having an issue with anime naming. I used to have a custom amc.groovy which would rename animes twice in order to get a s00e00 file format.

Since version 4.7 I simply use "animeFormat=Anime/{n}/{n} - {s00e00} - {t}". This works fine in animes spanning multiple seasons, but with animes having only one season the filename does not contain "s01" which causes Emby server to label them as "Season Unknown".

Example:

Code: Select all

Run script [C:\Users\Alex\Downloads\Videos\filebot\amc.groovy] at [Sun Jul 24 14:14:39 EEST 2016]
Parameter: ut_label = Anime
Parameter: ut_state = 10
Parameter: ut_title = [Commie] One-Punch Man - 01 [D103C797].mkv
Parameter: ut_kind = single
Parameter: ut_file = [Commie] One-Punch Man - 01 [D103C797].mkv
Parameter: ut_dir = C:\Users\Alex\Downloads\Seeding
Parameter: subtitles = el,en
Parameter: clean = y
Parameter: animeFormat = Anime/{n}/{s}/{n} - {s00e00} - {t}
Input: C:\Users\Alex\Downloads\Seeding\[Commie] One-Punch Man - 01 [D103C797].mkv
Group: [anime:one punch man] => [[Commie] One-Punch Man - 01 [D103C797].mkv]
Rename episodes using [AniDB]
Auto-detected query: [One Punch Man, commie one punch man]
Fetching episode data for [One Punch Man]
Fetching episode data for [One Punch Man: Road to Hero]
[COPY] Rename [C:\Users\Alex\Downloads\Seeding\[Commie] One-Punch Man - 01 [D103C797].mkv] to [C:\Users\Alex\Downloads\Videos\Anime\One-Punch Man\One-Punch Man - E01 - The Strongest Man.mkv]
Processed 1 files
Failed to set xattr: C:\Users\Alex\Downloads\Videos\Anime\One-Punch Man\One-Punch Man - E01 - The Strongest Man.mkv:net.filebot.metadata
Done ヾ(@⌒ー⌒@)ノ
Last edited by psxlover on 24 Jul 2016, 17:05, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 23936
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Anime Seaon issue

Post by rednoah »

When using {s00e00} to format AniDB episode data, FileBot will check TheTVDB behind the scenes to find the corresponding TheTVDB episode data (by series name and absolute episode number). This leap may not always succeed as series names/numbers may not match.

In this particular case it's probably because "One-Punch Man" != "One Punch Man" so that can be fixed easily.

Other cases (e.g. Banner of the Stars) where AniDB/TheTVDB series/numbers don't match at all are much more tricky though.


EDIT: r4098 fixes this and (some) similar issues.
:idea: Please read the FAQ and How to Request Help.
psxlover
Posts: 19
Joined: 21 Feb 2015, 17:47

Re: Anime Season issue

Post by psxlover »

One-Punch Man is not the only anime I've encountered a problem with. Some episodes of One-Punch Man that were incorrectly marked as Series instead of Anime and where renamed using TheTVDB had a correct season number.

But neither ReLIFE, Assassination Classroom, Ace Attorney or Digimon Frontier were named correctly:

Code: Select all

Run script [C:\Users\Alex\Downloads\Videos\filebot\amc.groovy] at [Sun Jul 24 19:45:29 EEST 2016]
Parameter: ut_label = Anime
Parameter: ut_state = 10
Parameter: ut_title = [HorribleSubs] Ace Attorney - 13 [720p].mkv
Parameter: ut_kind = single
Parameter: ut_file = [HorribleSubs] Ace Attorney - 13 [720p].mkv
Parameter: ut_dir = C:\Users\Alex\Downloads\Seeding
Parameter: subtitles = el,en
Parameter: clean = y
Parameter: animeFormat = Anime/{n}/{n} - {s00e00} - {t}
Input: C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 13 [720p].mkv
Group: [anime:ace attorney] => [[HorribleSubs] Ace Attorney - 13 [720p].mkv]
Rename episodes using [AniDB]
Auto-detected query: [Ace Attorney]
Fetching episode data for [Gyakuten Saiban: Sono "Shinjitsu", Igi Ari!]
[COPY] Rename [C:\Users\Alex\Downloads\Seeding\[HorribleSubs] Ace Attorney - 13 [720p].mkv] to [C:\Users\Alex\Downloads\Videos\Anime\Ace Attorney\Ace Attorney - E13 - Turnabout Promise.mkv]
Processed 1 files
Failed to set xattr: C:\Users\Alex\Downloads\Videos\Anime\Ace Attorney\Ace Attorney - E13 - Turnabout Promise.mkv:net.filebot.metadata
Done ヾ(@⌒ー⌒@)ノ
Did that commit fix those too?
User avatar
rednoah
The Source
Posts: 23936
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Anime Seaon issue

Post by rednoah »

1.
Episode files are processed as Anime if - and only if - any of these conditions apply:
viewtopic.php?t=1508

If TheTVDB is used, then the issue of the OP (i.e. matching AniDB to TheTVDB data) is beside the point.


2.
FileBot uses the AniDB primary title Gyakuten Saiban: Sono "Shinjitsu", Igi Ari! to search for a matching show on TheTVDB which in this case yields 0 results and thus FileBot can't know the matching TheTVDB episode data.

I will consider using the normal series name {n} but depending on your language preferences this may work even less well.
:idea: Please read the FAQ and How to Request Help.
psxlover
Posts: 19
Joined: 21 Feb 2015, 17:47

Re: Anime Season issue

Post by psxlover »

1)

Code: Select all

Parameter: ut_label = Anime
Problem is it first checks for series.

2) That explains the issue
User avatar
rednoah
The Source
Posts: 23936
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Anime Season issue

Post by rednoah »

--def ut_label=Anime is more of a hint. If the file contains patterns like SxE or S00E00 then it's still considered to be a TV Series and processed with TheTVDB.

If you process SxE numbered episodes with AniDB (which doesn't have the concept of seasons) then you're in for a world of pain. It simply can't work past "Season 1".


PS: Keep in mind that using {s00e00} DOES NOT correctly convert AniDB to TheTVDB data. It just happens to work well enough for the easy ones like One Piece and Naruto where there's a nice 1:1 mapping by default.

It'll never work for things like Banner of the Stars: TheTVDB::72025AniDB::1AniDB::4AniDB::5AniDB::2673
:idea: Please read the FAQ and How to Request Help.
Post Reply