From 61e851dd8eb906d235eedf4614c00d92d0147355 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 19 Apr 2018 00:32:20 +0200 Subject: [PATCH] Fixes --- platypush/plugins/media/ctrl.py | 9 --------- platypush/plugins/video/omxplayer.py | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/platypush/plugins/media/ctrl.py b/platypush/plugins/media/ctrl.py index fbf8350f3..c14cfab51 100644 --- a/platypush/plugins/media/ctrl.py +++ b/platypush/plugins/media/ctrl.py @@ -23,7 +23,6 @@ class MediaCtrlPlugin(Plugin): self.torrentcast_port = torrentcast_port self.url = None self.plugin = None - self.videos_queue = [] @classmethod def _get_type_and_resource_by_url(cls, url): @@ -101,14 +100,6 @@ class MediaCtrlPlugin(Plugin): def previous(self): if self.plugin: return self.plugin.previous() - if self.plugin: - self.plugin.stop() - - if self.videos_queue: - return self.play(self.videos_queue.pop(0)) - - return Response(output={'status': 'no media'}, errors = []) - # vim:sw=4:ts=4:et: diff --git a/platypush/plugins/video/omxplayer.py b/platypush/plugins/video/omxplayer.py index f9b77bf5b..f1cd48ca4 100644 --- a/platypush/plugins/video/omxplayer.py +++ b/platypush/plugins/video/omxplayer.py @@ -18,6 +18,7 @@ class VideoOmxplayerPlugin(Plugin): def __init__(self, args=[], *argv, **kwargs): self.args = args self.player = None + self.videos_queue = [] def play(self, resource): if resource.startswith('youtube:') \