From: Oleg Broytman Date: Wed, 6 Mar 2024 15:36:17 +0000 (+0300) Subject: Fix(get_url): Remove excessive printing X-Git-Tag: 5.3.1~1 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=a9f7112dec88b4136ad5ef7c6876e5c9ef14745c Fix(get_url): Remove excessive printing `robot.get()` doesn't really fill the bookmarks, `robot.check_url()` does but we don't call it here. --- diff --git a/get_url.py b/get_url.py index d18e186..90e8570 100755 --- a/get_url.py +++ b/get_url.py @@ -11,7 +11,6 @@ __license__ = "GNU GPL" import sys from bkmk_objects import Bookmark -from Writers.bkmk_wflad import strftime def run(): @@ -40,28 +39,6 @@ def run(): print("Moved to: %s" % redirect_to) else: - print("""\ -Title: %s -URL: %s -LastModified: %s -Moved: %s -Size: %s -Md5: %s -IconURI: %s -Icon: %s -Charset: %s -""" % ( - 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, - ) - ) - with open(output_fname, 'wb') as outfile: outfile.write(content)