ShokoAnime / ShokoServer

Repository for Shoko Server.
http://shokoanime.com/shoko-server/
MIT License
376 stars 74 forks source link

TraktTVHelper: Fix wrong match for continuous ep numbering across seasons #1087

Closed krbrs closed 10 months ago

krbrs commented 10 months ago

This fixes wrong ep numbers being used for sync with series like One Piece, where the entry was migrated to TMDB as Trakt's source and where continuous numbering across seasons is used (instead of starting over at 1, as it was with TVDB as Trakt's source before).

This change in numbering broke the old logic behind season/ep matching between AniDB and Trakt.

Should not be a problem with Specials, still I changed the logic here too, as they have been the same before. Also, who knows if the same will happen to Specials one day...

Also some housekeeping/spellchecking on TraktTVHelper.cs