]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk-add.py
Fix(Robot): Stop splitting and un-splitting URLs
[bookmarks_db.git] / bkmk-add.py
index a21a1b131570ab94e953d45b9c15b24238f3b8da..f268277507c759188b6729f604e60502425f4c55 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 """Add a bookmark to the database
 
 This file is a part of Bookmarks database and Internet robot.
@@ -9,7 +9,6 @@ __author__ = "Oleg Broytman <phd@phdru.name>"
 __copyright__ = "Copyright (C) 2002-2023 PhiloSoft Design"
 __license__ = "GNU GPL"
 
-import os
 import sys
 import time
 
@@ -57,10 +56,10 @@ def run():
     bookmark.name = ''
     bookmark.parent = None
 
-    global robot
-    robot = robot(None)
+    global _robot
+    _robot = robot(None)
 
-    if robot.check_url(bookmark):  # 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"):