show which format file was parsed as

This commit is contained in:
Nick Sweeting 2019-02-04 18:45:18 -08:00
parent ae0c20dc76
commit c32a385e8f
2 changed files with 5 additions and 4 deletions
archivebox

View file

@ -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):