]> git.phdru.name Git - bookmarks_db.git/commitdiff
Newer Mozilla versions use 'places://'.
authorOleg Broytman <phd@phdru.name>
Sun, 11 Dec 2011 03:29:12 +0000 (03:29 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 11 Dec 2011 03:29:12 +0000 (03:29 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@346 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Storage/bkmk_stjson.py

index 5d34d165f6cb27fae1a4fe4f7ee9a874719dc79d..89ee94a631f4c16ba17a33659fc8237f6a26dad0 100644 (file)
@@ -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"]