mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-01-31 11:41:35 +01:00
[issuu] fix extraction
This commit is contained in:
parent
9ca6117c67
commit
9599151118
@ -29,8 +29,9 @@ class IssuuPublicationExtractor(IssuuBase, GalleryExtractor):
|
||||
example = "https://issuu.com/issuu/docs/TITLE/"
|
||||
|
||||
def metadata(self, page):
|
||||
pos = page.rindex('id="initial-data"')
|
||||
data = util.json_loads(text.rextract(
|
||||
page, '<script data-json="', '"')[0].replace(""", '"'))
|
||||
page, '<script data-json="', '"', pos)[0].replace(""", '"'))
|
||||
|
||||
doc = data["initialDocumentData"]["document"]
|
||||
doc["date"] = text.parse_datetime(
|
||||
|
Loading…
x
Reference in New Issue
Block a user