mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-01-31 19:51:34 +01:00
[wikifeet] fix 'tag' extraction
This commit is contained in:
parent
c2ac665ff7
commit
a2111dd025
@ -32,7 +32,7 @@ class WikifeetGalleryExtractor(GalleryExtractor):
|
|||||||
"pid" : int,
|
"pid" : int,
|
||||||
"width" : int,
|
"width" : int,
|
||||||
"height" : int,
|
"height" : int,
|
||||||
"shoesize" : "7.5 US",
|
"shoesize" : "9 US",
|
||||||
"type" : "women",
|
"type" : "women",
|
||||||
"tags" : list,
|
"tags" : list,
|
||||||
},
|
},
|
||||||
@ -50,7 +50,7 @@ class WikifeetGalleryExtractor(GalleryExtractor):
|
|||||||
"pid" : int,
|
"pid" : int,
|
||||||
"width" : int,
|
"width" : int,
|
||||||
"height" : int,
|
"height" : int,
|
||||||
"shoesize" : "[NOT SET]",
|
"shoesize" : "4 US",
|
||||||
"type" : "women",
|
"type" : "women",
|
||||||
"tags" : list,
|
"tags" : list,
|
||||||
},
|
},
|
||||||
@ -111,7 +111,10 @@ class WikifeetGalleryExtractor(GalleryExtractor):
|
|||||||
"pid" : data["pid"],
|
"pid" : data["pid"],
|
||||||
"width" : data["pw"],
|
"width" : data["pw"],
|
||||||
"height": data["ph"],
|
"height": data["ph"],
|
||||||
"tags" : [tagmap[tag] for tag in data["tags"]],
|
"tags" : [
|
||||||
|
tagmap[tag]
|
||||||
|
for tag in data["tags"] if tag in tagmap
|
||||||
|
],
|
||||||
})
|
})
|
||||||
for data in util.json_loads(text.extr(page, "['gdata'] = ", ";"))
|
for data in util.json_loads(text.extr(page, "['gdata'] = ", ";"))
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user