Compare commits

...

2 Commits

Author SHA1 Message Date
HugoPoi
fb3adbf8f5 1.0.2 2020-07-04 18:08:24 +02:00
HugoPoi
b726646ea8 fix: filter apple garbadge sended by myfreemp3 2020-07-04 18:08:12 +02:00
3 changed files with 4 additions and 3 deletions

View File

@ -64,7 +64,8 @@ async function searchOnMyFreeMp3(query){
}), }),
}) })
.then(res => res.text()) .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){ function matchScore(spotifyMetas, vkmusicMetas){

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "vk-music-dl", "name": "vk-music-dl",
"version": "1.0.1", "version": "1.0.2",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "vk-music-dl", "name": "vk-music-dl",
"version": "1.0.1", "version": "1.0.2",
"description": "Download playlist from Spotify as mp3 from VKontact", "description": "Download playlist from Spotify as mp3 from VKontact",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {