aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/wikifeet.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-04-27 20:34:15 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-04-27 20:34:15 -0400
commit3a12d48ab86c807fc29282e2bffea8a04bbb383b (patch)
tree12829c0d6af8ce582f51f9b9dacc901bb60dff16 /gallery_dl/extractor/wikifeet.py
parent791ab4bb3cdc72367f676a128b4c6ecd16470b4b (diff)
parent4a18b5837c1dd82f5964afcfc3fecc53cd97e79c (diff)
Update upstream source from tag 'upstream/1.29.5'
Update to upstream version '1.29.5' with Debian dir c46551cee05d39267f14cbe436ddc25833683f54
Diffstat (limited to 'gallery_dl/extractor/wikifeet.py')
-rw-r--r--gallery_dl/extractor/wikifeet.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/gallery_dl/extractor/wikifeet.py b/gallery_dl/extractor/wikifeet.py
index d3586c0..f7bfeb2 100644
--- a/gallery_dl/extractor/wikifeet.py
+++ b/gallery_dl/extractor/wikifeet.py
@@ -33,12 +33,12 @@ class WikifeetGalleryExtractor(GalleryExtractor):
return {
"celeb" : self.celeb,
"type" : self.type,
- "rating" : text.parse_float(extr('"ratingValue": "', '"')),
- "celebrity" : text.unescape(extr("times'>", "</h1>")),
- "shoesize" : text.remove_html(extr("Shoe Size:", "edit")),
- "birthplace": text.remove_html(extr("Birthplace:", "edit")),
- "birthday" : text.parse_datetime(text.remove_html(
- extr("Birth Date:", "edit")), "%Y-%m-%d"),
+ "birthplace": text.unescape(extr('"bplace":"', '"')),
+ "birthday" : text.parse_datetime(text.unescape(
+ extr('"bdate":"', '"'))[:10], "%Y-%m-%d"),
+ "shoesize" : text.unescape(extr('"ssize":', ',')),
+ "rating" : text.parse_float(extr('"score":', ',')),
+ "celebrity" : text.unescape(extr('"cname":"', '"')),
}
def images(self, page):
@@ -61,5 +61,6 @@ class WikifeetGalleryExtractor(GalleryExtractor):
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, '"gallery":[', '],') + "]")
]