mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Prep for audiobook transcode
Still need to implement universal for audio transcode
This commit is contained in:
parent
69395b0e80
commit
d893996cf4
1 changed files with 14 additions and 11 deletions
|
@ -229,6 +229,8 @@ class PlayUtils(object):
|
||||||
raise Exception("use get_sources to get transcoding url")
|
raise Exception("use get_sources to get transcoding url")
|
||||||
|
|
||||||
self.info['Method'] = "Transcode"
|
self.info['Method'] = "Transcode"
|
||||||
|
|
||||||
|
if self.item['MediaType'] == 'Video':
|
||||||
base, params = source['TranscodingUrl'].split('?')
|
base, params = source['TranscodingUrl'].split('?')
|
||||||
|
|
||||||
if settings('skipDialogTranscode') != "3" and source.get('MediaStreams'):
|
if settings('skipDialogTranscode') != "3" and source.get('MediaStreams'):
|
||||||
|
@ -243,6 +245,8 @@ class PlayUtils(object):
|
||||||
video_type = 'live' if source.get('LiveStreamId') else 'master'
|
video_type = 'live' if source.get('LiveStreamId') else 'master'
|
||||||
self.info['Path'] = "%s/emby%s?%s" % (self.info['ServerAddress'], base.replace('stream', video_type), params)
|
self.info['Path'] = "%s/emby%s?%s" % (self.info['ServerAddress'], base.replace('stream', video_type), params)
|
||||||
self.info['Path'] += "&maxWidth=%s&maxHeight=%s" % (self.get_resolution())
|
self.info['Path'] += "&maxWidth=%s&maxHeight=%s" % (self.get_resolution())
|
||||||
|
else:
|
||||||
|
self.info['Path'] = "%s/emby%s" % (self.info['ServerAddress'], source['TranscodingUrl'])
|
||||||
|
|
||||||
return self.info['Path']
|
return self.info['Path']
|
||||||
|
|
||||||
|
@ -430,7 +434,6 @@ class PlayUtils(object):
|
||||||
"BreakOnNonKeyFrames": True
|
"BreakOnNonKeyFrames": True
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
return profile
|
return profile
|
||||||
|
|
||||||
def set_external_subs(self, source, listitem):
|
def set_external_subs(self, source, listitem):
|
||||||
|
|
Loading…
Reference in a new issue