add newline

This commit is contained in:
Erik 2024-03-28 10:44:24 +02:00
parent ea505e0474
commit 9a50a7ce91

View File

@ -143,7 +143,7 @@ class SpotifyDownloader extends Downloader
return reject(new Error('Got bad output from zotify (could not find file name) and could not find by ID from cache file')); return reject(new Error('Got bad output from zotify (could not find file name) and could not find by ID from cache file'));
} }
const { file, name } = match.groups!; const { file, name } = match.groups!;
fs.appendFileSync(path.join(this.downloadDir!, '.song_ids'), `${id}\t${(new Date()).toLocaleString('sv')}\t${name}\t${file}`); fs.appendFileSync(path.join(this.downloadDir!, '.song_ids'), `${id}\t${(new Date()).toLocaleString('sv')}\t${name}\t${file}\n`);
data = this.#parseFilename(file); data = this.#parseFilename(file);
} }
if (!data) if (!data)