diff options
| author | 2021-02-16 21:35:52 -0500 | |
|---|---|---|
| committer | 2021-02-16 21:35:52 -0500 | |
| commit | fc83315c164afd74734adf27e0f7fec2011904aa (patch) | |
| tree | d5976be93924dc4cd76c41e5e3f13bb44b6516b3 /gallery_dl/extractor/paheal.py | |
| parent | 2e29d2158d56879e5578dfabf9e8c0fa2e855ccf (diff) | |
New upstream version 1.16.5.upstream/1.16.5
Diffstat (limited to 'gallery_dl/extractor/paheal.py')
| -rw-r--r-- | gallery_dl/extractor/paheal.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gallery_dl/extractor/paheal.py b/gallery_dl/extractor/paheal.py index abcc33d..05cbcdf 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("'\""), },) |
