Skip to content

Commit c81e660

Browse files
author
Kyagara
committed
fix toDash options
1 parent f88d015 commit c81e660

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/youtube/video.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ export async function fetchVideo(
103103
const video: WatchPageVideo = {
104104
id: videoID,
105105
isLive,
106-
dash: isLive
107-
? undefined
108-
: await videoInfo.toDash(undefined, undefined, { captions_format: 'vtt' }),
106+
dash: isLive ? undefined : await videoInfo.toDash({ captions_format: 'vtt' }),
109107
live,
110108
info,
111109
channel

0 commit comments

Comments
 (0)