mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-30 14:35:20 -04:00
show which format file was parsed as
This commit is contained in:
parent
ae0c20dc76
commit
c32a385e8f
2 changed files with 5 additions and 4 deletions
archivebox
|
@ -53,7 +53,7 @@ def parse_links(path):
|
|||
|
||||
links = []
|
||||
with open(path, 'r', encoding='utf-8') as file:
|
||||
for parser_func in get_parsers(file).values():
|
||||
for parser_name, parser_func in get_parsers(file).items():
|
||||
# otherwise try all parsers until one works
|
||||
try:
|
||||
links += list(parser_func(file))
|
||||
|
@ -63,7 +63,7 @@ def parse_links(path):
|
|||
# parser not supported on this file
|
||||
pass
|
||||
|
||||
return links
|
||||
return links, parser_name
|
||||
|
||||
|
||||
def parse_pocket_export(html_file):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue