fix: filter apple garbadge sended by myfreemp3

This commit is contained in:
HugoPoi 2020-07-04 18:08:12 +02:00
parent fb7d1b6398
commit b726646ea8

View File

@ -64,7 +64,8 @@ async function searchOnMyFreeMp3(query){
}),
})
.then(res => res.text())
.then(jsonp => vm.runInNewContext(jsonp, { callback: (payload) => payload.response }));
.then(jsonp => vm.runInNewContext(jsonp, { callback: (payload) => payload.response }))
.then(items => _.filter(items, _.isString));
}
function matchScore(spotifyMetas, vkmusicMetas){