Add skipmux functionality to CR

This commit is contained in:
AnimeDL 2023-07-03 22:16:18 -07:00
parent 0da2fc232d
commit a8bdef3bc7
2 changed files with 7 additions and 2 deletions

View file

@ -26,7 +26,8 @@ export type CrunchyDownloadOptions = {
defaultSub: LanguageItem,
defaultAudio: LanguageItem,
ccTag: string,
dlVideoOnce: boolean
dlVideoOnce: boolean,
skipmux?: boolean
}
export type CurnchyMultiDownload = {

View file

@ -837,7 +837,11 @@ export default class Crunchy implements ServiceClass {
if (res === undefined || res.error) {
return false;
} else {
await this.muxStreams(res.data, { ...options, output: res.fileName });
if (!options.skipmux) {
await this.muxStreams(res.data, { ...options, output: res.fileName });
} else {
console.info('Skipping mux');
}
downloaded({
service: 'crunchy',
type: 's'