Merge pull request #529 from mcarlton00/baseurl-transcoding

Remove double slash when transcoding with a baseurl
This commit is contained in:
mcarlton00 2021-05-30 17:49:32 -04:00 committed by GitHub
commit 0bf51ad9ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,7 +247,7 @@ class PlayUtils(object):
video_type = 'live' if source['Protocol'] == 'LiveTV' else 'master' video_type = 'live' if source['Protocol'] == 'LiveTV' else 'master'
base = base.replace('stream' if 'stream' in base else 'master', video_type, 1) base = base.replace('stream' if 'stream' in base else 'master', video_type, 1)
self.info['Path'] = "%s/%s?%s" % (self.info['ServerAddress'], base, params) self.info['Path'] = "%s%s?%s" % (self.info['ServerAddress'], base, params)
self.info['Path'] += "&maxWidth=%s&maxHeight=%s" % (self.get_resolution()) self.info['Path'] += "&maxWidth=%s&maxHeight=%s" % (self.get_resolution())
else: else:
self.info['Path'] = "%s/%s" % (self.info['ServerAddress'], source['TranscodingUrl']) self.info['Path'] = "%s/%s" % (self.info['ServerAddress'], source['TranscodingUrl'])