From cb2b7285b5d166da669496c23745ec538c4ee287 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Mon, 9 Dec 2019 09:11:11 +0100 Subject: [PATCH] Updated list of Rx3 artist's name --- config.js | 3 ++- libs.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 5497038..b96d5b4 100644 --- a/config.js +++ b/config.js @@ -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'] } diff --git a/libs.js b/libs.js index 711a44f..0cf10ab 100644 --- a/libs.js +++ b/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)