diff --git a/gallery_dl/extractor/imgur.py b/gallery_dl/extractor/imgur.py index be7fce8c..13622917 100644 --- a/gallery_dl/extractor/imgur.py +++ b/gallery_dl/extractor/imgur.py @@ -89,6 +89,9 @@ class ImgurImageExtractor(ImgurExtractor): "url": "a2220eb265a55b0c95e0d3d721ec7665460e3fd7", "content": "a3c080e43f58f55243ab830569ba02309d59abfc", }), + ("https://imgur.com/HjoXJAd", { # url ends with '.jpg?1' + "url": "73f361b50753ab25da64160aa50bc5d139480d45", + }), ("https://imgur.com/zzzzzzz", { "exception": exception.NotFoundError, }), diff --git a/gallery_dl/extractor/mangastream.py b/gallery_dl/extractor/mangastream.py index b9708594..6f21dc3b 100644 --- a/gallery_dl/extractor/mangastream.py +++ b/gallery_dl/extractor/mangastream.py @@ -18,6 +18,7 @@ class MangastreamChapterExtractor(ChapterExtractor): category = "mangastream" pattern = [(r"(?:https?://)?(?:www\.)?(?:readms|mangastream)\.(?:com|net)/" r"r(?:ead)?/([^/]*/([^/]+)/(\d+))")] + test = [("https://readms.net/r/onepunch_man/087/4874/1", None)] base_url = "https://readms.net/r/" def __init__(self, match): diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index 89a7e834..ce175d1f 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -75,6 +75,10 @@ class RedditSubredditExtractor(RedditExtractor): pattern = [r"(?:https?://)?(?:m\.|www\.)?reddit\.com/r/([^/?&#]+)" r"(/[a-z]+)?/?" r"(?:\?.*?(?:\bt=([a-z]+))?)?$"] + test = [ + ("https://www.reddit.com/r/lavaporn/", None), + ("https://www.reddit.com/r/lavaporn/top/?sort=top&t=month", None), + ] def __init__(self, match): RedditExtractor.__init__(self) @@ -93,6 +97,14 @@ class RedditSubmissionExtractor(RedditExtractor): r"(?:m\.|www\.)?reddit\.com/r/[^/]+/comments|" r"redd\.it" r")/([a-z0-9]+)")] + test = [ + ("https://www.reddit.com/r/lavaporn/comments/2a00np/", { + "pattern": r"https?://i\.imgur\.com/AaAUCgy\.jpg", + "count": 1, + }), + ("https://m.reddit.com/r/lavaporn/comments/2a00np/", None), + ("https://redd.it/2a00np/", None), + ] def __init__(self, match): RedditExtractor.__init__(self)