mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-28 03:28:35 +08:00
feat: HOTLINK_TEMPLATE environment variable applied to audio and video link (#17287)
Co-authored-by: linzhikang <linzhikang@bytedance.com>
This commit is contained in:
@@ -117,6 +117,7 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
|
||||
// Force config hotlink template on conflict
|
||||
if (config.hotlink.template) {
|
||||
imageHotlinkTemplate = filterPath(ctx.req.path) ? config.hotlink.template : undefined;
|
||||
multimediaHotlinkTemplate = filterPath(ctx.req.path) ? config.hotlink.template : undefined;
|
||||
}
|
||||
|
||||
if (!imageHotlinkTemplate && !multimediaHotlinkTemplate) {
|
||||
|
||||
Reference in New Issue
Block a user