diff --git a/docs/supportedsites.md b/docs/supportedsites.md index 907a44cc..79a36f4f 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -505,6 +505,12 @@ Consider all listed sites to potentially be NSFW. Albums, Favorites, Favorites Folders, Galleries, individual Images, Personal Posts, Search Results, Subreddits, Tag Searches, User Profiles + + ImgWallet.com + https://imgwallet.com/ + individual Images + + Imxto https://imx.to/ diff --git a/gallery_dl/extractor/imagehosts.py b/gallery_dl/extractor/imagehosts.py index e81c89b8..cfd2e823 100644 --- a/gallery_dl/extractor/imagehosts.py +++ b/gallery_dl/extractor/imagehosts.py @@ -428,6 +428,15 @@ class ImgtaxiImageExtractor(ImagehostImageExtractor): get_info = ImgdriveImageExtractor.get_info +class ImgwalletImageExtractor(ImagehostImageExtractor): + """Extractor for single images from imgwallet.com""" + category = "imgwallet" + pattern = r"(?:https?://)?((?:www\.)?imgwallet\.com/img-(\w+)\.html)" + example = "https://imgwallet.com/img-0123456789abc.html" + + get_info = ImgdriveImageExtractor.get_info + + class SilverpicImageExtractor(ImagehostImageExtractor): """Extractor for single images from silverpic.com""" category = "silverpic" diff --git a/scripts/supportedsites.py b/scripts/supportedsites.py index 5c2528f5..e6b30c11 100755 --- a/scripts/supportedsites.py +++ b/scripts/supportedsites.py @@ -89,6 +89,7 @@ CATEGORY_MAP = { "imgtaxi" : "ImgTaxi.com", "imgth" : "imgth", "imgur" : "imgur", + "imgwallet" : "ImgWallet.com", "imhentai" : "IMHentai", "joyreactor" : "JoyReactor", "itchio" : "itch.io", diff --git a/test/results/imgwallet.py b/test/results/imgwallet.py new file mode 100644 index 00000000..664fcaf5 --- /dev/null +++ b/test/results/imgwallet.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. + +from gallery_dl.extractor import imagehosts + + +__tests__ = ( +{ + "#url" : "https://imgwallet.com/img-62fd3045ceec6.html", + "#category": ("imagehost", "imgwallet", "image"), + "#class" : imagehosts.ImgwalletImageExtractor, + "#results" : "https://imgwallet.com/images/big/2022/08/17/62fd3045ceec5.JPG", + + "filename" : "S0ph (1)", + "extension": "jpg", + "token" : "62fd3045ceec6", +}, + +)