Skip to content

Commit

Permalink
update seed and fix conditional order
Browse files Browse the repository at this point in the history
  • Loading branch information
zamitto committed May 21, 2024
1 parent b3480eb commit d4bebd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file modified hydra.db
Binary file not shown.
3 changes: 2 additions & 1 deletion src/main/services/repack-tracker/online-fix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ export const getNewRepacksFromOnlineFix = async (
);

if (!newRepacks.length) return;
if (page === totalPages) return;

await savePage(newRepacks);

if (page === totalPages) return;

return getNewRepacksFromOnlineFix(existingRepacks, page + 1, cookieJar);
};
3 changes: 2 additions & 1 deletion src/main/services/repack-tracker/xatab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ export const getNewRepacksFromXatab = async (
);

if (!newRepacks.length) return;
if (page === totalPages) return;

await savePage(newRepacks);

if (page === totalPages) return;

return getNewRepacksFromXatab(existingRepacks, page + 1);
};

0 comments on commit d4bebd1

Please sign in to comment.