[wikifeet] fix 'bdate' parsing

and update 'shoesize' test results
This commit is contained in:
Mike Fährmann
2025-04-21 17:32:54 +02:00
parent 0579726d80
commit b71b5af38a
3 changed files with 9 additions and 9 deletions

View File

@@ -34,11 +34,11 @@ class WikifeetGalleryExtractor(GalleryExtractor):
"celeb" : self.celeb,
"type" : self.type,
"birthplace": text.unescape(extr('"bplace":"', '"')),
"birthday": text.parse_datetime(text.unescape(
extr('"bdate":"', '"'))),
"shoesize": text.unescape(extr('"ssize":', ',')),
"rating": text.parse_float(extr('"score":', ',')),
"celebrity": text.unescape(extr('"cname":"', '"')),
"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):