aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/bellazon.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-10-14 00:23:17 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-10-14 00:23:17 -0400
commit926a7a86168620337d6912790e2695a4247af20b (patch)
tree3e54d31b36ca9d1f50fc5519cdeee12e3387785d /gallery_dl/extractor/bellazon.py
parent6492496877fdfb186df50e3e30c66a0e18c395b6 (diff)
parent33f8a8a37a9cba738ef25fb99955f0730da9eb48 (diff)
Update upstream source from tag 'upstream/1.30.10'
Update to upstream version '1.30.10' with Debian dir e2322700edd83cfacc538c82b4928de8a169ad1a
Diffstat (limited to 'gallery_dl/extractor/bellazon.py')
-rw-r--r--gallery_dl/extractor/bellazon.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gallery_dl/extractor/bellazon.py b/gallery_dl/extractor/bellazon.py
index 5dcb6a5..ce50a91 100644
--- a/gallery_dl/extractor/bellazon.py
+++ b/gallery_dl/extractor/bellazon.py
@@ -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
@@ -52,7 +52,11 @@ class BellazonExtractor(Extractor):
url = text.unescape(url or url_img)
if url.startswith(native):
- if "/uploads/emoticons/" in url or "/profile/" in url:
+ if (
+ "/uploads/emoticons/" in url or
+ "/profile/" in url or
+ "/topic/" in url
+ ):
continue
data["num"] += 1
if not (alt := text.extr(info, ' alt="', '"')) or (