added support for jellyfin 10.8.0

This commit is contained in:
Fallenbagel
2022-04-21 14:30:11 +05:00
parent 90ad837563
commit f22f9021ec
3 changed files with 8 additions and 6 deletions
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Jellyfin.Data.Enums;
using Jellyfin.Plugin.AnilistSync.API;
using Jellyfin.Plugin.AnilistSync.API.Exceptions;
using Jellyfin.Plugin.AnilistSync.Configuration;
@@ -95,8 +96,8 @@ namespace Jellyfin.Plugin.AnilistSync.Services
// Check if movie or episode then check against user config
return playbackProgress.MediaInfo.Type switch
{
nameof(Movie) => userConfig.ScrobbleMovies,
nameof(Episode) => userConfig.ScrobbleShows,
BaseItemKind.Movie => userConfig.ScrobbleMovies,
BaseItemKind.Episode => userConfig.ScrobbleShows,
_ => false
};
}