jellyfin / jellyfin-plugin-trakt

https://jellyfin.org
MIT License
179 stars 32 forks source link

Duplicate plays bug auto remove #162

Closed Dnkhatri closed 10 months ago

Dnkhatri commented 2 years ago

Every once in a while trakt add many views of the same episode or movie. Even the time is the same. So far I am using a python plugin to clean up duplicate plays but was wondering if the duplicate check can be added to the jellyfin plugin itself. If a episode is shown to be palyed 20-30 times at nine a clock then the plugin should remove those plays and keep 1 only. Another request though that is not because of trakt bug I do not want a 2nd play of show or movie to be registered only the first play so removing all other plays after the first and not adding new plays if a movie is already shown as watched. This of course can be optional setting for users as some people might want to keep the data but for me only the first time I watched a movie is important not the repeat views so would prefer those plays not to be added.

Shadowghost commented 2 years ago

AFAIK this only happens if the playcount within Jellyfin is higher than the one in trakt. The plugin will then add the amount of plays at the most recent plays to match the playcount. Since Jellyfin only keeps the date and time of the most recent play we can't add the other plays at different dates.

This currently is intended behaviour but it could be argued that we should just not sync the playcount.

Dnkhatri commented 2 years ago

I'm having this duplicate issue right now with one show. Would modifying the playcount on library.db for these episodes solve this issue? I've seen that for each play, it creates 3 entries in the UserDatas table. Do I need to modify all of them?

do you want to remove duplicate from trakt or jellyfin. For trakt I am using this script https://github.com/anthonyfoulfoin/trakt-tv-duplicates-removal or you can also use this website https://huere.net/trakt/duplicate_removal/

Jerrk commented 1 year ago

https://github.com/jellyfin/jellyfin-plugin-trakt/issues/162#issuecomment-1235489057 i agree with this whole-heartedly. at the very least add another option for "sync playcount on most recent play" or something along those lines.