From cc6b16e8cbe56acc3b8dd339a78ceec6daba2dfd Mon Sep 17 00:00:00 2001 From: Alexander Rufenach Date: Thu, 3 Jun 2021 05:49:53 -0400 Subject: [PATCH] Added setting to choose whether to scrobble or not on rewatches --- .../Configuration/UserConfig.cs | 5 ++++- .../Configuration/configPage.html | 7 +++++++ Jellyfin.Plugin.AnilistSync/Plugin.cs | 2 +- .../Services/PlaybackScrobbler.cs | 14 +++++++++++--- 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/Jellyfin.Plugin.AnilistSync/Configuration/UserConfig.cs b/Jellyfin.Plugin.AnilistSync/Configuration/UserConfig.cs index bf31efd..50d265f 100644 --- a/Jellyfin.Plugin.AnilistSync/Configuration/UserConfig.cs +++ b/Jellyfin.Plugin.AnilistSync/Configuration/UserConfig.cs @@ -14,7 +14,8 @@ namespace Jellyfin.Plugin.AnilistSync.Configuration { ScrobbleMovies = true; ScrobbleShows = true; - ScrobblePercentage = 70; + ScrobbleRewatches = true; + ScrobblePercentage = 80; ScrobbleNowWatchingPercentage = 5; MinLength = 5; UserToken = string.Empty; // Todo: check if token is still valid @@ -31,6 +32,8 @@ namespace Jellyfin.Plugin.AnilistSync.Configuration /// public bool ScrobbleShows { get; set; } + public bool ScrobbleRewatches { get; set; } + /// /// Gets or sets scrobble percentage. /// diff --git a/Jellyfin.Plugin.AnilistSync/Configuration/configPage.html b/Jellyfin.Plugin.AnilistSync/Configuration/configPage.html index c8856a2..059ac4d 100644 --- a/Jellyfin.Plugin.AnilistSync/Configuration/configPage.html +++ b/Jellyfin.Plugin.AnilistSync/Configuration/configPage.html @@ -78,6 +78,13 @@ Percentage watched needed to scrobble +
+ +
+