Fix VLC error when HTTPS URL contains square brackets (#187)

This commit is contained in:
Etoh 2018-06-09 15:29:19 +01:00 committed by Alberto Sottile
parent ff3df0ae05
commit 4bf7db5a5d

View File

@ -145,7 +145,7 @@ class VlcPlayer(BasePlayer):
def getMRL(self, fileURL):
if utils.isURL(fileURL):
fileURL = fileURL.encode('utf8')
fileURL = urllib.quote(fileURL, safe="%/:=&?~#+!$,;'@()*[]")
fileURL = urllib.quote(fileURL, safe="%/:=&?~#+!$,;'@()*")
return fileURL
fileURL = fileURL.replace(u'\\', u'/')