Fixed: Plex Watchlist import list

This commit is contained in:
Mark McDowall 2024-03-18 17:24:28 -07:00 committed by Mark McDowall
parent 29204c93a3
commit 88de927435
1 changed files with 3 additions and 2 deletions

View File

@ -99,7 +99,7 @@ namespace NzbDrone.Core.Notifications.Plex.PlexTv
var clientIdentifier = _configService.PlexClientIdentifier; var clientIdentifier = _configService.PlexClientIdentifier;
var requestBuilder = new HttpRequestBuilder("https://metadata.provider.plex.tv/library/sections/watchlist/all") var requestBuilder = new HttpRequestBuilder("https://discover.provider.plex.tv/library/sections/watchlist/all")
.Accept(HttpAccept.Json) .Accept(HttpAccept.Json)
.AddQueryParam("clientID", clientIdentifier) .AddQueryParam("clientID", clientIdentifier)
.AddQueryParam("context[device][product]", BuildInfo.AppName) .AddQueryParam("context[device][product]", BuildInfo.AppName)
@ -107,7 +107,8 @@ namespace NzbDrone.Core.Notifications.Plex.PlexTv
.AddQueryParam("context[device][platformVersion]", "7") .AddQueryParam("context[device][platformVersion]", "7")
.AddQueryParam("context[device][version]", BuildInfo.Version.ToString()) .AddQueryParam("context[device][version]", BuildInfo.Version.ToString())
.AddQueryParam("includeFields", "title,type,year,ratingKey") .AddQueryParam("includeFields", "title,type,year,ratingKey")
.AddQueryParam("includeElements", "Guid") .AddQueryParam("excludeElements", "Image")
.AddQueryParam("includeGuids", "1")
.AddQueryParam("sort", "watchlistedAt:desc") .AddQueryParam("sort", "watchlistedAt:desc")
.AddQueryParam("type", (int)PlexMediaType.Show) .AddQueryParam("type", (int)PlexMediaType.Show)
.AddQueryParam("X-Plex-Container-Size", pageSize) .AddQueryParam("X-Plex-Container-Size", pageSize)