1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Merge branch 'release/4.2.0' into develop

This commit is contained in:
Chocobozzz 2022-06-27 10:36:31 +02:00
commit e722fb5923
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 97 additions and 45 deletions

View file

@ -312,11 +312,13 @@ function addVideosToFeed (feed: Feed, videos: VideoModel[]) {
torrents,
// Enclosure
video: {
url: videoFiles[0].url,
length: videoFiles[0].fileSize,
type: videoFiles[0].type
},
video: videoFiles.length !== 0
? {
url: videoFiles[0].url,
length: videoFiles[0].fileSize,
type: videoFiles[0].type
}
: undefined,
// Media RSS
videos: videoFiles,