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

This commit is contained in:
Etoh 2018-06-09 15:29:19 +01:00
parent 9349b887bd
commit 3b6996f7ab

View File

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