]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk-add.py
No need to split bookmark.href - a robot will split it itself.
[bookmarks_db.git] / bkmk-add.py
index 24952ce0d74423c93010d3a075d9d8f603c94053..6bd02c5cac0331a3bdae97e59d6ce72c5bc079ab 100755 (executable)
@@ -2,11 +2,11 @@
 """
    Add a bookmark to the database.
 
-   Written by BroytMann, Aug 2002. Copyright (C) 2002 PhiloSoft Design
+   Written by BroytMann. Copyright (C) 2002-2007 PhiloSoft Design.
 """
 
 
-import sys, os, time, urllib
+import sys, os, time
 from bkmk_objects import Bookmark
 from Robots.bkmk_rsimple import robot_simple
 
@@ -54,9 +54,8 @@ def run():
    bookmark.name = ''
 
    robot = robot_simple(tempfname, None)
-   url_type, url_rest = urllib.splittype(href)
 
-   if robot.check_url(bookmark, url_type, url_rest): # get real title and last modified date
+   if robot.check_url(bookmark): # get real title and last modified date
       if title: # forced title
          bookmark.name = title
       elif hasattr(bookmark, "real_title"):