[wikimedia] update
- add entry to docs/gallery-dl.conf - extend test results - reword argument name
This commit is contained in:
@@ -1118,6 +1118,7 @@
|
||||
"wikimedia":
|
||||
{
|
||||
"sleep-request": "1.0-2.0",
|
||||
"image-revisions": 1,
|
||||
"limit": 50,
|
||||
"subcategories": true
|
||||
},
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -51,6 +51,10 @@ __tests__ = (
|
||||
"#class" : wikimedia.WikimediaArticleExtractor,
|
||||
"#options" : {"image-revisions": 5},
|
||||
"#count" : "> 8",
|
||||
|
||||
"page" : "Title",
|
||||
"count": {2, 5},
|
||||
"num" : range(1, 5),
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user