[bellazon] support video embeds (#8239)

This commit is contained in:
Mike Fährmann
2025-09-20 11:06:59 +02:00
parent 0abee97543
commit dbae953c71
2 changed files with 14 additions and 1 deletions

View File

@@ -24,8 +24,10 @@ class BellazonExtractor(Extractor):
archive_fmt = "{post[id]}/{filename}"
def items(self):
extract_urls = text.re(r'<a ([^>]*?href="([^"]+)".*?)</a>').findall
native = (f"{self.root}/", f"{self.root[6:]}/")
extract_urls = text.re(
r'(?s)<((?:video .*?<source src|a [^>]*?href)="([^"]+).*?)</a>'
).findall
for post in self.posts():
urls = extract_urls(post["content"])