From 913460240dd061a8e66022b463e0957d6e72936c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 24 Sep 2019 23:01:12 +0200 Subject: [PATCH] [reddit] fix 'extractor.blacklist()' arguments The second argument must support 'append()'. --- gallery_dl/extractor/hypnohub.py | 2 +- gallery_dl/extractor/imgur.py | 4 ++-- gallery_dl/extractor/reddit.py | 2 +- test/test_results.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gallery_dl/extractor/hypnohub.py b/gallery_dl/extractor/hypnohub.py index bf2db969..860cebd5 100644 --- a/gallery_dl/extractor/hypnohub.py +++ b/gallery_dl/extractor/hypnohub.py @@ -23,7 +23,7 @@ class HypnohubTagExtractor(booru.TagMixin, HypnohubExtractor): pattern = (r"(?:https?://)?(?:www\.)?hypnohub\.net" r"/post\?(?:[^&#]*&)*tags=(?P[^&#]+)") test = ("https://hypnohub.net/post?tags=gonoike_biwa", { - "url": "6bebc4318489ee37e0c3b814352acd6783ba95d6", + "url": "0deaf1a2f832cfc4354c531259b949e850da1e7e", }) diff --git a/gallery_dl/extractor/imgur.py b/gallery_dl/extractor/imgur.py index 2c68dee2..cb36c300 100644 --- a/gallery_dl/extractor/imgur.py +++ b/gallery_dl/extractor/imgur.py @@ -244,7 +244,7 @@ class ImgurUserExtractor(ImgurExtractor): ("https://imgur.com/user/Miguenzo", { "range": "1-100", "count": 100, - "pattern": r"https?://(i.imgur.com|imgur.com/a)/[\w.]+" + "pattern": r"https?://(i.imgur.com|imgur.com/a)/[\w.]+", }), ("https://imgur.com/user/Miguenzo/posts"), ("https://imgur.com/user/Miguenzo/submitted"), @@ -263,7 +263,7 @@ class ImgurFavoriteExtractor(ImgurExtractor): test = ("https://imgur.com/user/Miguenzo/favorites", { "range": "1-100", "count": 100, - "pattern": r"https?://(i.imgur.com|imgur.com/a)/[\w.]+" + "pattern": r"https?://(i.imgur.com|imgur.com/a)/[\w.]+", }) def items(self): diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index ba8e8278..0584342b 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -32,7 +32,7 @@ class RedditExtractor(Extractor): yield Message.Version, 1 with extractor.blacklist( util.SPECIAL_EXTRACTORS, - (RedditSubredditExtractor, RedditUserExtractor)): + [RedditSubredditExtractor, RedditUserExtractor]): while True: extra = [] for url, data in self._urls(submissions): diff --git a/test/test_results.py b/test/test_results.py index fb29a874..6e7c6816 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -27,8 +27,8 @@ TRAVIS_SKIP = { # temporary issues, etc. BROKEN = { "8chan", - "imgth", "mangapark", + "nsfwalbum", }