diff options
author | B. Stack <bgstack15@gmail.com> | 2021-12-02 09:26:02 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2021-12-02 09:26:02 -0500 |
commit | c555d30e5917e49750683c0fee9524338e14ecd7 (patch) | |
tree | f709bd3e5ffd13c84959bc1398387367e2e7d37b | |
parent | disable fetch_icons for palemoon (diff) | |
download | mbbmlib-c555d30e5917e49750683c0fee9524338e14ecd7.tar.gz mbbmlib-c555d30e5917e49750683c0fee9524338e14ecd7.tar.bz2 mbbmlib-c555d30e5917e49750683c0fee9524338e14ecd7.zip |
add 15-column support for LibreWolf
-rw-r--r-- | mbbmlib.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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": |