-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong episodes marked as watched during sync from Trakt when series not ordered by Air Date #204
Comments
I knew your work wouldn't already have solved my problem, but I think it is almost there. I will work on getting a debug log later.
Yes
Trakt uses the default TMDB order, which is aired order. I'm using a TMDB episode group (which is what they call alternate ordering) already. But the number of seasons and the number of episodes in the seasons are the same for most of my series. For example. Star Trek Season 1 aired order What I would like the plugin to do, is first check if (Series.DisplayOrder != "originalAirDate" || Series.DisplayOrder != String.Empty) // not sure what the default value is
{
// don't even call watched API, some SxE numbers won't match
// use history API and match only using episode IDs, not season/episode numbers
} |
I'm starting to think that it should even be better to only use the history api and no longer the watched api for matching the episodes. And when a match is found by indexer id, there is no need to check the season and episode number... I tried with my fix to not touch too much of the existing code, but maybe we'll have to review the complete import from trakt for the episodes (but also keep the existing logic with the season and number as fallback) |
IMO ids should be preferred over SxE. But perhaps history API is a fast call and easier on Trakt? For most users that have seasons/episodes that match Trakt it's not an issue. But there should definitely be a way (or several) to say I prefer ids. Either an option in the plugin, or based on metadata about the series displayorder (or other fields?) |
Yeah, that's why I tried to only include the fallback to history api when it could not find a match with regular season/episode. |
I think you might be right. I was just looking over the Trakt API and it does seem like History is the better data set for what the plugin is trying to do.
|
I have already been rewriting the logic a bit. |
If you want, I can share the updated plugin so you can test? |
I can test. I have a subset of my library copied for testing. |
You want the DLL? Or I can already make the PR so you can compile yourself? |
I've compiled it for my PRs before, but it's been months since I have. |
I have some series ordered by DVD or Production order on TMDB. I added another season to one of these series that I had partially watched history in Trakt.
2x01 DVD order is 2x04 aired in this example. Trakt correctly has 2x04 marked as watched on the website. But when JF pulls history from Trakt 2x04 DVD is marked as watched, not 2x01 DVD. JF has episode provider IDs, so I think the solution is the same as in #191 . Just check if the series is not aired order, and if so, do not use watched API, only history API.
pinging @h3llrais3r for opinion.
Thanks!
The text was updated successfully, but these errors were encountered: