Updated list of Rx3 artist's name
This commit is contained in:
parent
7ac1637e86
commit
cb2b7285b5
2 changed files with 3 additions and 2 deletions
|
@ -4,5 +4,6 @@ module.exports = {
|
|||
mastodonToken: process.env.mastodonToken,
|
||||
mastondonApi: process.env.mastondonApi || 'https://mamot.fr/api/v1/',
|
||||
discogsToken: process.env.discogsToken,
|
||||
delay: process.env.delay || 4000
|
||||
delay: process.env.delay || 4000,
|
||||
rx3List: ['Rx3', 'REAL REBEL RADIO', 'REAL REBEL RADIO homemade']
|
||||
}
|
||||
|
|
2
libs.js
2
libs.js
|
@ -92,7 +92,7 @@ const getRemoteCover = (song, callback) => {
|
|||
*/
|
||||
const findCover = (song, callback) => {
|
||||
// Si c'est Rx3 on ne met pas de cover
|
||||
if (['Rx3', 'REAL REBEL RADIO'].indexof(song.artist) !== -1) {
|
||||
if (config.rx3List.indexof(song.artist) !== -1) {
|
||||
const metadata = new mongo.Metadata(song)
|
||||
metadata.save()
|
||||
callback(null, null)
|
||||
|
|
Loading…
Reference in a new issue