mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
fix timestamp parsing edgecase
This commit is contained in:
parent
c90f4bfd5b
commit
e74227569e
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ def parse_json_export(json_file):
|
||||||
'url': erg['href'],
|
'url': erg['href'],
|
||||||
'domain': domain(erg['href']),
|
'domain': domain(erg['href']),
|
||||||
'base_url': base_url(erg['href']),
|
'base_url': base_url(erg['href']),
|
||||||
'timestamp': erg.get('timestamp', str(time.timestamp())),
|
'timestamp': erg.get('timestamp') or str(time.timestamp()),
|
||||||
'tags': erg['tags'],
|
'tags': erg['tags'],
|
||||||
'title': erg['description'].replace(' — Readability', ''),
|
'title': erg['description'].replace(' — Readability', ''),
|
||||||
'sources': [json_file.name],
|
'sources': [json_file.name],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue