Fix FF auto-import issues

1. parse_tags() is a generic function
2. Filter out non generic URLs
This commit is contained in:
Arun Prakash Jana 2017-08-11 20:38:26 +05:30
parent a26575f71e
commit 5d25deebf2
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -1800,6 +1800,8 @@ class BukuDb:
'SELECT url FROM moz_places WHERE id={}'.format(place_id)
)
url = res.fetchone()[0]
if is_nongeneric_url(url):
continue
# get the title
res = cur.execute(
@ -1811,7 +1813,7 @@ class BukuDb:
title = title_data[0]
else:
title = ''
tags = self.parse_tags(bookmark_tags)
tags = parse_tags(bookmark_tags)
self.add_rec(url, title, tags)
try:
cur.close()