diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-16 09:35:18 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-06-16 11:26:46 +0200 |
commit | c7763eddd14ee6a4a448d5187f46f79b22047d20 (patch) | |
tree | 295f6e116369843f5192730b8ce875d103a694b6 | |
parent | 212e17a1892162a69138c0b9c0a1bd88f95209a8 (diff) | |
download | PeerTube-c7763eddd14ee6a4a448d5187f46f79b22047d20.tar.gz PeerTube-c7763eddd14ee6a4a448d5187f46f79b22047d20.tar.zst PeerTube-c7763eddd14ee6a4a448d5187f46f79b22047d20.zip |
Fix getSubs import
-rw-r--r-- | server/helpers/youtube-dl.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts index f0944b94f..2014aab0a 100644 --- a/server/helpers/youtube-dl.ts +++ b/server/helpers/youtube-dl.ts | |||
@@ -61,6 +61,7 @@ function getYoutubeDLSubs (url: string, opts?: object): Promise<YoutubeDLSubs> { | |||
61 | .then(youtubeDL => { | 61 | .then(youtubeDL => { |
62 | youtubeDL.getSubs(url, options, (err, files) => { | 62 | youtubeDL.getSubs(url, options, (err, files) => { |
63 | if (err) return rej(err) | 63 | if (err) return rej(err) |
64 | if (!files) return [] | ||
64 | 65 | ||
65 | logger.debug('Get subtitles from youtube dl.', { url, files }) | 66 | logger.debug('Get subtitles from youtube dl.', { url, files }) |
66 | 67 | ||