Updated list of Rx3 artist's name

This commit is contained in:
dbroqua 2019-12-09 09:11:11 +01:00
parent 7ac1637e86
commit cb2b7285b5
2 changed files with 3 additions and 2 deletions

View file

@ -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']
}

View file

@ -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)