From 62a08e14bb437efbced6172934a89b4351057117 Mon Sep 17 00:00:00 2001 From: Godzil Date: Sat, 13 Aug 2016 21:24:57 +0100 Subject: [PATCH] Add missing mode parameter to the stream object. (and correct call to it) --- src/episode.ts | 3 ++- src/video/stream.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/episode.ts b/src/episode.ts index ad82194..3cb2449 100644 --- a/src/episode.ts +++ b/src/episode.ts @@ -89,6 +89,7 @@ function downloadVideo(config: IConfig, player.video.file, page.swf, filePath, path.extname(player.video.file), + player.video.mode, done); } @@ -164,7 +165,7 @@ function scrapePlayer(config: IConfig, address: string, id: number, done: (err: data: player['default:preload'].subtitle.data } : null, video: { - mode: streamMode; + mode: streamMode; file: player['default:preload'].stream_info.file, host: player['default:preload'].stream_info.host } diff --git a/src/video/stream.ts b/src/video/stream.ts index 8cbf320..0bfc858 100644 --- a/src/video/stream.ts +++ b/src/video/stream.ts @@ -6,7 +6,7 @@ import os = require('os'); /** * Streams the video to disk. */ - export default function(rtmpUrl: string, rtmpInputPath: string, swfUrl: string, filePath: string, fileExt: string, done: (err: Error) => void) { + export default function(rtmpUrl: string, rtmpInputPath: string, swfUrl: string, filePath: string, fileExt: string, mode: string, done: (err: Error) => void) { if (mode == "RTMP") { childProcess.exec(command("rtmpdump") + ' ' +