]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(get_url): Remove excessive printing
authorOleg Broytman <phd@phdru.name>
Wed, 6 Mar 2024 15:36:17 +0000 (18:36 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 6 Mar 2024 15:38:25 +0000 (18:38 +0300)
`robot.get()` doesn't really fill the bookmarks,
`robot.check_url()` does but we don't call it here.

get_url.py

index d18e186fc870daabd8111256af1e1bb7ad255f5f..90e857000b13a2418f37c2d616e758c3ec91221c 100755 (executable)
@@ -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)