jellyfin / jellyfin-plugin-trakt

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

Duplicate Entry in Trakt #143

Closed kooolarpan closed 2 years ago

kooolarpan commented 2 years ago

Jellyfin-Server: 10.8.0 Trakt-Plugin: 18.0.0.0 Jellyfin-MPV-Shim: 2.0.2 Jellyfin Media Player: 1.7.0-pre4

Issue: The plugin is acting weird as it tracked two plays of the same episode. The beginning and end of the episode are tracked as two plays. image The above image shows the issue that I am facing right now. image The log is of the above image, the entry time is of same as I quickly skipped to the end of the episode.

Logs: https://pastebin.com/Hb1kfB8E

Shadowghost commented 2 years ago

There are exactly two stop events in your logs from two different sources. Can you enable debug logging and check again?

Does this only happen with MPV shim?

kooolarpan commented 2 years ago

I found out that with MPV Shim it records multiple time. With Media Player it is working fine.

kooolarpan commented 2 years ago

image

You can have a look at the logs. https://pastebin.com/t47DqScg

iwalton3 commented 2 years ago

This is probably caused by https://github.com/jellyfin/jellyfin-mpv-shim/blob/383540f4345c374ec5ea647569f7b6f1c4ac709f/jellyfin_mpv_shim/player.py#L623

kooolarpan commented 2 years ago

Ohh. Then it should be fixed.

iwalton3 commented 2 years ago

Try this build if you're on Windows (or build from source against the latest master branch) https://github.com/jellyfin/jellyfin-mpv-shim/actions/runs/2328123477

kooolarpan commented 2 years ago

Installed it but got an error. image

kooolarpan commented 2 years ago

After installing new-build. It is working fine. https://github.com/jellyfin/jellyfin-mpv-shim/actions/runs/2329916590

P.S Thanks for quick fix @iwalton3