[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":
|
"wikimedia":
|
||||||
{
|
{
|
||||||
"sleep-request": "1.0-2.0",
|
"sleep-request": "1.0-2.0",
|
||||||
|
"image-revisions": 1,
|
||||||
"limit": 50,
|
"limit": 50,
|
||||||
"subcategories": true
|
"subcategories": true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class WikimediaExtractor(BaseExtractor):
|
|||||||
return url
|
return url
|
||||||
raise exception.AbortExtraction("Unable to find API endpoint")
|
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"""
|
"""Adjust the content of an image info object"""
|
||||||
|
|
||||||
def prepare_image(self, image):
|
def prepare_image(self, image):
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ __tests__ = (
|
|||||||
"#class" : wikimedia.WikimediaArticleExtractor,
|
"#class" : wikimedia.WikimediaArticleExtractor,
|
||||||
"#options" : {"image-revisions": 5},
|
"#options" : {"image-revisions": 5},
|
||||||
"#count" : "> 8",
|
"#count" : "> 8",
|
||||||
|
|
||||||
|
"page" : "Title",
|
||||||
|
"count": {2, 5},
|
||||||
|
"num" : range(1, 5),
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user