Add skipmux functionality to CR
This commit is contained in:
parent
0da2fc232d
commit
a8bdef3bc7
2 changed files with 7 additions and 2 deletions
3
@types/crunchyTypes.d.ts
vendored
3
@types/crunchyTypes.d.ts
vendored
|
|
@ -26,7 +26,8 @@ export type CrunchyDownloadOptions = {
|
|||
defaultSub: LanguageItem,
|
||||
defaultAudio: LanguageItem,
|
||||
ccTag: string,
|
||||
dlVideoOnce: boolean
|
||||
dlVideoOnce: boolean,
|
||||
skipmux?: boolean
|
||||
}
|
||||
|
||||
export type CurnchyMultiDownload = {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue