allow for GalleryExtractors to skip loading gallery_url

This commit is contained in:
Mike Fährmann
2023-05-22 22:29:30 +02:00
parent 9810ab35af
commit 856f6c10cd

View File

@@ -555,7 +555,13 @@ class GalleryExtractor(Extractor):
def items(self):
self.login()
page = self.request(self.gallery_url, notfound=self.subcategory).text
if self.gallery_url:
page = self.request(
self.gallery_url, notfound=self.subcategory).text
else:
page = None
data = self.metadata(page)
imgs = self.images(page)