Fixes
This commit is contained in:
parent
12295f2f77
commit
61e851dd8e
2 changed files with 1 additions and 9 deletions
|
@ -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:
|
||||
|
||||
|
|
|
@ -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:') \
|
||||
|
|
Loading…
Reference in a new issue