[wikimedia] update

- add entry to docs/gallery-dl.conf
- extend test results
- reword argument name
This commit is contained in:
Mike Fährmann
2025-10-03 10:08:51 +02:00
parent a81cd7884b
commit a005dbbac0
3 changed files with 6 additions and 1 deletions

View File

@@ -1118,6 +1118,7 @@
"wikimedia":
{
"sleep-request": "1.0-2.0",
"image-revisions": 1,
"limit": 50,
"subcategories": true
},

View File

@@ -62,7 +62,7 @@ class WikimediaExtractor(BaseExtractor):
return url
raise exception.AbortExtraction("Unable to find API endpoint")
def prepare_info(self, page):
def prepare_info(self, info):
"""Adjust the content of an image info object"""
def prepare_image(self, image):

View File

@@ -51,6 +51,10 @@ __tests__ = (
"#class" : wikimedia.WikimediaArticleExtractor,
"#options" : {"image-revisions": 5},
"#count" : "> 8",
"page" : "Title",
"count": {2, 5},
"num" : range(1, 5),
},
{