[bellazon] improve video URL regex (#8392)
match <source> elements with attributes before 'src="..."'
This commit is contained in:
@@ -27,7 +27,7 @@ class BellazonExtractor(Extractor):
|
||||
native = (f"{self.root}/", f"{self.root[6:]}/")
|
||||
extract_urls = text.re(
|
||||
r'(?s)<('
|
||||
r'(?:video .*?<source src|a [^>]*?href)="([^"]+).*?</a>'
|
||||
r'(?:video .*?<source [^>]*?src|a [^>]*?href)="([^"]+).*?</a>'
|
||||
r'|img [^>]*?src="([^"]+)"[^>]*>'
|
||||
r')'
|
||||
).findall
|
||||
|
||||
Reference in New Issue
Block a user