diff options
Diffstat (limited to 'gallery_dl/extractor/bellazon.py')
| -rw-r--r-- | gallery_dl/extractor/bellazon.py | 8 |
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 ( |
