From 9352730bcf75fecdcb7ed06413e6be43d53aa9c3 Mon Sep 17 00:00:00 2001 From: stratumadev Date: Fri, 1 Aug 2025 23:37:16 +0200 Subject: [PATCH] fixed sub only download also for hidive --- hidive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hidive.ts b/hidive.ts index 0cc0d4a..7c95f22 100644 --- a/hidive.ts +++ b/hidive.ts @@ -655,7 +655,7 @@ export default class Hidive implements ServiceClass { const subsMargin = 0; const chosenFontSize = options.originalFontSize ? undefined : options.fontSize; let encryptionKeys: KeyContainer[] = []; - if (!canDecrypt) { + if (!canDecrypt && (!options.novids || !options.noaudio)) { console.error('No valid Widevine or PlayReady CDM detected. Please ensure a supported and functional CDM is installed.'); return undefined; } @@ -663,7 +663,7 @@ export default class Hidive implements ServiceClass { if (!this.cfg.bin.ffmpeg) this.cfg.bin = await yamlCfg.loadBinCfg(); - if (!this.cfg.bin.mp4decrypt && !this.cfg.bin.shaka) { + if (!this.cfg.bin.mp4decrypt && !this.cfg.bin.shaka && (!options.novids || !options.noaudio)) { console.error('Neither Shaka nor MP4Decrypt found. Please ensure at least one of them is installed.'); return undefined; }