aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 9e67ca0f4..48d4ba47a 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1904,16 +1904,16 @@ export class VideoModel extends Model {
1904 return videoModelToFormattedDetailsJSON(this) 1904 return videoModelToFormattedDetailsJSON(this)
1905 } 1905 }
1906 1906
1907 getFormattedVideoFilesJSON (): VideoFile[] { 1907 getFormattedVideoFilesJSON (includeMagnet = true): VideoFile[] {
1908 let files: VideoFile[] = [] 1908 let files: VideoFile[] = []
1909 1909
1910 if (Array.isArray(this.VideoFiles)) { 1910 if (Array.isArray(this.VideoFiles)) {
1911 const result = videoFilesModelToFormattedJSON(this, this.VideoFiles) 1911 const result = videoFilesModelToFormattedJSON(this, this.VideoFiles, includeMagnet)
1912 files = files.concat(result) 1912 files = files.concat(result)
1913 } 1913 }
1914 1914
1915 for (const p of (this.VideoStreamingPlaylists || [])) { 1915 for (const p of (this.VideoStreamingPlaylists || [])) {
1916 const result = videoFilesModelToFormattedJSON(this, p.VideoFiles) 1916 const result = videoFilesModelToFormattedJSON(this, p.VideoFiles, includeMagnet)
1917 files = files.concat(result) 1917 files = files.concat(result)
1918 } 1918 }
1919 1919