From 4b1cda4cf7e63392a2b16d2ee6a5859c4682ca28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 14 Feb 2021 15:40:37 +0100 Subject: [PATCH] [paheal] fix metadata extraction --- gallery_dl/extractor/paheal.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/paheal.py b/gallery_dl/extractor/paheal.py index abcc33d0..05cbcdfe 100644 --- a/gallery_dl/extractor/paheal.py +++ b/gallery_dl/extractor/paheal.py @@ -115,10 +115,12 @@ class PahealPostExtractor(PahealExtractor): tags , pos = text.extract(page, ": ", "<") md5 , pos = text.extract(page, "/_thumbs/", "/", pos) url , pos = text.extract(page, "id='main_image' src='", "'", pos) - width , pos = text.extract(page, "data-width='", "'", pos) - height, pos = text.extract(page, "data-height='", "'", pos) + width , pos = text.extract(page, "data-width=", " ", pos) + height, pos = text.extract(page, "data-height=", " ", pos) return ({ "id": self.post_id, "md5": md5, "tags": tags, "file_url": url, - "width": width, "height": height, "size": 0, + "size" : 0, + "width" : width.strip("'\""), + "height": height.strip("'\""), },)