[hentaifoundry] rename GalleryExtractor to PicturesExtractor
This commit is contained in:
@@ -154,7 +154,7 @@ Turboimagehost https://www.turboimagehost.com/ individual Images
|
|||||||
.. |deviantart-C| replace:: Collections, Deviations, Favorites, Folders, Galleries, Journals, Popular Images, Scraps, Sta.sh, User Profiles
|
.. |deviantart-C| replace:: Collections, Deviations, Favorites, Folders, Galleries, Journals, Popular Images, Scraps, Sta.sh, User Profiles
|
||||||
.. |flickr-C| replace:: Albums, Favorites, Galleries, Groups, individual Images, Search Results, User Profiles
|
.. |flickr-C| replace:: Albums, Favorites, Galleries, Groups, individual Images, Search Results, User Profiles
|
||||||
.. |furaffinity-C| replace:: Favorites, Galleries, Posts, Scraps, Search Results, User Profiles
|
.. |furaffinity-C| replace:: Favorites, Galleries, Posts, Scraps, Search Results, User Profiles
|
||||||
.. |hentaifoundry-C| replace:: Favorites, Galleries, individual Images, Popular Images, Recent Images, Scraps, Stories, User Profiles
|
.. |hentaifoundry-C| replace:: Favorites, individual Images, Pictures, Popular Images, Recent Images, Scraps, Stories, User Profiles
|
||||||
.. |imgur-C| replace:: Albums, Favorites, Galleries, individual Images, Search Results, Subreddits, Tag Searches, User Profiles
|
.. |imgur-C| replace:: Albums, Favorites, Galleries, individual Images, Search Results, Subreddits, Tag Searches, User Profiles
|
||||||
.. |instagram-C| replace:: Channels, individual Images, Saved Posts, Stories, Tag Searches, User Profiles
|
.. |instagram-C| replace:: Channels, individual Images, Saved Posts, Stories, Tag Searches, User Profiles
|
||||||
.. |newgrounds-C| replace:: Art, Audio, Favorites, individual Images, Media Files, Movies, User Profiles
|
.. |newgrounds-C| replace:: Art, Audio, Favorites, individual Images, Media Files, Movies, User Profiles
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ class HentaifoundryUserExtractor(HentaifoundryExtractor):
|
|||||||
def items(self):
|
def items(self):
|
||||||
user = "/user/" + self.user
|
user = "/user/" + self.user
|
||||||
return self._dispatch_extractors((
|
return self._dispatch_extractors((
|
||||||
(HentaifoundryGalleryExtractor ,
|
(HentaifoundryPicturesExtractor ,
|
||||||
self.root + "/pictures" + user),
|
self.root + "/pictures" + user),
|
||||||
(HentaifoundryScrapsExtractor,
|
(HentaifoundryScrapsExtractor,
|
||||||
self.root + "/pictures" + user + "/scraps"),
|
self.root + "/pictures" + user + "/scraps"),
|
||||||
@@ -170,11 +170,12 @@ class HentaifoundryUserExtractor(HentaifoundryExtractor):
|
|||||||
self.root + "/stories" + user),
|
self.root + "/stories" + user),
|
||||||
(HentaifoundryFavoriteExtractor,
|
(HentaifoundryFavoriteExtractor,
|
||||||
self.root + user + "/faves/pictures"),
|
self.root + user + "/faves/pictures"),
|
||||||
), ("gallery",))
|
), ("pictures",))
|
||||||
|
|
||||||
|
|
||||||
class HentaifoundryGalleryExtractor(HentaifoundryExtractor):
|
class HentaifoundryPicturesExtractor(HentaifoundryExtractor):
|
||||||
subcategory = "gallery"
|
"""Extractor for all pictures of a hentaifoundry user"""
|
||||||
|
subcategory = "pictures"
|
||||||
pattern = (r"(?:https?://)?(?:www\.)?hentai-foundry\.com"
|
pattern = (r"(?:https?://)?(?:www\.)?hentai-foundry\.com"
|
||||||
r"/pictures/user/([^/]+)(?:/page/(\d+))?/?$")
|
r"/pictures/user/([^/]+)(?:/page/(\d+))?/?$")
|
||||||
test = (
|
test = (
|
||||||
|
|||||||
Reference in New Issue
Block a user