Skip to content

Commit 6a02130

Browse files
♻️ Fix retry-streams arg type
1 parent 1e24ea1 commit 6a02130

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/downloadByChannelLogin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const downloadByChannelLogin = async (
99
channelLogin: string,
1010
args: AppArgs,
1111
) => {
12-
const delay = args['retry-streams'];
12+
const delay = args['retry-streams'] || 0;
1313
const isLiveFromStart = args['live-from-start'];
1414
const isRetry = delay > 0;
1515

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type AppArgs = Omit<
1111
> & {
1212
downloader: Downloader;
1313
'download-sections': readonly [startTime: number, endTime: number] | null;
14-
'retry-streams': number;
14+
'retry-streams': number | undefined;
1515
'merge-method': MergeMethod;
1616
};
1717

0 commit comments

Comments
 (0)