New: Only Refresh on TMDB Refersh

This commit is contained in:
Qstick
2019-12-14 22:30:44 -05:00
parent d2065bfa1b
commit edcc0ba7ce
3 changed files with 27 additions and 3 deletions
@@ -50,6 +50,22 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
_logger = logger;
}
public HashSet<int> GetChangedMovies (DateTime startTime)
{
var request = _movieBuilder.Create()
.SetSegment("route", "movie")
.SetSegment("id", "")
.SetSegment("secondaryRoute", "changes")
.Build();
request.AllowAutoRedirect = true;
request.SuppressHttpError = true;
var response = _httpClient.Get<MovieSearchRoot>(request);
return new HashSet<int>(response.Resource.results.Select(c => c.id));
}
public Movie GetMovieInfo(int TmdbId, Profile profile = null, bool hasPreDBEntry = false)
{
var langCode = profile != null ? IsoLanguages.Get(profile.Language)?.TwoLetterCode ?? "en" : "en";