Skip to content

Commit

Permalink
fix🐛: 忘记导出scanLyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta1035 committed Jul 12, 2023
1 parent 183ea34 commit df3998d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ function readFilesWithLriExtension(directoryPath) {
}
});
}
const lyricsPath = path.join(__dirname, config.lyricsPath);
readFilesWithLriExtension(lyricsPath);
fs.writeFileSync(config.lyricsCacheFileName, JSON.stringify(lyrics));

module.exports = function scanLyrics() {
const lyricsPath = path.join(__dirname, config.lyricsPath);
readFilesWithLriExtension(lyricsPath);
fs.writeFileSync(config.lyricsCacheFileName, JSON.stringify(lyrics));
};

0 comments on commit df3998d

Please sign in to comment.