aboutsummaryrefslogtreecommitdiff
path: root/mbbmlib.py
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-12-02 08:46:01 -0500
committerB. Stack <bgstack15@gmail.com>2021-12-02 08:46:01 -0500
commitf4cb5289715049dd99fdb8172c2b37c9c0634089 (patch)
tree674f302aaf10ca1267519a4da578c58c277d2536 /mbbmlib.py
parentonly open favicons.sqlite if fetch_icons == True (diff)
downloadmbbmlib-f4cb5289715049dd99fdb8172c2b37c9c0634089.tar.gz
mbbmlib-f4cb5289715049dd99fdb8172c2b37c9c0634089.tar.bz2
mbbmlib-f4cb5289715049dd99fdb8172c2b37c9c0634089.zip
disable fetch_icons for palemoon
Diffstat (limited to 'mbbmlib.py')
-rw-r--r--mbbmlib.py4
1 files 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))
bgstack15