mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
improved Firefox bookmark-parsing query
now gets bookmark title from moz_bookmarks table instead of moz_places
This commit is contained in:
parent
cfe1e7745f
commit
365ca9180f
@ -8,12 +8,12 @@ namespace Wox.Plugin.BrowserBookmark
|
|||||||
{
|
{
|
||||||
public class FirefoxBookmarks
|
public class FirefoxBookmarks
|
||||||
{
|
{
|
||||||
private const string queryAllBookmarks = @"SELECT url, title
|
private const string queryAllBookmarks = @"SELECT moz_places.url, moz_bookmarks.title
|
||||||
FROM moz_places
|
FROM moz_places
|
||||||
WHERE id in (
|
INNER JOIN moz_bookmarks ON (
|
||||||
SELECT bm.fk FROM moz_bookmarks bm WHERE bm.fk NOT NULL
|
moz_bookmarks.fk NOT NULL AND moz_bookmarks.fk = moz_places.id
|
||||||
)
|
)
|
||||||
ORDER BY visit_count DESC
|
ORDER BY moz_places.visit_count DESC
|
||||||
";
|
";
|
||||||
|
|
||||||
private const string dbPathFormat = "Data Source ={0};Version=3;New=False;Compress=True;";
|
private const string dbPathFormat = "Data Source ={0};Version=3;New=False;Compress=True;";
|
||||||
|
Loading…
Reference in New Issue
Block a user