mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Merge pull request #455 from mcarlton00/subtitles-extra-slash
Remove extra slash from subtitle URLs
This commit is contained in:
commit
d59c4fc18a
1 changed files with 1 additions and 1 deletions
|
@ -688,7 +688,7 @@ class PlayUtils(object):
|
||||||
def get_subtitles(self, source, stream, index):
|
def get_subtitles(self, source, stream, index):
|
||||||
|
|
||||||
if stream['IsTextSubtitleStream'] and 'DeliveryUrl' in stream and stream['DeliveryUrl'].lower().startswith('/videos'):
|
if stream['IsTextSubtitleStream'] and 'DeliveryUrl' in stream and stream['DeliveryUrl'].lower().startswith('/videos'):
|
||||||
url = "%s/%s" % (self.info['ServerAddress'], stream['DeliveryUrl'])
|
url = "%s%s" % (self.info['ServerAddress'], stream['DeliveryUrl'])
|
||||||
else:
|
else:
|
||||||
url = "%s/Videos/%s/%s/Subtitles/%s/Stream.%s?api_key=%s" % (
|
url = "%s/Videos/%s/%s/Subtitles/%s/Stream.%s?api_key=%s" % (
|
||||||
self.info['ServerAddress'],
|
self.info['ServerAddress'],
|
||||||
|
|
Loading…
Reference in a new issue