From f4cb5289715049dd99fdb8172c2b37c9c0634089 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 2 Dec 2021 08:46:01 -0500 Subject: disable fetch_icons for palemoon --- mbbmlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbbmlib.py b/mbbmlib.py index 8af4e56..3dd8db7 100644 --- a/mbbmlib.py +++ b/mbbmlib.py @@ -323,7 +323,7 @@ class Bookmark: raw_bookmarks= conn.execute("SELECT id,type,fk,parent,position,title,keyword_id,folder_type,dateAdded,lastModified,guid FROM moz_bookmarks") raw_places = conn.execute("SELECT id,url,title,rev_host,visit_count,hidden,typed,favicon_id,frecency,last_visit_date,guid,foreign_count,url_hash FROM moz_places") - if fetch_icons: + if fetch_icons and browser != "palemoon": with sqlite3.connect(icons_file) as conn: raw_icons = conn.execute("SELECT * FROM moz_icons") @@ -343,7 +343,7 @@ class Bookmark: pid, url, title, rev_host, visit_count, hidden, typed, favicon_id, frecency, last_visit_date, guid, foreign_count, url_hash = 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, "", "", 0)) - if fetch_icons: + if fetch_icons and (browser != "palemoon"): for row in raw_icons: iid, icon_url, fixed_icon_url, width, root, color, expire_ms, data = row db_icons.append(db_icon(iid, icon_url, fixed_icon_url, width, root, color, expire_ms, data)) -- cgit