From a9f7112dec88b4136ad5ef7c6876e5c9ef14745c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 6 Mar 2024 18:36:17 +0300 Subject: [PATCH] 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. --- get_url.py | 23 ----------------------- 1 file changed, 23 deletions(-) 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) -- 2.39.2