X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=check_url.py;h=b0a6869a5e5d601b5a2f34728fde97fcff58da1b;hb=a788e94901728a5ea127b2c09e3a13ff6a5447b9;hp=18e33970850448e6c5c18dd26f334a1c09581481;hpb=36ade7b93a4a85c265f095844fb8ce5c5f6d79f3;p=bookmarks_db.git diff --git a/check_url.py b/check_url.py index 18e3397..b0a6869 100755 --- a/check_url.py +++ b/check_url.py @@ -20,7 +20,6 @@ httplib.HTTP = MyHTTP from bkmk_objects import Bookmark from Writers.bkmk_wflad import strftime -tempfname = "check_url.tmp" def run(): @@ -34,7 +33,7 @@ def run(): log = makelog("check.log") from robots import robot - robot = robot(tempfname, log) + robot = robot(log) for url in sys.argv[1:]: bookmark = Bookmark(href=url, add_date=None) @@ -51,8 +50,9 @@ def run(): URL: %s Title: %s LastModified: %s +IconURI: %s Icon: %s -""" % (bookmark.href, getattr(bookmark, 'name', ''), strftime(bookmark.last_modified), bookmark.icon) +""" % (bookmark.href, getattr(bookmark, 'real_title', ''), strftime(bookmark.last_modified), bookmark.icon_href, bookmark.icon) robot.stop() log.close()