From 2459506964bb1218febb4fff143b0835f479f395 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 20 Apr 2018 09:41:52 +0200 Subject: [PATCH] Regex typo --- 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 037c8fa45..f9bbff3d4 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))