mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-08 13:01:10 +02:00
Merge 3aa68122d2 into bf5d48c76a
This commit is contained in:
commit
1f807f367b
2 changed files with 14 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue