|
|
@ -32,31 +32,45 @@ namespace NzbDrone.Core.ImportLists.Trakt.Popular
|
|
|
|
switch (Settings.TraktListType)
|
|
|
|
switch (Settings.TraktListType)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case (int)TraktPopularListType.Trending:
|
|
|
|
case (int)TraktPopularListType.Trending:
|
|
|
|
link += "movies/trending" + filtersAndLimit;
|
|
|
|
link += "movies/trending";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case (int)TraktPopularListType.Popular:
|
|
|
|
case (int)TraktPopularListType.Popular:
|
|
|
|
link += "movies/popular" + filtersAndLimit;
|
|
|
|
link += "movies/popular";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case (int)TraktPopularListType.Anticipated:
|
|
|
|
case (int)TraktPopularListType.Anticipated:
|
|
|
|
link += "movies/anticipated" + filtersAndLimit;
|
|
|
|
link += "movies/anticipated";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case (int)TraktPopularListType.BoxOffice:
|
|
|
|
case (int)TraktPopularListType.BoxOffice:
|
|
|
|
link += "movies/boxoffice" + filtersAndLimit;
|
|
|
|
link += "movies/boxoffice";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case (int)TraktPopularListType.TopWatchedByWeek:
|
|
|
|
case (int)TraktPopularListType.TopWatchedByWeek:
|
|
|
|
link += "movies/watched/weekly" + filtersAndLimit;
|
|
|
|
link += "movies/watched/weekly";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case (int)TraktPopularListType.TopWatchedByMonth:
|
|
|
|
case (int)TraktPopularListType.TopWatchedByMonth:
|
|
|
|
link += "movies/watched/monthly" + filtersAndLimit;
|
|
|
|
link += "movies/watched/monthly";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case (int)TraktPopularListType.TopWatchedByYear:
|
|
|
|
case (int)TraktPopularListType.TopWatchedByYear:
|
|
|
|
link += "movies/watched/yearly" + filtersAndLimit;
|
|
|
|
link += "movies/watched/yearly";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case (int)TraktPopularListType.TopWatchedByAllTime:
|
|
|
|
case (int)TraktPopularListType.TopWatchedByAllTime:
|
|
|
|
link += "movies/watched/all" + filtersAndLimit;
|
|
|
|
link += "movies/watched/all";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case (int)TraktPopularListType.RecommendedByWeek:
|
|
|
|
|
|
|
|
link += "movies/recommended/weekly";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case (int)TraktPopularListType.RecommendedByMonth:
|
|
|
|
|
|
|
|
link += "movies/recommended/monthly";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case (int)TraktPopularListType.RecommendedByYear:
|
|
|
|
|
|
|
|
link += "movies/recommended/yearly";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case (int)TraktPopularListType.RecommendedByAllTime:
|
|
|
|
|
|
|
|
link += "movies/recommended/yearly";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
link += filtersAndLimit;
|
|
|
|
|
|
|
|
|
|
|
|
var request = new ImportListRequest(_traktProxy.BuildTraktRequest(link, HttpMethod.GET, Settings.AccessToken));
|
|
|
|
var request = new ImportListRequest(_traktProxy.BuildTraktRequest(link, HttpMethod.GET, Settings.AccessToken));
|
|
|
|
|
|
|
|
|
|
|
|
yield return request;
|
|
|
|
yield return request;
|
|
|
|