Regex fix

This commit is contained in:
Fabio Manganiello 2018-04-20 09:52:55 +02:00
parent 2459506964
commit 8e5a27d74c

View file

@ -136,7 +136,7 @@ class VideoOmxplayerPlugin(Plugin):
results = [] results = []
for vid in soup.findAll(attrs={'class':'yt-uix-tile-link'}): 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: if m:
results.append('https://www.youtube.com' + m.group(1)) results.append('https://www.youtube.com' + m.group(1))