Fixed bug

This commit is contained in:
dbroqua 2019-12-19 20:40:58 +01:00
parent 420374ea58
commit e9f43d47ea

View file

@ -71,8 +71,9 @@ const getRx3Cover = (song, callback) => {
if (song.title.indexOf('GSU') === 0) { if (song.title.indexOf('GSU') === 0) {
const year = song.title.split(' ')[1] const year = song.title.split(' ')[1]
if (!isNaN(parseInt(year))) { if (!isNaN(parseInt(year))) {
cover = `${config.rx3CoverBaseUrl}gsu${year}.jpg` cover = `${config.rx3CoverBaseUrl}gsu${year}.jpg`
}
} }
callback(null, cover) callback(null, cover)