瀏覽代碼

Ignore 404 errors from google-play-scraper

master
KaKi87 1 年之前
父節點
當前提交
a37072873b
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      gplay.js

+ 2
- 2
gplay.js 查看文件

@@ -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));


Loading…
取消
儲存