From 8e5a27d74c47989e5fca6bcb6fc528156bc8f8e0 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 20 Apr 2018 09:52:55 +0200 Subject: [PATCH] Regex fix --- platypush/plugins/video/omxplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/video/omxplayer.py b/platypush/plugins/video/omxplayer.py index f9bbff3d..95de09e5 100644 --- a/platypush/plugins/video/omxplayer.py +++ b/platypush/plugins/video/omxplayer.py @@ -136,7 +136,7 @@ class VideoOmxplayerPlugin(Plugin): results = [] for vid in soup.findAll(attrs={'class':'yt-uix-tile-link'}): - m = re.match('(/watch\?v=.+?)(&.*)', vid['href']) + m = re.match('(/watch\?v=.+?)&?', vid['href']) if m: results.append('https://www.youtube.com' + m.group(1))