Skip to content

Commit

Permalink
更换了一个更快的源 (#4)
Browse files Browse the repository at this point in the history
gcore -> testingcf
  • Loading branch information
tw93 authored Dec 18, 2022
1 parent c1f8403 commit 6a4e3f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ glob("./audio/**/*.{mp3,wav,flac}", {}, function (er, files) {
result.push({
name: arr[3].replace(/\.(mp3|flac|wav)$/g, ''),
artist: "专辑-"+arr[2],
url: 'https://gcore.jsdelivr.net/gh/nj-lizhi/song@main' + item.slice(1),
cover: 'https://gcore.jsdelivr.net/gh/nj-lizhi/song@main/audio/' + arr[2] + '/cover.png',
url: 'https://testingcf.jsdelivr.net/gh/nj-lizhi/song@main' + item.slice(1),
cover: 'https://testingcf.jsdelivr.net/gh/nj-lizhi/song@main/audio/' + arr[2] + '/cover.png',
})
download += `https://gcore.jsdelivr.net/gh/nj-lizhi/song@main${item.slice(1)}\n`
download += `https://testingcf.jsdelivr.net/gh/nj-lizhi/song@main${item.slice(1)}\n`
} else {
console.log('文件大于20M:', item)
}
})
fs.writeFileSync('./audio/list.js', "var list = " + JSON.stringify(result))
fs.writeFileSync('./audio/download.txt', download)
})
})

0 comments on commit 6a4e3f9

Please sign in to comment.