Comparing version 0.0.10 to 0.0.11
@@ -40,3 +40,4 @@ var UniqueId = require('../../modules/UniqueId'); | ||
'SoundCloudTrack': require('./SoundCloudTrack'), | ||
'VimeoTrack': require('./VimeoTrack') | ||
'VimeoTrack': require('./VimeoTrack'), | ||
'MixCloudTrack': require('./MixCloudTrack') | ||
}; | ||
@@ -43,0 +44,0 @@ |
@@ -18,3 +18,4 @@ const BaseTrack = require('./BaseTrack'); | ||
console.error(options); | ||
} else { | ||
} | ||
else { | ||
this.platformId = options.url.replace(this._trackUrlPrefix, ''); | ||
@@ -21,0 +22,0 @@ |
@@ -9,3 +9,6 @@ const request = require('request'); | ||
MixCloudSearcher.prototype.search = function(keyword, limit = 20) { | ||
let queryURL = `https://api.mixcloud.com/search/?limit=${limit}&q=${keyword}&type=cloudcast`; | ||
keyword = encodeURIComponent(keyword); | ||
let type = 'cloudcast'; | ||
let queryURL = | ||
`https://api.mixcloud.com/search/?limit=${limit}&q=${keyword}&type=${type}`; | ||
@@ -17,3 +20,4 @@ return new Promise((resolve, reject) => { | ||
reject(err); | ||
} else { | ||
} | ||
else { | ||
const rawTracks = JSON.parse(body); | ||
@@ -20,0 +24,0 @@ const mixCloudTracks = rawTracks['data'].map(rawTrack => { |
{ | ||
"name": "kaku-core", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "This repo keeps shared scripts that can be reused in differnt clients", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35678
1081