Fix librarysync key error
This commit is contained in:
parent
57f10ee1f4
commit
9097f06392
2 changed files with 11 additions and 10 deletions
|
@ -1821,10 +1821,10 @@ class API():
|
||||||
]
|
]
|
||||||
"""
|
"""
|
||||||
item = self.item.attrib
|
item = self.item.attrib
|
||||||
key = item['grandparentRatingKey']
|
key = item.get('grandparentRatingKey')
|
||||||
title = item['grandparentTitle']
|
title = item.get('grandparentTitle')
|
||||||
season = item['parentIndex']
|
season = item.get('parentIndex')
|
||||||
episode = item['index']
|
episode = item.get('index')
|
||||||
return key, title, season, episode
|
return key, title, season, episode
|
||||||
|
|
||||||
def addPlexHeadersToUrl(self, url, arguments={}):
|
def addPlexHeadersToUrl(self, url, arguments={}):
|
||||||
|
|
|
@ -1258,12 +1258,13 @@ class TVShows(Items):
|
||||||
seriesId, seriesName, season, episode = API.getEpisodeDetails()
|
seriesId, seriesName, season, episode = API.getEpisodeDetails()
|
||||||
|
|
||||||
if season is None:
|
if season is None:
|
||||||
if item.get('AbsoluteEpisodeNumber'):
|
season = -1
|
||||||
# Anime scenario
|
# if item.get('AbsoluteEpisodeNumber'):
|
||||||
season = 1
|
# # Anime scenario
|
||||||
episode = item['AbsoluteEpisodeNumber']
|
# season = 1
|
||||||
else:
|
# episode = item['AbsoluteEpisodeNumber']
|
||||||
season = -1
|
# else:
|
||||||
|
# season = -1
|
||||||
|
|
||||||
# Specials ordering within season
|
# Specials ordering within season
|
||||||
if item.get('AirsAfterSeasonNumber'):
|
if item.get('AirsAfterSeasonNumber'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue