diff --git a/play-dl/YouTube/stream.ts b/play-dl/YouTube/stream.ts index 245aa01..2cffd42 100644 --- a/play-dl/YouTube/stream.ts +++ b/play-dl/YouTube/stream.ts @@ -103,7 +103,7 @@ async function live_stream(info : InfoData): Promise{ stream = new LiveStreaming(info.LiveStreamData.dashManifestUrl, info.format[info.format.length - 1].targetDurationSec) } else { - stream = new LiveEnded(info.format[info.format.length - 2]) + stream = new LiveEnded(info.LiveStreamData.dashManifestUrl) } return stream } \ No newline at end of file