Merge pull request #399 from bsdf/master

Fix extracted subtitle delivery for transcodes
This commit is contained in:
mcarlton00 2020-09-20 15:16:51 -04:00 committed by GitHub
commit 3200c42432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -468,13 +468,8 @@ class PlayUtils(object):
kodi = 0
for stream in source['MediaStreams']:
if stream['Type'] == 'Subtitle' and stream['IsExternal']:
if stream['Type'] == 'Subtitle' and stream['DeliveryMethod'] == 'External':
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)
if url is None: