mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
FFMPEG Binary support contain and cover generate method
This commit is contained in:
@@ -111,12 +111,13 @@ export const handler: Handlers = {
|
||||
return Response.redirect(`${get_host(req)}/api/file/${f.id}`);
|
||||
}
|
||||
}
|
||||
if (method === ThumbnailMethod.FFMPEG_BINARY) {
|
||||
cfg.method = ThumbnailGenMethod.Unknown;
|
||||
}
|
||||
const output = generate_filename(b, f, cfg);
|
||||
if (!(await exists(output))) {
|
||||
if (method === ThumbnailMethod.FFMPEG_BINARY) {
|
||||
cfg.input = {
|
||||
width: Number(f.width),
|
||||
height: Number(f.height),
|
||||
};
|
||||
const re = await fb_generate_thumbnail(
|
||||
m.cfg.ffmpeg_path,
|
||||
f.path,
|
||||
|
||||
Reference in New Issue
Block a user