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

View file

@ -233,6 +233,8 @@ class MediaMplayerPlugin(MediaPlugin):
:type mplayer_args: list[str] :type mplayer_args: list[str]
""" """
resource = self._get_resource(resource) resource = self._get_resource(resource)
if resource.startswith('file://'):
resource = resource[7:]
return self._exec('loadfile', resource, mplayer_args=mplayer_args) return self._exec('loadfile', resource, mplayer_args=mplayer_args)
@action @action