From 23095bc18da7b8f216ed4778c0e786f645facae5 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 19 Apr 2018 00:39:59 +0200 Subject: [PATCH] Log the YT videos being played/searched --- platypush/plugins/video/omxplayer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/video/omxplayer.py b/platypush/plugins/video/omxplayer.py index f1cd48ca4..66114b51f 100644 --- a/platypush/plugins/video/omxplayer.py +++ b/platypush/plugins/video/omxplayer.py @@ -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