mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #399 from bsdf/master
Fix extracted subtitle delivery for transcodes
This commit is contained in:
commit
3200c42432
1 changed files with 2 additions and 7 deletions
|
@ -468,13 +468,8 @@ class PlayUtils(object):
|
||||||
kodi = 0
|
kodi = 0
|
||||||
|
|
||||||
for stream in source['MediaStreams']:
|
for stream in source['MediaStreams']:
|
||||||
|
if stream['Type'] == 'Subtitle' and stream['DeliveryMethod'] == 'External':
|
||||||
if stream['Type'] == 'Subtitle' and stream['IsExternal']:
|
|
||||||
index = stream['Index']
|
index = stream['Index']
|
||||||
|
|
||||||
if 'DeliveryUrl' in stream and stream['DeliveryUrl'].lower().startswith('/videos'):
|
|
||||||
url = "%s/%s" % (self.info['ServerAddress'], stream['DeliveryUrl'])
|
|
||||||
else:
|
|
||||||
url = self.get_subtitles(source, stream, index)
|
url = self.get_subtitles(source, stream, index)
|
||||||
|
|
||||||
if url is None:
|
if url is None:
|
||||||
|
|
Loading…
Reference in a new issue