X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=check_title.py;h=5c23cf615a28d0bc5fb6fd6883a5fe25c728f0b1;hb=284b0935fc4237bda2e51229860c771f78887be2;hp=fee4c310e298b02edcf7e8fa9f8eb7fb304a3bb1;hpb=789d114c213bb9468c4711180d996c3a1b39ad6c;p=bookmarks_db.git diff --git a/check_title.py b/check_title.py index fee4c31..5c23cf6 100755 --- a/check_title.py +++ b/check_title.py @@ -6,7 +6,7 @@ """ import sys -from bkmk_objects import make_linear, quote_title +from bkmk_objects import make_linear, quote_title, unquote_title def run(): @@ -54,10 +54,11 @@ def run(): continue if hasattr(object, "real_title"): - quoted_title = quote_title(object.real_title) - if object.name <> quoted_title: + quoted_title = unquote_title(quote_title(object.real_title)) + unquoted_name = unquote_title(object.name) + if unquote_title(object.name) <> quoted_title: print object.href - print object.name + print unquoted_name print quoted_title print else: