mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix syncing when Premiere date is empty
This commit is contained in:
parent
d67affc459
commit
c1f79000c7
2 changed files with 3 additions and 2 deletions
|
@ -94,7 +94,8 @@ class Movies(KodiDb):
|
|||
obj['Video'] = API.video_streams(obj['Video'] or [], obj['Container'])
|
||||
obj['Audio'] = API.audio_streams(obj['Audio'] or [])
|
||||
obj['Streams'] = API.media_streams(obj['Video'], obj['Audio'], obj['Subtitles'])
|
||||
obj['Premiere'] = Local(obj['Premiere']).split('.')[0].replace('T', " ") or obj['Year']
|
||||
if obj['Premiere'] is not None:
|
||||
obj['Premiere'] = obj['Premiere'].split('T')[0]
|
||||
|
||||
self.get_path_filename(obj)
|
||||
self.trailer(obj)
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"UniqueId": "ProviderIds/Imdb",
|
||||
"Rating": "CommunityRating",
|
||||
"Year": "ProductionYear",
|
||||
"Premiere": "PremiereDate",
|
||||
"Premiere": "PremiereDate,ProductionYear",
|
||||
"Votes": "VoteCount",
|
||||
"Plot": "Overview",
|
||||
"ShortPlot": "ShortOverview",
|
||||
|
|
Loading…
Reference in a new issue