updates
This commit is contained in:
+3
-3
@@ -193,7 +193,7 @@ async function run()
|
||||
const songUrl = `https://storage.neurokaraoke.com/${item.absolutePath}`
|
||||
const coverArtUrl = item.coverArt ? `https://images.neurokaraoke.com/${item.coverArt.cloudflareId}/format=png` : null;
|
||||
const songName = item.title || item.title;
|
||||
let coverArtists = item.coverArtists.join(", ").replace(/ & /, ", ");
|
||||
let coverArtists = item.coverArtists.join(", ").replace(/ & /g, ", ");
|
||||
const formatedName = `${songName} - ${item.originalArtists.join(", ")} - ${coverArtists} [${shortID}].mp3`.replace(/\//g, "/").replace(/[/\\:*?"<>|]/g, "-");
|
||||
const oldFormatedName = `${songName} - ${item.originalArtists.join(", ")} - ${coverArtists}.mp3`.replace(/\//g, "/").replace(/[/\\:*?"<>|]/g, "-");
|
||||
const artistsMetadata = `${coverArtists}, ${item.originalArtists.join(", ")}`;
|
||||
@@ -270,9 +270,9 @@ async function run()
|
||||
console.log(`Skipped ${skipped}/${songs.totalCount} songs`);
|
||||
}
|
||||
|
||||
console.log(genHash("LIFE", ["Neuro Sama"], 3*60+32).slice(0,8))
|
||||
//console.log(genHash("Payphone", ["Maroon 5"], 2*60+50).slice(0,8))
|
||||
|
||||
|
||||
/**
|
||||
run().then(r => {
|
||||
fs.writeFile(`./failes-${date.toLocaleDateString().replace(/\//g, "_")}.json`, JSON.stringify(fails, null, 2), () => {});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user