fixed sub only download also for hidive

This commit is contained in:
stratumadev 2025-08-01 23:37:16 +02:00
parent 9f459b5c28
commit 9352730bcf

View file

@ -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;
}