]> git.phdru.name Git - bookmarks_db.git/commitdiff
Feat: Skip URLs that have '%s'
authorOleg Broytman <phd@phdru.name>
Wed, 24 Jul 2024 02:05:56 +0000 (05:05 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 24 Jul 2024 02:05:56 +0000 (05:05 +0300)
bkmk-chk
check_redirects.py
check_title.py

index c18158d81638c2312a24195cecdcb598abafc876..60821e1ea971ed6ab9c65ee17d3456a1c980ca57 100755 (executable)
--- a/bkmk-chk
+++ b/bkmk-chk
@@ -23,8 +23,8 @@ check_urls_db.py -e &&
 # Report results
 BKMK_WRITER=flad db2bkmk.py &&
 check_dups.py -s -l check_dups.txt >/dev/null &&
-check_title.py -s -l check_title.txt &&
 check_redirects.py -s -l check_redirects.txt &&
+check_title.py -s -l check_title.txt &&
 bkmk-sort &&
 
 # Write results to the bookmarks files
index ef7a505c733de11197a7557ad2137cfe652d9181..c9753ab33606812a89cb926f8502697c57501f5d 100755 (executable)
@@ -10,7 +10,7 @@ from bkmk_objects import make_linear
 
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2023 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2023, 2024 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 
@@ -40,7 +40,7 @@ def run():
         pass
 
     if report_stats:
-        print("Broytman check_redirects, Copyright (C) 2023 PhiloSoft Design")
+        print("Broytman check_redirects, Copyright (C) 2023, 2024 PhiloSoft Design")
 
     if args:
         sys.stderr.write("check_redirects: too many arguments\n")
@@ -69,8 +69,10 @@ def run():
         object = root_folder.linear[object_no]
 
         if object.isBookmark:
-            if hasattr(object, "error") or \
-                    object.href.startswith('place:'):  # Firefox SmartBookmarks
+            if (hasattr(object, "error") or
+                    object.href.startswith('place:')  # Firefox SmartBookmarks
+                    or ('%s' in object.href)
+            ):
                 continue
 
             if hasattr(object, "moved"):
index 0bb10602281defb9bd127ae91f9fdf8d8ab019a0..271af9bca1ed713f54285740af916ee608e0979e 100755 (executable)
@@ -10,7 +10,7 @@ from bkmk_objects import make_linear, quote_title, unquote_title
 
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2002-2023 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2002-2024 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 
@@ -44,7 +44,7 @@ def run():
         pass
 
     if report_stats:
-        print("Broytman check_title, Copyright (C) 2002-2023 PhiloSoft Design")
+        print("Broytman check_title, Copyright (C) 2002-2024 PhiloSoft Design")
 
     if args:
         sys.stderr.write("check_title: too many arguments\n")
@@ -73,8 +73,10 @@ def run():
         object = root_folder.linear[object_no]
 
         if object.isBookmark:
-            if hasattr(object, "moved") or hasattr(object, "error") or \
-                    object.href.startswith('place:'):  # Firefox SmartBookmarks
+            if (hasattr(object, "moved") or hasattr(object, "error") or
+                    object.href.startswith('place:')  # Firefox SmartBookmarks
+                    or ('%s' in object.href)
+            ):
                 continue
 
             if hasattr(object, "real_title") \