Log the YT videos being played/searched

This commit is contained in:
Fabio Manganiello 2018-04-19 00:39:59 +02:00
parent 61e851dd8e
commit 23095bc18d

View file

@ -69,7 +69,9 @@ class VideoOmxplayerPlugin(Plugin):
self.player.stop()
if self.videos_queue:
return self.play(self.videos_queue.pop(0))
video = self.videos_queue.pop(0)
logging.info('Playing {}'.format(video))
return self.play(video)
return Response(output={'status': 'no media'}, errors = [])
@ -100,6 +102,7 @@ class VideoOmxplayerPlugin(Plugin):
self.videos_queue.append('https://www.youtube.com' + vid['href'])
url = self.videos_queue.pop(0)
logging.info('Playing {}'.format(url))
return self.play(url)
@classmethod