diff options
Diffstat (limited to 'gallery_dl/extractor/exhentai.py')
| -rw-r--r-- | gallery_dl/extractor/exhentai.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py index aabfe6b..7ffb214 100644 --- a/gallery_dl/extractor/exhentai.py +++ b/gallery_dl/extractor/exhentai.py @@ -122,7 +122,7 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor): "date": "dt:2018-03-18 20:15:00", "eh_category": "Non-H", "expunged": False, - "favorites": "18", + "favorites": "19", "filecount": "4", "filesize": 1488978, "gid": 1200119, @@ -239,7 +239,7 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor): "title_jpn" : text.unescape(extr('<h1 id="gj">', '</h1>')), "_" : extr('<div id="gdc"><div class="cs ct', '"'), "eh_category" : extr('>', '<'), - "uploader" : text.unquote(extr('/uploader/', '"')), + "uploader" : extr('<div id="gdn">', '</div>'), "date" : text.parse_datetime(extr( '>Posted:</td><td class="gdt2">', '</td>'), "%Y-%m-%d %H:%M"), "parent" : extr( @@ -255,6 +255,10 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor): "torrentcount" : extr('>Torrent Download (', ')'), } + if data["uploader"].startswith("<"): + data["uploader"] = text.unescape(text.extract( + data["uploader"], ">", "<")[0]) + f = data["favorites"][0] if f == "N": data["favorites"] = "0" |
