aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-12-02 09:26:02 -0500
committerB. Stack <bgstack15@gmail.com>2021-12-02 09:26:02 -0500
commitc555d30e5917e49750683c0fee9524338e14ecd7 (patch)
treef709bd3e5ffd13c84959bc1398387367e2e7d37b
parentdisable fetch_icons for palemoon (diff)
downloadmbbmlib-c555d30e5917e49750683c0fee9524338e14ecd7.tar.gz
mbbmlib-c555d30e5917e49750683c0fee9524338e14ecd7.tar.bz2
mbbmlib-c555d30e5917e49750683c0fee9524338e14ecd7.zip
add 15-column support for LibreWolf
-rw-r--r--mbbmlib.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbmlib.py b/mbbmlib.py
index 3dd8db7..8b8d585 100644
--- a/mbbmlib.py
+++ b/mbbmlib.py
@@ -332,7 +332,12 @@ class Bookmark:
bid, btype, parent, fk, position, title, keyword_id, folder_type, dateAdded, lastModified, guid, syncStatus, syncChangeCounter = row
db_bookmarks.append(db_bookmark(bid, btype, parent, fk, position, title, keyword_id, folder_type, dateAdded, lastModified, guid, syncStatus, syncChangeCounter))
for row in raw_places:
- pid, url, title, rev_host, visit_count, hidden, typed, favicon_id, frecency, last_visit_date, guid, foreign_count, url_hash, description, preview_image_url, origin_id = row
+ if (len(row)) == 15:
+ # LibreWolf, observed 2021-12-02 has no column for favicon_id.
+ pid, url, title, rev_host, visit_count, hidden, typed, frecency, last_visit_date, guid, foreign_count, url_hash, description, preview_image_url, origin_id = row
+ favicon_id = 0
+ else:
+ pid, url, title, rev_host, visit_count, hidden, typed, favicon_id, frecency, last_visit_date, guid, foreign_count, url_hash, description, preview_image_url, origin_id = row
db_places.append(db_place(pid, url, title, rev_host, visit_count, hidden, typed, favicon_id, frecency, last_visit_date, guid, foreign_count, url_hash, description, preview_image_url, origin_id))
elif browser == "palemoon":
bgstack15