X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Storage%2Fbkmk_stjson.py;h=89ee94a631f4c16ba17a33659fc8237f6a26dad0;hb=e7ce4407105621c9e19276a31b4fb87867e858f3;hp=5d34d165f6cb27fae1a4fe4f7ee9a874719dc79d;hpb=d01d07aa733e85e7839e0ede051203eaa2868973;p=bookmarks_db.git diff --git a/Storage/bkmk_stjson.py b/Storage/bkmk_stjson.py index 5d34d16..89ee94a 100644 --- a/Storage/bkmk_stjson.py +++ b/Storage/bkmk_stjson.py @@ -75,11 +75,14 @@ class storage_json(Walker): dict["type"] = "text/x-moz-place" dict["uri"] = uri = b.href if uri.startswith('place:'): - if uri.startswith('place:sort=8'): + if uri.startswith('place:sort=8') \ + or uri.startswith('place://sort=8'): value = 'MostVisited' - elif uri.startswith('place:folder=BOOKMARKS_MENU'): + elif uri.startswith('place:folder=BOOKMARKS_MENU') \ + or uri.startswith('place://folder=BOOKMARKS_MENU'): value = 'RecentlyBookmarked' - elif uri.startswith('place:sort=14'): + elif uri.startswith('place:sort=14') \ + or uri.startswith('place://sort=14'): value = 'RecentTags' dict["annos"] = make_annos(value, name='Places/SmartBookmark') del dict["dateAdded"]