Fix audiobook playback

This commit is contained in:
angelblue05 2018-09-07 17:52:25 -05:00
parent 57758f3f99
commit f469885d8b

View file

@ -247,7 +247,7 @@ class Actions(object):
''' Set listitem for video content. That also include streams. ''' Set listitem for video content. That also include streams.
''' '''
API = api.API(item, self.server) API = api.API(item, self.server)
is_video = obj['MediaType'] == 'Video' is_video = obj['MediaType'] in ('Video', 'Audio') # audiobook
obj['Genres'] = " / ".join(obj['Genres'] or []) obj['Genres'] = " / ".join(obj['Genres'] or [])
obj['Studios'] = [API.validate_studio(studio) for studio in (obj['Studios'] or [])] obj['Studios'] = [API.validate_studio(studio) for studio in (obj['Studios'] or [])]