[wikimedia] handle 'File:' paths
This commit is contained in:
@@ -34,7 +34,8 @@ class WikimediaExtractor(BaseExtractor):
|
||||
prefix = pre.lower() if sep else None
|
||||
|
||||
self.title = path = text.unquote(path)
|
||||
self.subcategory = prefix
|
||||
if prefix:
|
||||
self.subcategory = prefix
|
||||
|
||||
if prefix == "category":
|
||||
self.params = {
|
||||
@@ -42,6 +43,10 @@ class WikimediaExtractor(BaseExtractor):
|
||||
"gcmtitle" : path,
|
||||
"gcmtype" : "file",
|
||||
}
|
||||
elif prefix == "file":
|
||||
self.params = {
|
||||
"titles" : path,
|
||||
}
|
||||
else:
|
||||
self.params = {
|
||||
"generator": "images",
|
||||
|
||||
Reference in New Issue
Block a user