1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 02:12:16 +08:00

[buzzfeed] improve regex

This commit is contained in:
Tithen-Firion 2017-04-27 17:46:19 +02:00
parent 93cf8bde94
commit 10bf7493c8

View File

@ -80,7 +80,7 @@ class BuzzFeedIE(InfoExtractor):
self.url_result(match[2]) self.url_result(match[2])
for match in re.findall( for match in re.findall(
r'''(?s)<a\s+class\s*=\s*(?P<q>["'])js-placeholder-link''' r'''(?s)<a\s+class\s*=\s*(?P<q>["'])js-placeholder-link'''
r'''(?P=q)\s+href\s*=\s*(?P<r>["'])(.*?)(?P=r)''', webpage) r'''(?P=q)\s+href\s*=\s*(?P<r>["'])(.+?)(?P=r)''', webpage)
] ]
all_buckets = re.findall( all_buckets = re.findall(