|
|
|
@ -8,8 +8,8 @@ import ( |
|
|
|
|
"os" |
|
|
|
|
"path/filepath" |
|
|
|
|
"sort" |
|
|
|
|
"time" |
|
|
|
|
"strings" |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
"hack-browser-data/core/decrypt" |
|
|
|
|
"hack-browser-data/log" |
|
|
|
@ -535,9 +535,9 @@ func (d *downloads) FirefoxParse() error { |
|
|
|
|
for downloadRows.Next() { |
|
|
|
|
var ( |
|
|
|
|
content, url string |
|
|
|
|
place_id, dateAdded int64 |
|
|
|
|
placeID, dateAdded int64 |
|
|
|
|
) |
|
|
|
|
err = downloadRows.Scan(&place_id, &content, &url, &dateAdded) |
|
|
|
|
err = downloadRows.Scan(&placeID, &content, &url, &dateAdded) |
|
|
|
|
if err != nil { |
|
|
|
|
log.Warn(err) |
|
|
|
|
} |
|
|
|
@ -555,10 +555,11 @@ func (d *downloads) FirefoxParse() error { |
|
|
|
|
EndTime: utils.TimeStampFormat(endTime.Int() / 1000), |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
tempMap[place_id] = url |
|
|
|
|
tempMap[placeID] = url |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (d *downloads) CopyDB() error { |
|
|
|
|
return copyToLocalPath(d.mainPath, filepath.Base(d.mainPath)) |
|
|
|
|
} |
|
|
|
|