mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-29 09:10:13 +02:00
fix: if cmd
in Link parsing is found to be a string, put it inside a list
This commit is contained in:
@@ -87,6 +87,8 @@ class ArchiveResult:
|
|||||||
info['start_ts'] = parse_date(info['start_ts'])
|
info['start_ts'] = parse_date(info['start_ts'])
|
||||||
info['end_ts'] = parse_date(info['end_ts'])
|
info['end_ts'] = parse_date(info['end_ts'])
|
||||||
info['cmd_version'] = info.get('cmd_version')
|
info['cmd_version'] = info.get('cmd_version')
|
||||||
|
if type(info["cmd"]) is str:
|
||||||
|
info["cmd"] = [info["cmd"]]
|
||||||
return cls(**info)
|
return cls(**info)
|
||||||
|
|
||||||
def to_dict(self, *keys) -> dict:
|
def to_dict(self, *keys) -> dict:
|
||||||
|
Reference in New Issue
Block a user