Cleaned up plugin conig html page and implemented episode and movie scrobble flags

This commit is contained in:
Alexander Rufenach
2021-06-02 19:53:05 -04:00
parent e69fe1d6c2
commit aea6ef254f
2 changed files with 50 additions and 20 deletions
@@ -77,7 +77,14 @@ namespace Jellyfin.Plugin.AnilistSync.Services
{
return false;
}
return true;
// Check if movie or episode then check against user config
return playbackProgress.MediaInfo.Type switch
{
nameof(Movie) => userConfig.ScrobbleMovies,
nameof(Episode) => userConfig.ScrobbleShows,
_ => false
};
}
private async void OnPlaybackProgress(object? sessions, PlaybackProgressEventArgs eventArgs)