diff options
author | Lucas Declercq <lucas.declercq@ineat-conseil.fr> | 2018-10-06 19:17:21 +0200 |
---|---|---|
committer | Lucas Declercq <lucas.declercq@ineat-conseil.fr> | 2018-10-06 19:17:39 +0200 |
commit | 156c50af3085468a47b8ae73fe8cfcae46b42398 (patch) | |
tree | f316355ebea2550c201a880cfc9f9b724bf0f7fd /server/tools | |
parent | 35d50b7dd26b3cf646b8845784927bb1ef18dfb3 (diff) | |
download | PeerTube-156c50af3085468a47b8ae73fe8cfcae46b42398.tar.gz PeerTube-156c50af3085468a47b8ae73fe8cfcae46b42398.tar.zst PeerTube-156c50af3085468a47b8ae73fe8cfcae46b42398.zip |
Add downloadingEnabled property to video model
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/peertube-import-videos.ts | 1 | ||||
-rw-r--r-- | server/tools/peertube-upload.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts index 13090a028..675c621df 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts | |||
@@ -212,6 +212,7 @@ async function uploadVideoOnPeerTube (videoInfo: any, videoPath: string, cwd: st | |||
212 | nsfw: isNSFW(videoInfo), | 212 | nsfw: isNSFW(videoInfo), |
213 | waitTranscoding: true, | 213 | waitTranscoding: true, |
214 | commentsEnabled: true, | 214 | commentsEnabled: true, |
215 | downloadingEnabled: true, | ||
215 | description: videoInfo.description || undefined, | 216 | description: videoInfo.description || undefined, |
216 | support: undefined, | 217 | support: undefined, |
217 | tags, | 218 | tags, |
diff --git a/server/tools/peertube-upload.ts b/server/tools/peertube-upload.ts index 6248fb47d..e7b885a38 100644 --- a/server/tools/peertube-upload.ts +++ b/server/tools/peertube-upload.ts | |||
@@ -30,6 +30,7 @@ if (!program['tags']) program['tags'] = [] | |||
30 | if (!program['nsfw']) program['nsfw'] = false | 30 | if (!program['nsfw']) program['nsfw'] = false |
31 | if (!program['privacy']) program['privacy'] = VideoPrivacy.PUBLIC | 31 | if (!program['privacy']) program['privacy'] = VideoPrivacy.PUBLIC |
32 | if (!program['commentsEnabled']) program['commentsEnabled'] = false | 32 | if (!program['commentsEnabled']) program['commentsEnabled'] = false |
33 | if (!program['downloadingEnabled']) program['downloadingEnabled'] = false | ||
33 | 34 | ||
34 | getSettings() | 35 | getSettings() |
35 | .then(settings => { | 36 | .then(settings => { |
@@ -116,6 +117,7 @@ async function run () { | |||
116 | description: program['videoDescription'], | 117 | description: program['videoDescription'], |
117 | tags: program['tags'], | 118 | tags: program['tags'], |
118 | commentsEnabled: program['commentsEnabled'], | 119 | commentsEnabled: program['commentsEnabled'], |
120 | downloadingEnabled: program['downloadingEnabled'], | ||
119 | fixture: program['file'], | 121 | fixture: program['file'], |
120 | thumbnailfile: program['thumbnail'], | 122 | thumbnailfile: program['thumbnail'], |
121 | previewfile: program['preview'], | 123 | previewfile: program['preview'], |