mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix getSubs import
This commit is contained in:
@@ -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 })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user