]> git.phdru.name Git - bookmarks_db.git/blobdiff - check_url.py
Version 5.2.3
[bookmarks_db.git] / check_url.py
index 1c51481a17254b92757ba1e59ab498079218d883..a43d00765372b5e13f6e220546d91f55a0f2e4df 100755 (executable)
@@ -38,6 +38,7 @@ def run():
     from m_lib.flog import makelog
     log = makelog("check.log")
     log.outfile.reconfigure(encoding='utf-8')
+    sys.stdout.reconfigure(encoding='utf-8')
 
     from robots import robot
     robot = robot(log)
@@ -54,16 +55,26 @@ def run():
 
         else:
             print("""\
-  URL: %s
   Title: %s
+  URL: %s
   LastModified: %s
+  Moved: %s
+  Size: %s
+  Md5: %s
   IconURI: %s
   Icon: %s
   Charset: %s
   """ % (
-              bookmark.href, getattr(bookmark, 'real_title', ''),
-              strftime(bookmark.last_modified), bookmark.icon_href,
-              bookmark.icon, bookmark.charset))
+              getattr(bookmark, 'real_title', None)
+              or getattr(bookmark, 'title', None),
+              bookmark.href,
+              strftime(bookmark.last_modified),
+              getattr(bookmark, 'moved', None),
+              getattr(bookmark, 'size', None),
+              getattr(bookmark, 'md5', None),
+              bookmark.icon_href, bookmark.icon, bookmark.charset,
+              )
+            )
 
     robot.stop()
     log.close()