Browse Source

Fixed file not found issue in CreateSearchedLog on singles

main
RemixDev 2 weeks ago
parent
commit
ba492a329b
Signed by: RemixDev GPG Key ID: B33962B465BDB51C
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      deemix/downloader.js

+ 4
- 1
deemix/downloader.js View File

@ -665,7 +665,10 @@ class Downloader {
try {
if (this.settings.logSearched && track.searched){
let filename = `${track.data.artist} - ${track.data.title}`
let searchedFile = fs.readFileSync(`${this.downloadObject.extrasPath}/searched.txt`).toString()
let searchedFile
try {
searchedFile = fs.readFileSync(`${this.downloadObject.extrasPath}/searched.txt`).toString()
} catch { searchedFile = "" }
if (searchedFile.indexOf(filename) == -1){
if (searchedFile != "") searchedFile += "\r\n"
searchedFile += filename + "\r\n"


Loading…
Cancel
Save