Try reducing strain on PMS for metadata

- Taken from Plex for Android GET command
This commit is contained in:
tomkat83 2016-08-07 15:50:01 +02:00
parent a2693b3485
commit ae6061f771

View file

@ -173,13 +173,15 @@ def GetPlexMetadata(key):
else: else:
url = "{server}/library/metadata/" + key url = "{server}/library/metadata/" + key
arguments = { arguments = {
'checkFiles': 0,
'includeExtras': 1, # Trailers and Extras => Extras 'includeExtras': 1, # Trailers and Extras => Extras
# 'includeRelated': 1, # Similar movies => Video -> Related 'includeReviews': 1,
# 'includeRelatedCount': 5, 'includeRelated': 0, # Similar movies => Video -> Related
# 'includeRelatedCount': 0,
# 'includeOnDeck': 1, # 'includeOnDeck': 1,
'includeChapters': 1, # 'includeChapters': 1,
'includePopularLeaves': 1, # 'includePopularLeaves': 1,
'includeConcerts': 1 # 'includeConcerts': 1
} }
url = url + '?' + urlencode(arguments) url = url + '?' + urlencode(arguments)
xml = downloadutils.DownloadUtils().downloadUrl(url) xml = downloadutils.DownloadUtils().downloadUrl(url)