Skip to content

Commit 41a0d78

Browse files
committed
[bellazon] ignore links to other threads or posts (#8392)
1 parent f89f55b commit 41a0d78

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

gallery_dl/extractor/bellazon.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ def items(self):
5252
url = text.unescape(url or url_img)
5353

5454
if url.startswith(native):
55-
if "/uploads/emoticons/" in url or "/profile/" in url:
55+
if (
56+
"/uploads/emoticons/" in url or
57+
"/profile/" in url or
58+
"/topic/" in url
59+
):
5660
continue
5761
data["num"] += 1
5862
if not (alt := text.extr(info, ' alt="', '"')) or (

test/results/bellazon.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,13 @@
214214
),
215215
},
216216

217+
{
218+
"#url" : "https://www.bellazon.com/main/topic/70367-elyzaveta-kovalenko/page/7/#comment-5506079",
219+
"#comment" : "links to other threads (#8392)",
220+
"#class" : bellazon.BellazonPostExtractor,
221+
"#count" : 0,
222+
},
223+
217224
{
218225
"#url" : "https://www.bellazon.com/main/topic/57872-millie-brady/",
219226
"#class" : bellazon.BellazonThreadExtractor,

0 commit comments

Comments
 (0)