]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(parse_html CLI): Report encodings and the title
authorOleg Broytman <phd@phdru.name>
Mon, 20 Nov 2023 16:21:22 +0000 (19:21 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 20 Nov 2023 16:21:22 +0000 (19:21 +0300)
parse_html/__main__.py

index 98b610437c5b346b1f78f71b8af6b9a2e50fb8d6..8e070b4154874e3afaacfb12151f01af572bda94 100644 (file)
@@ -29,8 +29,11 @@ def main():
 
     parser = parse_filename(filename, charset,
                             log=lambda s: sys.stdout.write(s + '\n'))
-    print("   refresh:", parser.refresh)
-    print("   icon   :", parser.icon)
+    print("   charset     :", parser.charset)
+    print("   meta_charset:", parser.meta_charset)
+    print("   title       :", parser.title)
+    print("   refresh     :", parser.refresh)
+    print("   icon        :", parser.icon)
 
 
 if __name__ == '__main__':