mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add new config use_path_based_img_url
Fix parseBitInt
This commit is contained in:
@@ -167,6 +167,11 @@ export const handler: Handlers = {
|
||||
);
|
||||
const b = new URLSearchParams(bs.toString());
|
||||
b.append("verify", tverify);
|
||||
if (m.cfg.use_path_based_img_url) {
|
||||
return Response.redirect(
|
||||
`${get_host(req)}/thumbnail/${b}/${f.id}.jpg`,
|
||||
);
|
||||
}
|
||||
return Response.redirect(
|
||||
`${get_host(req)}/thumbnail/${f.id}?${b}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user