diff --git a/gallery_dl/extractor/ao3.py b/gallery_dl/extractor/ao3.py index fae382c0a9..cb5820236b 100644 --- a/gallery_dl/extractor/ao3.py +++ b/gallery_dl/extractor/ao3.py @@ -70,6 +70,7 @@ def items(self): extr = text.extract_from(self.request(url).text) fmts = {} + path = "" download = extr(' class="download"', "") for dl in text.extract_iter(download, ' href="', "') @@ -95,6 +96,10 @@ def items(self): "series" : extr('
', "
"), "date" : text.parse_datetime( extr('
', "<"), "%Y-%m-%d"), + "date_completed": text.parse_datetime( + extr('>Completed:
', "<"), "%Y-%m-%d"), + "date_updated" : text.parse_timestamp( + path.rpartition("updated_at=")[2]), "words" : text.parse_int( extr('
', "<").replace(",", "")), "chapters" : text.parse_int( diff --git a/test/results/ao3.py b/test/results/ao3.py index 9decc005eb..1fea467785 100644 --- a/test/results/ao3.py +++ b/test/results/ao3.py @@ -19,6 +19,8 @@ "chapters" : 27, "comments" : range(800, 2000), "date" : "dt:2023-06-11 00:00:00", + "date_completed": "dt:2024-05-10 00:00:00", + "date_updated" : "dt:2024-07-08 00:27:04", "extension": "pdf", "filename" : "The_Wildcard", "id" : 47802076,