feat: add parse Firefox download history

This commit is contained in:
Aquilao
2021-02-11 16:06:22 +08:00
committed by ᴍᴏᴏɴD4ʀᴋ
parent e7c2a77695
commit f3d58cd14f
2 changed files with 62 additions and 2 deletions
+5 -1
View File
@@ -52,7 +52,7 @@ const (
)
var (
errItemNotSupported = errors.New(`item not supported, default is "all", choose from history|password|bookmark|cookie`)
errItemNotSupported = errors.New(`item not supported, default is "all", choose from history|download|password|bookmark|cookie`)
errBrowserNotSupported = errors.New("browser not supported")
errChromeSecretIsEmpty = errors.New("chrome secret is empty")
errDbusSecretIsEmpty = errors.New("dbus secret key is empty")
@@ -105,6 +105,10 @@ var (
mainFile: data.FirefoxDataFile,
newItem: data.NewHistoryData,
},
download: {
mainFile: data.FirefoxDataFile,
newItem: data.NewDownloads,
},
password: {
mainFile: data.FirefoxKey4File,
subFile: data.FirefoxLoginFile,