From 7068530eb094bdcd87ec20569f233c54d803141a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 2 Feb 2019 15:58:18 +0100 Subject: [PATCH] Strip the file:// part out of the resource name --- platypush/plugins/media/mplayer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/plugins/media/mplayer.py b/platypush/plugins/media/mplayer.py index ce2faae4..e2fe58d4 100644 --- a/platypush/plugins/media/mplayer.py +++ b/platypush/plugins/media/mplayer.py @@ -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