Fix mpv not being able to play youtube
This commit is contained in:
parent
f65346af3b
commit
2f3d873e2f
@ -202,9 +202,11 @@ class MplayerPlayer(BasePlayer):
|
|||||||
self.__playerController = playerController
|
self.__playerController = playerController
|
||||||
if(not filePath):
|
if(not filePath):
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
if not os.path.isfile(filePath) and 'PWD' in os.environ:
|
if '://' not in filePath:
|
||||||
filePath = os.environ['PWD'] + os.path.sep + filePath
|
if not os.path.isfile(filePath) and 'PWD' in os.environ:
|
||||||
filePath = os.path.realpath(filePath)
|
filePath = os.environ['PWD'] + os.path.sep + filePath
|
||||||
|
filePath = os.path.realpath(filePath)
|
||||||
|
|
||||||
call = [playerPath, filePath]
|
call = [playerPath, filePath]
|
||||||
call.extend(playerController.SLAVE_ARGS)
|
call.extend(playerController.SLAVE_ARGS)
|
||||||
if(args):
|
if(args):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user