Explorar el Código

Ignore 404 errors from google-play-scraper

master
KaKi87 hace 1 año
padre
commit
a37072873b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      gplay.js

+ 2
- 2
gplay.js Ver fichero

@@ -15,14 +15,14 @@ module.exports = {
if(res.length === 0) return callback(res);
// Second request : get apps details
Promise.all(res.map(app => GPlay.app({ appId: app.appId })))
.then(apps => Promise.all(apps.map((app, index) => new Promise((resolve, reject) => {
.then(apps => Promise.all(apps.map((app, index) => new Promise(resolve => {
// Index apps
app.index = index;
// Third request : get apps permissions
GPlay.permissions({ appId: app.appId }).then(permissions => {
app.permissions = permissions;
resolve();
}).catch(reject);
}).catch(resolve);
}))).then(() => callback(apps)));
})
.catch(err => console.log(err));


Cargando…
Cancelar
Guardar