This commit is contained in:
Lucius Aezerith 2026-05-02 14:32:12 +00:00 committed by GitHub
commit 1f807f367b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View file

@ -66,6 +66,9 @@ public class SimklSyncActivityResource
{
[JsonProperty("tv_shows")]
public SimklTvSyncActivityResource TvShows { get; set; }
[JsonProperty("anime")]
public SimklTvSyncActivityResource Anime { get; set; }
}
public class SimklTvSyncActivityResource

View file

@ -4,6 +4,7 @@
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.ImportLists.Simkl.User;
using NzbDrone.Core.Localization;
using NzbDrone.Core.Parser;
using NzbDrone.Core.Parser.Model;
@ -110,7 +111,16 @@ private DateTime GetLastActivity()
if (response?.Resource != null)
{
return response.Resource.TvShows.All;
var showType = SimklUserShowType.Shows;
if (Settings is SimklUserSettings userSettings)
{
showType = (SimklUserShowType)userSettings.ShowType;
}
return showType == SimklUserShowType.Shows
? response.Resource.TvShows.All
: response.Resource.Anime.All;
}
}
catch (HttpException)