Strip the file:// part out of the resource name

This commit is contained in:
Fabio Manganiello 2019-02-02 15:58:18 +01:00
parent 36725f7136
commit 7068530eb0
1 changed files with 2 additions and 0 deletions

View File

@ -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