diff options
Diffstat (limited to 'gallery_dl/extractor/4archive.py')
| -rw-r--r-- | gallery_dl/extractor/4archive.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gallery_dl/extractor/4archive.py b/gallery_dl/extractor/4archive.py index c9be2a4..4c43464 100644 --- a/gallery_dl/extractor/4archive.py +++ b/gallery_dl/extractor/4archive.py @@ -62,7 +62,8 @@ class _4archiveThreadExtractor(Extractor): data = { "name": extr('class="name">', "</span>"), "date": text.parse_datetime( - extr('class="dateTime postNum" >', "<").strip(), + (extr('class="dateTime">', "<") or + extr('class="dateTime postNum" >', "<")).strip(), "%Y-%m-%d %H:%M:%S"), "no" : text.parse_int(extr(">Post No.", "<")), } @@ -70,8 +71,7 @@ class _4archiveThreadExtractor(Extractor): extr('class="fileText"', ">File: <a") data.update({ "url" : extr('href="', '"'), - "filename": extr( - 'rel="noreferrer noopener"', "</a>").strip()[1:], + "filename": extr('alt="Image: ', '"'), "size" : text.parse_bytes(extr(" (", ", ")[:-1]), "width" : text.parse_int(extr("", "x")), "height" : text.parse_int(extr("", "px")), |
