From: Oleg Broytman Date: Mon, 20 Nov 2023 00:00:06 +0000 (+0300) Subject: Feat(check_url.py): Print "Moved", "Size", "Md5" X-Git-Tag: 5.0.0~16 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=9c8f44f4ac88ba266ee73c13e5f0effdce599dd1;p=bookmarks_db.git Feat(check_url.py): Print "Moved", "Size", "Md5" --- diff --git a/check_url.py b/check_url.py index 1c51481..15a6d33 100755 --- a/check_url.py +++ b/check_url.py @@ -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()