From: Oleg Broytman Date: Mon, 12 Dec 2011 09:29:03 +0000 (+0000) Subject: Adapted to different Mozilla place URIs. X-Git-Tag: v4.5.3~28 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=61c2651bac82753c783545e633374a747a84c1cc;p=bookmarks_db.git Adapted to different Mozilla place URIs. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@348 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Storage/bkmk_stjson.py b/Storage/bkmk_stjson.py index 89ee94a..ede71f3 100644 --- a/Storage/bkmk_stjson.py +++ b/Storage/bkmk_stjson.py @@ -78,12 +78,20 @@ class storage_json(Walker): if uri.startswith('place:sort=8') \ or uri.startswith('place://sort=8'): value = 'MostVisited' + elif uri.startswith('place://redirectsMode'): + value = 'Most Visited' elif uri.startswith('place:folder=BOOKMARKS_MENU') \ or uri.startswith('place://folder=BOOKMARKS_MENU'): value = 'RecentlyBookmarked' + elif uri.startswith('place://folder'): + value = 'Recently Bookmarked' elif uri.startswith('place:sort=14') \ or uri.startswith('place://sort=14'): value = 'RecentTags' + elif uri.startswith('place://type'): + value = 'Recent Tags' + else: + raise ValueError('UNKNOWN place URI: %s' % uri) dict["annos"] = make_annos(value, name='Places/SmartBookmark') del dict["dateAdded"] del dict["lastModified"]