diff options
Diffstat (limited to 'gallery_dl/extractor/urlgalleries.py')
| -rw-r--r-- | gallery_dl/extractor/urlgalleries.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gallery_dl/extractor/urlgalleries.py b/gallery_dl/extractor/urlgalleries.py index ebfeb9d..4369ac6 100644 --- a/gallery_dl/extractor/urlgalleries.py +++ b/gallery_dl/extractor/urlgalleries.py @@ -23,8 +23,7 @@ class UrlgalleriesGalleryExtractor(GalleryExtractor): _, blog_alt, blog, self.gallery_id = self.groups if not blog: blog = blog_alt - url = "https://urlgalleries.net/b/{}/porn-gallery-{}/?a=10000".format( - blog, self.gallery_id) + url = f"{self.root}/b/{blog}/porn-gallery-{self.gallery_id}/?a=10000" with self.request(url, allow_redirects=False, fatal=...) as response: if 300 <= response.status_code < 500: @@ -38,7 +37,7 @@ class UrlgalleriesGalleryExtractor(GalleryExtractor): data = self.metadata(page) data["count"] = len(imgs) - root = "https://urlgalleries.net/b/" + blog + root = self.root yield Message.Directory, data for data["num"], img in enumerate(imgs, 1): page = self.request(root + img).text @@ -54,7 +53,7 @@ class UrlgalleriesGalleryExtractor(GalleryExtractor): "_rprt": extr(' title="', '"'), # report button "title": text.unescape(extr(' title="', '"').strip()), "date" : text.parse_datetime( - extr(" images in gallery | ", "<"), "%B %d, %Y %H:%M"), + extr(" images in gallery | ", "<"), "%B %d, %Y"), } def images(self, page): |
