X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=check_title.py;h=5c23cf615a28d0bc5fb6fd6883a5fe25c728f0b1;hb=a8cce72842351341232a75a9e65f8e3890a0315f;hp=fee4c310e298b02edcf7e8fa9f8eb7fb304a3bb1;hpb=a334a6e43f36642f4ffff7ebf0aec085a8545b2f;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: