Fix syncing when obj['Premiere'] is an int

This commit is contained in:
Ben Turley 2022-11-19 22:12:15 -07:00 committed by GitHub
parent 309b205646
commit bc256401e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ class Movies(KodiDb):
obj['Audio'] = API.audio_streams(obj['Audio'] or []) obj['Audio'] = API.audio_streams(obj['Audio'] or [])
obj['Streams'] = API.media_streams(obj['Video'], obj['Audio'], obj['Subtitles']) obj['Streams'] = API.media_streams(obj['Video'], obj['Audio'], obj['Subtitles'])
if obj['Premiere'] is not None: if obj['Premiere'] is not None:
obj['Premiere'] = obj['Premiere'].split('T')[0] obj['Premiere'] = str(obj['Premiere']).split('T')[0]
self.get_path_filename(obj) self.get_path_filename(obj)
self.trailer(obj) self.trailer(obj)