diff --git a/PlutoIPTV/index.js b/PlutoIPTV/index.js index 148d4b7..5c004ed 100755 --- a/PlutoIPTV/index.js +++ b/PlutoIPTV/index.js @@ -264,7 +264,11 @@ const plutoIPTV = { promises.push( new Promise((resolve, reject) => { request(url, function (err, code, raw) { - resolve(JSON.parse(raw)); + if (err) { + reject(err); + } else { + resolve(JSON.parse(raw)); + } }); }) );