mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
File now only use token
This commit is contained in:
@@ -130,7 +130,7 @@ export async function download_task(
|
||||
for (const i of mpv.imagelist) {
|
||||
if (abort.aborted) break;
|
||||
await m.add_new_task(async () => {
|
||||
const ofiles = db.get_files(task.gid, i.page_token);
|
||||
const ofiles = db.get_files(i.page_token);
|
||||
if (ofiles.length) {
|
||||
const t = ofiles[0];
|
||||
if (
|
||||
|
||||
@@ -62,7 +62,7 @@ export async function export_zip(
|
||||
await asyncForEach(
|
||||
db.get_pmeta(gid).sort((a, b) => a.index - b.index),
|
||||
async (p) => {
|
||||
const f = db.get_files(gid, p.token);
|
||||
const f = db.get_files(p.token);
|
||||
if (f.length) {
|
||||
const r = await Deno.readFile(f[0].path, { signal });
|
||||
await z.add(
|
||||
|
||||
Reference in New Issue
Block a user