mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Fix subs when local path is provided
This commit is contained in:
parent
59696da287
commit
6736223a86
1 changed files with 4 additions and 2 deletions
|
@ -325,9 +325,11 @@ class PlayUtils():
|
|||
if stream['Type'] == "Subtitle" and stream['IsExternal'] and stream['IsTextSubtitleStream']:
|
||||
index = stream['Index']
|
||||
|
||||
url = self.server + stream['DeliveryUrl']
|
||||
url = self.server + stream['DeliveryUrl'] if 'DeliveryUrl' in stream else stream.get('Path')
|
||||
if url is None:
|
||||
continue
|
||||
|
||||
if 'Language' in stream:
|
||||
if 'Language' in stream and 'DeliveryUrl' in stream:
|
||||
filename = "Stream.%s.%s" % (stream['Language'].encode('utf-8'), stream['Codec'])
|
||||
try:
|
||||
subs.append(self._download_external_subs(url, temp, filename))
|
||||
|
|
Loading…
Reference in a new issue