Jump to content

Trakt plugin scrobbles, but wrong video length on trakt.tv


aptalca
Go to solution Solved by aptalca,

Recommended Posts

aptalca

Hi, I've been having some issues lately with partially watched TV episodes reverting to unwatched after a trakt sync. I kept wracking my brains and finally figured out what's causing it.

While I'm watching the episode, scrobbling works and trakt.tv website shows the episode as being watched, but it shows the total video length as "3:00" (3 hours) even though the actual length is about 45 minutes. So when I stop it at about 17 minutes in, trakt.tv thinks I'm only at a very low percentage and I'm guessing it discards the partial watched state. The next time trakt plugin does a sync, it reverts the watched status on emby to unwatched, losing my spot in the episode.

It only happens on some media, not all. I'd be happy to provide some details if you let me know what exactly you need.

Here's one episode it happens to every time:

https://thetvdb.com/series/undone/episodes/190762

It's an mkv file with the following video details:

Title
480p H264
Codec
H264
AVC
Yes
Profile
High
Level
31
Resolution
592x448
Aspect Ratio
37:28
Interlaced
No
Framerate
25
Bitrate
573 kbps
Color Primaries
smpte170m
Color Space
smpte170m
Color Transfer
bt709
Bit Depth
8 bit
Pixel Format
yuv420p
Reference Frames
1

Audio details:

Title
English AAC mono (Default)
Language
English
Codec
AAC
Profile
LC
Layout
mono
Channels
1 ch
Bitrate
192 kbps
Sample Rate
24,000 Hz
Default
Yes

And there are 6 embedded DVDSUB subtitles.

The length of the video is 45 minutes, but Trakt.tv website displays 3:00 as the length while scrobbling.

 

Thanks

 

EDIT: Here's a transcode log: https://www.toptal.com/developers/hastebin/virasepoju.php

And here's a screenshot of Trakt.tv while scrobbling:

1690893158_Screenshot2022-04-27203729.thumb.png.ed5941fd3b1808368717409843949dc6.png

Edited by aptalca
Link to comment
Share on other sites

Hi, that's really odd because we don't actually send the runtime over to trakt. We send the playback progress percentage.

Link to comment
Share on other sites

aptalca

Huh, that's really weird then. Thanks for the reply. I'll do a little more troubleshooting with that in mind.

Link to comment
Share on other sites

aptalca

A couple of observations:

1) It doesn't look like trakt api is updated when I seek in the video, because if I start the episode from the beginning and seek to the half way point and start again, trakt.tv still shows the playback in the beginning.

2) If I stop playback at the halfway point, and then start playback again (resume), trakt.tv shows the playback at the halfway mark of a 3 hr video.

That all confirms the percentage is sent by emby correctly.

I also tried playback on a different media server with an external app called plextraktsync doing the scrobbling and trakt.tv displays the runtime as 47 minutes, which is also what the trakt.tv website lists the episode length as: https://trakt.tv/shows/v/seasons/1/episodes/3

I'll try to see how plextraktsync scrobbles and whether they send the runtime info or not

  • Thanks 1
Link to comment
Share on other sites

aptalca

Ugh, this is really dumb. Trakt.tv has duplicate listings for the show and its episodes:

https://trakt.tv/shows/v/seasons/1/episodes/3

https://trakt.tv/shows/v-1984/seasons/1/episodes/3

In one of them, the episodes are listed as 47 minutes long, and that's what plex scrobbles to.

The other one lists the episodes as 180 minutes long and that's what emby scrobbles to.

It is clearly a trakt.tv issue and I'm reporting it to them.

 

Link to comment
Share on other sites

  • Solution
aptalca

I reported the duplicate entries to trakt.tv and they merged them. Now the runtime is correct on trakt.tv and the scrobbles and partial watched status syncs are done properly.

Thanks so much for pointing me in the right direction.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...