]> git.phdru.name Git - bookmarks_db.git/blobdiff - check_urls.py
No need to split bookmark.href - a robot will split it itself.
[bookmarks_db.git] / check_urls.py
index 75f31559b89ab3b12216d0e93b7b3eadf8535e0f..4081637952acef7cf072efbe7923c7e8f7f3e4db 100755 (executable)
@@ -2,11 +2,11 @@
 """
    Robot interface - check URLs from bookmarks database
 
-   Written by BroytMann, Mar 2000 - Aug 2002. Copyright (C) 2000-2002 PhiloSoft Design
+   Written by BroytMann. Copyright (C) 2000-2007 PhiloSoft Design.
 """
 
 
-import sys, os, urllib, tempfile
+import sys, os, tempfile
 tempfname = "check_urls" + tempfile.gettempprefix() + "tmp"
 
 
@@ -31,7 +31,7 @@ def run():
       pass
 
    if report_stats:
-      print "BroytMann check_urls, Copyright (C) 1997-2002 PhiloSoft Design"
+      print "BroytMann check_urls, Copyright (C) 1997-2007 PhiloSoft Design"
 
    if args:
       sys.stderr.write("check_urls: too many arguments\n")
@@ -118,9 +118,8 @@ def run():
                if hasattr(old_object, attr_name):
                   setattr(object, attr_name, getattr(old_object, attr_name))
          else:
-            url_type, url_rest = urllib.splittype(object.href)
-            log("Checking %s:%s" % (url_type, url_rest))
-            rcode = robot.check_url(object, url_type, url_rest)
+            log("Checking %s" % object.href)
+            rcode = robot.check_url(object)
 
             if rcode:
                checked[object.href] = object_no