diff --git a/lib/RealDebridClient.js b/lib/RealDebridClient.js index 2c2b1ef..8fb7f21 100755 --- a/lib/RealDebridClient.js +++ b/lib/RealDebridClient.js @@ -30,6 +30,8 @@ class RealDebridClient { return new Promise((resolve, reject) => { axios(options.url, options).then(resolve).catch(reject) + }) + } _get (endpoint, options = {}) { options.method = 'get' @@ -132,9 +134,11 @@ class RealDebridClient { this.downloads = { get: (offset = null, page = null, limit = 50) => { return this._get('downloads', { - offset, - page, - limit + params: { + offset, + page, + limit + } }) }, delete: id => { @@ -145,7 +149,7 @@ class RealDebridClient { this.torrents = { get: (offset = null, page = null, limit = 50, filter = '') => { return this._get('torrents', { - qs: { + params: { offset, page, limit,