Skip to content

Commit

Permalink
skip saved in spine images
Browse files Browse the repository at this point in the history
  • Loading branch information
xytoki authored Sep 28, 2023
1 parent 5cec327 commit eaddc55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ async function extract(url) {
}
// save images
const promises = Object.values(spineres.MAIN_MANIFEST).map((e) => {
//skip things in savedIds
if (savedIds.includes(e.src)) {
return Promise.resolve();
}
const dir = e.module || '';
const fn = dir + '/' + e.id + '.' + extname(e.src);
savedIds.push(e.src);
Expand Down

0 comments on commit eaddc55

Please sign in to comment.