projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
212e17a
)
Fix getSubs import
author
Chocobozzz
<me@florianbigard.com>
Tue, 16 Jun 2020 07:35:18 +0000
(09:35 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Tue, 16 Jun 2020 09:26:46 +0000
(11:26 +0200)
server/helpers/youtube-dl.ts
patch
|
blob
|
history
diff --git
a/server/helpers/youtube-dl.ts
b/server/helpers/youtube-dl.ts
index f0944b94f85967a7236ae6094df5726efb670fc0..2014aab0a486ae5f0007bbb35c638594e6f6a95c 100644
(file)
--- a/
server/helpers/youtube-dl.ts
+++ b/
server/helpers/youtube-dl.ts
@@
-61,6
+61,7
@@
function getYoutubeDLSubs (url: string, opts?: object): Promise<YoutubeDLSubs> {
.then(youtubeDL => {
youtubeDL.getSubs(url, options, (err, files) => {
if (err) return rej(err)
+ if (!files) return []
logger.debug('Get subtitles from youtube dl.', { url, files })