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

This commit is contained in:
Alberto Sottile 2018-06-09 17:08:11 +02:00
parent d2e965fe54
commit 5cb490f089

View File

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