></my-peertube-checkbox>
<my-peertube-checkbox
- inputName="downloadingEnabled" formControlName="downloadingEnabled"
- i18n-labelText labelText="Disable downloading"
+ inputName="downloadingEnabled" formControlName="downloadingEnabled"
+ i18n-labelText labelText="Disable downloading"
></my-peertube-checkbox>
<my-peertube-checkbox
licence: videoInfo.licence,
language: videoInfo.language,
commentsEnabled: videoInfo.commentsEnabled || false,
- downloadingEnabled: videoInfo.downloadingEnabled || false,
+ downloadingEnabled: videoInfo.downloadingEnabled || true,
waitTranscoding: videoInfo.waitTranscoding || false,
state: CONFIG.TRANSCODING.ENABLED ? VideoState.TO_TRANSCODE : VideoState.PUBLISHED,
nsfw: videoInfo.nsfw || false,
// Default attributes
if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED
if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false
+ if (!isBooleanValid(video.downloadingEnabled)) video.downloadingEnabled = true
return isActivityPubUrlValid(video.id) &&
isVideoNameValid(video.name) &&
if (!program['nsfw']) program['nsfw'] = false
if (!program['privacy']) program['privacy'] = VideoPrivacy.PUBLIC
if (!program['commentsEnabled']) program['commentsEnabled'] = false
-if (!program['downloadingEnabled']) program['downloadingEnabled'] = false
+if (!program['downloadingEnabled']) program['downloadingEnabled'] = true
getSettings()
.then(settings => {