Strip the file:// part out of the resource name
This commit is contained in:
parent
36725f7136
commit
7068530eb0
1 changed files with 2 additions and 0 deletions
|
@ -233,6 +233,8 @@ class MediaMplayerPlugin(MediaPlugin):
|
|||
:type mplayer_args: list[str]
|
||||
"""
|
||||
resource = self._get_resource(resource)
|
||||
if resource.startswith('file://'):
|
||||
resource = resource[7:]
|
||||
return self._exec('loadfile', resource, mplayer_args=mplayer_args)
|
||||
|
||||
@action
|
||||
|
|
Loading…
Reference in a new issue