Skip to content

Commit

Permalink
fix: useless logs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshunrau committed Feb 7, 2025
1 parent 4418ae4 commit 65df057
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export class Downloader {
.replaceAll('{uploader}', videoInfo.videoDetails.author.name)
: videoInfo.videoDetails.title
);
console.log(videoInfo.videoDetails);

const outputFile = this.getOutputFile(videoInfo.videoDetails.title);
const videoData = await this.downloadVideo(videoInfo).catch((error) => {
Expand All @@ -77,7 +76,10 @@ export class Downloader {
NodeID3.write(songTags, outputFile);
}

if (!this.silentMode) console.log(`Done! Output file: ${outputFile}`);
if (!this.silentMode) {
console.log(`Done! Output file: ${outputFile}`);
}

return {
album: songTags?.album ?? null,
artist: songTags?.artist ?? null,
Expand Down

0 comments on commit 65df057

Please sign in to comment.