mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-05-11 20:40:33 +00:00
fixed sub only download also for hidive
This commit is contained in:
parent
9f459b5c28
commit
9352730bcf
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue