erengy / taiga

A lightweight anime tracker for Windows
https://taiga.moe
GNU General Public License v3.0
2.08k stars 223 forks source link

Support TVDB numbering scheme #186

Open MarcusGHub opened 8 years ago

MarcusGHub commented 8 years ago

I just realized that this application existed :(

All my anime are renamed with the TVDB naming scheme (S00E00) so it can be correctly scraped into my Kodi library.

Is it possible for you incorporate TVDB's naming scheme so that my anime can be recognized?

Zarggg commented 8 years ago

Most anime series (though I'm sure there are exceptions) do not have "seasons" like Western television does. Instead, subsequent series have different names with their own episode numbers. Even in cases where a single series goes by the same name for a number of years (e.g., Dragon Ball, Bleach, One Piece, etc.), episodes continue to be numbered sequentially.

In order to accomplish what you are asking for, there would need to be a standard by which a Western-style "season and episode" number converts to sequential episode numbering. To my knowledge, no such standard exists.

MarcusGHub commented 8 years ago

I get what you're saying, but you do have anime by seasons.

For One Piece:

AniDB (Anime Database) - http://anidb.net/perl-bin/animedb.pl?show=anime&aid=69 This is by episodes. This is called absolute ordering, which is what is used generally by all fansubbing groups. However, Kodi doesn't always scraped these correctly, like Fate Stay Night Unlimited Blade Works would get misinterpreted for Fate/Stay Night.

TVDB (Television Database) - http://thetvdb.com/?tab=series&id=81797&lid=7 Kodi is great at recognizing series with this format.

wopian commented 8 years ago

Use the "Alternative Titles" in the edit popup.

MarcusGHub commented 8 years ago

That won't help with the season feature.

TVDB format: One Piece - S17E87 - The Manly Duel! Señor's Elegy of Love!

AniDB format: One Piece - E715 - The Manly Duel! Señor's Elegy of Love! or [HorribleSubs] One Piece - 715 [720p]

So adding alternative titles like One Piece S17 will read One Piece S17E87 as One Piece E87.

erengy commented 8 years ago

Since none of the current services have this information, pretty much the only way for this to work is to manually provide Taiga a list of all series with the number of episodes for each "season", and associate these with their respective MyAnimeList and Hummingbird IDs. This is by no means an easy task, and I doubt it's worth the effort. Ideally, I think it's Kodi that should support absolute numbering (if it doesn't already), since the files are named that way by default.

MarcusGHub commented 8 years ago

The way you put it sounds extreme.

Kodi does support absolute numbering, but there are quite a few anime that are being misinterpreted.

Okay.... forget about the naming scheme for now. I think I've come up with a better solution.

Is it possible to add a feature that allows us to append the anime's ID and the episode's number to the end of the filename? That feature would search the filename for E## and use that as the episode's number. Taiga would read the MAL ID to recognize the anime and update the anime based on the episode number. This way, Kodi scrapes the anime correctly and Taiga updates the anime problem-free.

For example: The anime K: Return of Kings MAL ID is 27991. Below the episode number is 06 or 6. The feature would append the following to the filename: K - S02E06 - Keeper [27991_6].... K is the anime's title on TVDB. One-Punch Man - S01E06 - The Terrifying City [30276_6]

There will be cases where the anime is long-running - these aren't common these days - and we would have to enter the episode number manually, like: Fairy Tail - S06E32 - Tartaros Arc Iron Fist of the Fire Dragon [22043_83] One Piece - S17E89 - Trueno Bastard! Kyros' Blow of Anger! [21_717]

erengy commented 8 years ago

In the first two cases, there's no need for such addition; Taiga can recognize these files as is. In fact, you don't even need to set an alternative title for K, because Taiga will match K - S02 to K 2nd Season, which is provided by MAL.

For the latter two, identifying these series is not an issue, although it does currently require you to add some alternative titles. And if you have to enter the episode numbers by hand, it wouldn't make sense for this to be a part of Taiga.

That said, I can probably make it so that the following filenames are recognized correctly:

Taiga already gives priority to episode prefixes (they don't have to be at the end of the filename). But it currently skips parsing the SxxExx and considers it a part of the anime title, if an episode prefix is found. I can fix this. I have the technology.

On another note, do you know how many series are there such as Fairy Tail and One Piece? If it's not too much, we can still consider evaluating the other approach. Because, ideally, Taiga shouldn't require you to rename any files.

MarcusGHub commented 8 years ago

K's alternative title is for Kodi's sake, not Taiga's, though Kodi could've probably recognize it with it's official title, K - Return of Kings. I just renamed all my anime like TVDB's, so that I don't encounter any problem in Kodi.

I'm glad to hear that identifying the anime isn't a problem :)

Adding episodes by hand is only for long-running anime where the title remains the same throughout and the episode number just keeps incrementing. There are very few of those these days. Below are some of the long-running anime: Fairy Tail One Piece Naruto Shippuden So, renaming these few by hand isn't a problem.

I suggested using the MAL ID if Taiga couldn't recognize the anime.

In a case like K, whose fansubbed title would be K - Return of Kings for this season... I thought might've been a problem for Taiga, because there's a K anime and a K - Return of Kings anime. However, you said Taiga would recognize it regardless.

If the parsing is fixed, like a optional setting, Taiga would be able to identify: K - S02E06 - Keeper as K - Return of Kings and the 06 as the episode Haikyuu!! - S02E06 - Tempo as Haikyuu!! Second Season and the 06 as the episode

So, the problem would be identifying the correct episode. for long-running anime.

It seem these are all the long running anime series https://en.wikipedia.org/wiki/List_of_anime_series_by_episode_count

If it's too much of a problem, don't let it get in your of other fixes.

MORE I tried playing: Noragami - S02E06 - What Must Be Done [Episode 6] but it wasn't recognized. I added alt titles: Noragami - S02 Noragami S02

However, I had to click the anime that was close match. After which Taiga added Noragami - S02E06 - What Must Be Done as an alt title.

http://prntscr.com/919im7

MarcusGHub commented 8 years ago

Any progress?

ConnorKrammer commented 8 years ago

He's a busy guy; go easy on him. :P

On Mon, Nov 16, 2015 at 5:28 PM, MarcusGHub notifications@github.com wrote:

Any progress?

— Reply to this email directly or view it on GitHub https://github.com/erengy/taiga/issues/186#issuecomment-157219396.

MarcusGHub commented 8 years ago

I know. Plus he's doing it all for free. I just wanted to know if it's coming along; if it's feasible.

erengy commented 8 years ago

Having checked both MAL and TVDB for long-running series (i.e. has more than 50 episodes), the following list should cover the most popular ones (i.e. has more than 50k watchers on MAL):

I briefly attempted to implement the feature, only to realize that it's just not going to work with the way Taiga's recognition process works. I'm leaving the issue open, but I can't think of any viable way of doing this at the moment.

MarcusGHub commented 8 years ago

Okay. I'm grateful that you attempted it :)

ghost commented 8 years ago

First of all im no progammer and a noob to hummingbird and taiga but while searching for a hb plugin for XBMC/Kodi i stumbled across this https://forums.hummingbird.me/t/who-can-develop-a-hummingbird-plex-xmbc-scrobbler/1526/10 but for the sake of this issue this is the important post from UberMouse "I developed a simple syncing application to sync scrobbles from Trakt to Hummingbird. It would be very simple to fork the Plex plugin (I am friends with the guy who is developing the new version) and sync to hummingbird (Which I don't believe would be that hard), but the primary problem is the fact TVDB and Hummingbird have a lot of differences in how shows are setup (English vs Japanese names, Seasons vs separate shows etc). http://thexem.de is supposed to solve problems like this by providing mappings between different services (So I can lookup Code Geass s2 ep 1 and end up with Code Geas R2 S1EP1) but it doesn't have enough data to be useful yet. To deal with this in my syncer I'm just manually providing a database of TVDB IDs -> hummingbird slugs of shows that require the name to be rewritten to match properly. But that's not really feasible for something out of personal scale. So I'm not really sure how you could handle this in a Plex/XBMC plugin."

hope you sort this out and that this post helps you.

lunyx commented 7 years ago

Not sure if there was any progress made on this, but I did run into this with Iron-Blooded Orphans S2. HorribleSubs starts their numbering as E26 without any season label. I added an alternative title using the name without the "2nd season" and checked the box for search for torrents using the alternative name. It seems to have offset everything by the count of episodes in the first season and detection of files seem to be working correctly as well. http://i.imgur.com/M5mPZ8X.png

Is this actually supported now or did I just get lucky?

erengy commented 7 years ago

Taiga is able to identify those releases without an alternative title, actually. It's in the anime-relations file, so Taiga automatically redirects 26-50th episodes of S1 to 1-25th episodes of S2. In fact, now that you added that alternative title, Taiga won't be able to identify the first season correctly.

TVDB numbering scheme that is discussed in this issue is different: It refers to mapping multiple seasons (or rather, arcs) to a single database entry (e.g. One Piece - S17E89One Piece ep. 717).

lunyx commented 7 years ago

Ah, ok. I could've sworn that it was not working prior to my change. Is it possible that it updated without me knowing about it?

erengy commented 7 years ago

Anime relations are updated when you check for updates (automatically at startup, or manually via Help menu), so it's possible. The rule for Mobile Suit Gundam: Iron-Blooded Orphans 2nd Season was added six days ago though, so it's been a while.

xrishox commented 2 months ago

there are plenty of conversion schemes these days. it would be nice to get support since i too have all of my anime named according to tvdb conventions.

https://github.com/Anime-Lists/anime-lists/ https://github.com/Fribb/anime-lists/ https://thexem.info/