Skip to content
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 episode is scrobbled (production order) #228

Open
NicolaSmaniotto opened this issue Feb 15, 2024 · 2 comments
Open

Wrong episode is scrobbled (production order) #228

NicolaSmaniotto opened this issue Feb 15, 2024 · 2 comments

Comments

@NicolaSmaniotto
Copy link

Watching Rise of the TMNT, Jellyfin is configured to list episodes in production order (and does so). However I've noticed that when watching an episode the wrong one is reported to Trakt.

For example, if I open the second one, which is file "S01E10 - Newsworthy" (1x02 production), Trakt shows me watching "Donnie's Gifts" (1x02 aired).

Is it an issue of missing metadata or is it simply not supported? As a workaround I could create a playlist to correctly order the episodes.

@NicolaSmaniotto NicolaSmaniotto changed the title Wrong episode is scrobbled (prouction order) Wrong episode is scrobbled (production order) Feb 15, 2024
@NicolaSmaniotto
Copy link
Author

I'm sorry, I may have misinterpreted how Jellyfin handles alternative orders. The metadata for the series is the one of the production order, but it is associated to the wrong episodes (in the example I wrote, the second episode has all the metadata of Newsworthy, but it is associated to the file of Donnie's Gift).

So, does this plugin scrobble only based on the file name? Should I rename them some other way? Is this problem specific for this series (I noticed TVDB splits it in two seasons, but of different length, so the metadata is incompatible)?

@virtualmarc
Copy link

virtualmarc commented Jun 21, 2024

I have a similiar problem.

I have a series in DVD Order and can't simply rename the files (since two episodes are one file).

This means I currently have files named s01e01-e02, s01e03-e04, etc.
But these are the episodes numbered in DVD order.
This is no problem for jellyfin, I set the ordering to DVD and did a full scan replacing the metadata for the series and they show up with the correct names in the DVD order.

Now when I play the first file (s01e01-e02), the sync to Trakt is wrong, because It syncs s01e01 and s01e02 in aired order, but s01e01 on the DVD is s01e16 aired and s01e02 on the DVD is s01e01 aired.

I took a look at the source code for scrobbling and sync and came to this if-statement in both cases:

if (useProviderIds
&& HasAnyProviderTvIds(episode)
&& (!episode.IndexNumber.HasValue
|| !episode.IndexNumberEnd.HasValue
|| episode.IndexNumberEnd <= episode.IndexNumber))

Looking at this: the plugin could scrobble/sync by the IMDB/TMBD ID's (which are correct for the episode), but since the episode has an index number, this is used instead of the IMDB/TMDB ID's (which in my case probably also are a bit problematic, because the two episodes in one file are listed as one episode in jellyfin with both names but only one metadata set and only one IMDB/TMDB ID).

For the scenario: one file one episode it could be enough to just remove the index numbers (if possible?) from the metadata. Or we would need an option to force using the IMDB/TVDB ID's for trakt per show (or have an option to set Trakt ID's on an episode which would be used if set and overwrite any other behavior).

This wouldn't be a solution for my one file two episodes scenario, this would probably need a big overhaul in how jellyfin handles this situation and would require to have multiple metadata's per episode, I guess.

I also had a similar situation at another show.
The show included some longer special episodes.
These episodes are listed as normal episodes inside the seasons on TVDB, but are listed as Movies on Trakt.
This resulted in these episodes not marked as collected and watched on Trakt (had to do this manually).
In this case I would've needed an option to overwrite the type from episode to move and set a Trakt ID just for the Trakt scrobbling/sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants