ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix video import with URL with small titles
Chocobozzz5d112d0c3bff
diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.tsindex 0afc54fd24..b0990ff68f 100644--- a/server/helpers/youtube-dl.ts+++ b/server/helpers/youtube-dl.ts@@ -22,9 +22,10 @@ function getYoutubeDLInfo (url: string): Promise<YoutubeDLInfo> {youtubeDL.getInfo(url, options, (err, info) => {if (err) return rej(err)- const obj = normalizeObject(info)+ const obj = buildVideoInfo(normalizeObject(info))+ if (obj.name && obj.name.length < CONSTRAINTS_FIELDS.VIDEOS.NAME.min) obj.name += ' video'- return res(buildVideoInfo(obj))+ return res(obj)})})}