X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=get_url.py;fp=get_url.py;h=90e857000b13a2418f37c2d616e758c3ec91221c;hb=a9f7112dec88b4136ad5ef7c6876e5c9ef14745c;hp=d18e186fc870daabd8111256af1e1bb7ad255f5f;hpb=328cb7a380d8954486b8838fbbeb12413d386c7e;p=bookmarks_db.git 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)