diff options
| author | 2021-12-01 14:44:00 -0500 | |
|---|---|---|
| committer | 2021-12-01 14:44:00 -0500 | |
| commit | a5aecc343fd2886e7ae09bb3e2afeec38f175755 (patch) | |
| tree | 06a284b3d73700bd38116423e2480afa516255c2 /gallery_dl/extractor/exhentai.py | |
| parent | fc8c5e642017e2b4e5299e2093e72b316479690d (diff) | |
New upstream version 1.19.3.upstream/1.19.3
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" |
