]> git.phdru.name Git - bookmarks_db.git/commitdiff
Feat(check_url.py): Print "Moved", "Size", "Md5"
authorOleg Broytman <phd@phdru.name>
Mon, 20 Nov 2023 00:00:06 +0000 (03:00 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 20 Nov 2023 00:41:17 +0000 (03:41 +0300)
check_url.py

index 1c51481a17254b92757ba1e59ab498079218d883..15a6d33c2279bc53b49a1685570f67325207d964 100755 (executable)
@@ -54,16 +54,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()