Regex fix
This commit is contained in:
parent
2459506964
commit
8e5a27d74c
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue