aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/youtube-dl
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-18 14:58:27 +0200
committerChocobozzz <me@florianbigard.com>2022-09-08 08:41:48 +0200
commit6c38f40d966eb25e53ac38174153cb1fef0475f5 (patch)
tree434706ce2526cac8d50ac9e0835b3632d94b9634 /server/helpers/youtube-dl
parent2873a53efd8913b6b5fbf305320f88731cd07771 (diff)
downloadPeerTube-6c38f40d966eb25e53ac38174153cb1fef0475f5.tar.gz
PeerTube-6c38f40d966eb25e53ac38174153cb1fef0475f5.tar.zst
PeerTube-6c38f40d966eb25e53ac38174153cb1fef0475f5.zip
Prevent weird error on sync failure
Diffstat (limited to 'server/helpers/youtube-dl')
-rw-r--r--server/helpers/youtube-dl/youtube-dl-wrapper.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/helpers/youtube-dl/youtube-dl-wrapper.ts b/server/helpers/youtube-dl/youtube-dl-wrapper.ts
index 3264cc9ff..2c3ba2feb 100644
--- a/server/helpers/youtube-dl/youtube-dl-wrapper.ts
+++ b/server/helpers/youtube-dl/youtube-dl-wrapper.ts
@@ -59,6 +59,8 @@ class YoutubeDLWrapper {
59 processOptions 59 processOptions
60 }) 60 })
61 61
62 if (!Array.isArray(list)) throw new Error(`YoutubeDL could not get list info from ${this.url}`)
63
62 return list.map(info => { 64 return list.map(info => {
63 const infoBuilder = new YoutubeDLInfoBuilder(info) 65 const infoBuilder = new YoutubeDLInfoBuilder(info)
64 66