Skip to content

Commit

Permalink
✌️ Obtiene los audios de un podcast determinado
Browse files Browse the repository at this point in the history
  • Loading branch information
EdgarVaguencia committed Nov 18, 2015
1 parent 208bc3e commit e7d723a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# npm package
node_modules
node_modules

coverage
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ivoox.audios().then(function(data) { console.log(data) }).catch(function(e) { co
Methods
-------

* audios()
* audios([urlPodcasts])
* podcasts()
* search(string)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-ivoox",
"version": "1.0.0",
"version": "1.1.0",
"description": "Unofficial iVoox API for node",
"main": "src/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ module.exports = {
/**
* Obtiene los audios de la lista explorar audios
*/
audios: function() {
this.urlRequest = this.urlBase + this.urlAudios;
audios: function(url) {
this.urlRequest = url !== undefined ? url : this.urlBase + this.urlAudios;
this.type = 1;
return this._request();
},
Expand Down

0 comments on commit e7d723a

Please sign in to comment.