Remove extra slash from URLs in get_subtitles

This commit is contained in:
mcarlton00 2020-12-26 13:17:11 -05:00
parent 1982d32ab3
commit 38ea9ba77c

View file

@ -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'],