1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Add ability to import video with youtube-dl

This commit is contained in:
Chocobozzz 2018-08-02 15:34:09 +02:00
parent 5e319fb789
commit fbad87b047
42 changed files with 1507 additions and 446 deletions

View file

@ -45,7 +45,7 @@ function isActivityPubVideoDurationValid (value: string) {
}
function sanitizeAndCheckVideoTorrentObject (video: any) {
if (video.type !== 'Video') return false
if (!video || video.type !== 'Video') return false
if (!setValidRemoteTags(video)) return false
if (!setValidRemoteVideoUrls(video)) return false