vosmiic / jellyfin-ani-sync

Synchronize anime watch status between Jellyfin and anime tracking sites.
GNU General Public License v3.0
254 stars 21 forks source link

Auto update anime episodes updates twice #149

Open Joshua-18 opened 2 months ago

Joshua-18 commented 2 months ago

Describe the bug Once im done watching an episode and jellyfin starts the next episode the plugin marks the next episode as watched as well for example ep 2 is being watched and ep 3 auto plays, anilist shows as ep 2-3 watched.

Logs

[2024-08-22 20:35:36.807 -05:00] [INF] [148] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Swiftfin iPadOS" "1.2" playing "Ramen and the Great Big Sky". Stopped at "1420000" ms
[2024-08-22 20:35:36.848 -05:00] [INF] [148] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Swiftfin iPadOS" "1.2" playing "The Other Team". Stopped at "1420000" ms
[2024-08-22 20:35:36.858 -05:00] [INF] [87] jellyfin_ani_sync.UpdateProviderStatus: (Anidb) Anime already has AniDb ID; no need to look it up
[2024-08-22 20:35:36.859 -05:00] [WRN] [87] jellyfin_ani_sync.UpdateProviderStatus: (Anidb) Anime not found in anime list XML; falling back to other metadata providers if available...
[2024-08-22 20:35:36.860 -05:00] [INF] [87] jellyfin_ani_sync.UpdateProviderStatus: (Tvdb) Anime reference found in anime list XML
[2024-08-22 20:35:36.865 -05:00] [WRN] [87] jellyfin_ani_sync.UpdateProviderStatus: (AniDb) Could not lookup using absolute episode number (reason: no mappings found)
[2024-08-22 20:35:36.866 -05:00] [INF] [87] jellyfin_ani_sync.UpdateProviderStatus: Looking up AniDB by season offset
[2024-08-22 20:35:36.867 -05:00] [INF] [87] jellyfin_ani_sync.UpdateProviderStatus: (Tvdb) Anime Kami no Tou: Tower of God found in anime XML file, detected AniDB ID 17559
[2024-08-22 20:35:36.867 -05:00] [INF] [87] jellyfin_ani_sync.UpdateProviderStatus: Retrieving provider IDs from offline database for AniDb ID 17559...
[2024-08-22 20:35:36.870 -05:00] [INF] [27] jellyfin_ani_sync.UpdateProviderStatus: (Anidb) Anime already has AniDb ID; no need to look it up
[2024-08-22 20:35:36.870 -05:00] [WRN] [27] jellyfin_ani_sync.UpdateProviderStatus: (Anidb) Anime not found in anime list XML; falling back to other metadata providers if available...
[2024-08-22 20:35:36.870 -05:00] [INF] [27] jellyfin_ani_sync.UpdateProviderStatus: (Tvdb) Anime reference found in anime list XML
[2024-08-22 20:35:36.871 -05:00] [WRN] [27] jellyfin_ani_sync.UpdateProviderStatus: (AniDb) Could not lookup using absolute episode number (reason: no mappings found)
[2024-08-22 20:35:36.871 -05:00] [INF] [27] jellyfin_ani_sync.UpdateProviderStatus: Looking up AniDB by season offset
[2024-08-22 20:35:36.871 -05:00] [INF] [27] jellyfin_ani_sync.UpdateProviderStatus: (Tvdb) Anime Kami no Tou: Tower of God found in anime XML file, detected AniDB ID 17559
[2024-08-22 20:35:36.871 -05:00] [INF] [27] jellyfin_ani_sync.UpdateProviderStatus: Retrieving provider IDs from offline database for AniDb ID 17559...
[2024-08-22 20:35:36.875 -05:00] [INF] [27] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Playback stop did not have a tracker : "[REDACTED]"
[2024-08-22 20:35:36.875 -05:00] [INF] [87] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Playback stop tracker found, processing stop : "[REDACTED]"
[2024-08-22 20:35:36.875 -05:00] [INF] [87] Jellyfin.Plugin.PlaybackReporting.Data.PlaybackTracker: PlaybackTracker : Adding Stop Event : 08/22/2024 20:35:36
[2024-08-22 20:35:36.875 -05:00] [INF] [87] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Saving playback tracking activity in DB
[2024-08-22 20:35:36.897 -05:00] [INF] [27] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "[REDACTED]". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-08-22 20:35:36.907 -05:00] [INF] [19] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "[REDACTED]". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-08-22 20:35:37.291 -05:00] [INF] [86] jellyfin_ani_sync.UpdateProviderStatus: Retrieved provider IDs
[2024-08-22 20:35:37.292 -05:00] [INF] [86] jellyfin_ani_sync.UpdateProviderStatus: Using provider AniList...
[2024-08-22 20:35:37.355 -05:00] [INF] [86] jellyfin_ani_sync.UpdateProviderStatus: Retrieved provider IDs
[2024-08-22 20:35:37.355 -05:00] [INF] [86] jellyfin_ani_sync.UpdateProviderStatus: Using provider AniList...
[2024-08-22 20:35:37.382 -05:00] [INF] [148] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Adding playback tracker : "[REDACTED]"
[2024-08-22 20:35:37.382 -05:00] [INF] [148] Jellyfin.Plugin.PlaybackReporting.Data.PlaybackTracker: PlaybackTracker : Adding Start Event : 08/22/2024 20:35:37
[2024-08-22 20:35:37.382 -05:00] [INF] [148] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Creating StartPlaybackTimer Task
[2024-08-22 20:35:37.382 -05:00] [INF] [87] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : Entered
[2024-08-22 20:35:37.575 -05:00] [INF] [148] jellyfin_ani_sync.UpdateProviderStatus: (AniList) Series (Tower of God Season 2) found on plan to watch list
[2024-08-22 20:35:37.671 -05:00] [INF] [86] jellyfin_ani_sync.UpdateProviderStatus: (AniList) Series (Tower of God Season 2) found on plan to watch list
[2024-08-22 20:35:37.967 -05:00] [INF] [19] jellyfin_ani_sync.UpdateProviderStatus: (AniList) Updated series (Tower of God Season 2) progress to 4
[2024-08-22 20:35:37.968 -05:00] [INF] [19] jellyfin_ani_sync.UpdateProviderStatus: (AniList) Series (Tower of God Season 2) not found in plan to watch list
[2024-08-22 20:35:37.971 -05:00] [INF] [19] jellyfin_ani_sync.UpdateProviderStatus: (AniList) Series (Tower of God Season 2) found, but not on completed or plan to watch list. Skipping
[2024-08-22 20:35:38.136 -05:00] [INF] [19] jellyfin_ani_sync.UpdateProviderStatus: (AniList) Updated series (Tower of God Season 2) progress to 5
[2024-08-22 20:35:38.136 -05:00] [INF] [19] jellyfin_ani_sync.UpdateProviderStatus: (AniList) Series (Tower of God Season 2) not found in plan to watch list
[2024-08-22 20:35:38.136 -05:00] [INF] [19] jellyfin_ani_sync.UpdateProviderStatus: (AniList) Series (Tower of God Season 2) found, but not on completed or plan to watch list. Skipping

To Reproduce Steps to reproduce the behavior:

  1. Finish an episode
  2. Auto advances to next episode
  3. Check anilist
  4. See that two episodes are marked as seen. IMG_0720

Expected behavior Current episode should be marked as watched not next one as well.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

vosmiic commented 2 months ago

The playback for the two episodes (which I presume are episode 4 and 5) is reported to be completed by Jellyfin. Does this issue occur if you watch an episode via the Jellyfin web interface?

Joshua-18 commented 1 month ago

The playback for the two episodes (which I presume are episode 4 and 5) is reported to be completed by Jellyfin. Does this issue occur if you watch an episode via the Jellyfin web interface?

Sorry for the late reply, i just tested watching an episode on the web interface and it works as intended. Not sure why it only happens to the apps?