mirror of
https://github.com/Syncplay/syncplay
synced 2025-01-10 00:29:38 +00:00
Fixes open file from Syncplay to VLC
This commit is contained in:
parent
b827a57cab
commit
99e5e1ac0f
@ -144,7 +144,6 @@ class VlcPlayer(BasePlayer):
|
|||||||
|
|
||||||
def getMRL(self, fileURL):
|
def getMRL(self, fileURL):
|
||||||
if utils.isURL(fileURL):
|
if utils.isURL(fileURL):
|
||||||
fileURL = fileURL.encode('utf8')
|
|
||||||
fileURL = urllib.parse.quote(fileURL, safe="%/:=&?~#+!$,;'@()*[]")
|
fileURL = urllib.parse.quote(fileURL, safe="%/:=&?~#+!$,;'@()*[]")
|
||||||
return fileURL
|
return fileURL
|
||||||
|
|
||||||
@ -164,7 +163,7 @@ class VlcPlayer(BasePlayer):
|
|||||||
if os.path.isfile(normedPath):
|
if os.path.isfile(normedPath):
|
||||||
filePath = normedPath
|
filePath = normedPath
|
||||||
if utils.isASCII(filePath) and not utils.isURL(filePath):
|
if utils.isASCII(filePath) and not utils.isURL(filePath):
|
||||||
self._listener.sendLine('load-file: {}'.format(filePath.encode('ascii', 'ignore')))
|
self._listener.sendLine('load-file: {}'.format(filePath))
|
||||||
else:
|
else:
|
||||||
fileURL = self.getMRL(filePath)
|
fileURL = self.getMRL(filePath)
|
||||||
self._listener.sendLine('load-file: {}'.format(fileURL))
|
self._listener.sendLine('load-file: {}'.format(fileURL))
|
||||||
|
Loading…
Reference in New Issue
Block a user