From cc506b334055702bb430213413e7a357e6845a8a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 20 Apr 2018 10:04:29 +0200 Subject: [PATCH] Final (?) 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 512e4e3d..c0a181a3 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))