@ -385,6 +385,12 @@ async function initializeVideoInfo() {
modifiedAdvancedOptions = true ;
modifiedAdvancedOptions = true ;
}
}
const publicCheckbox = document . getElementById ( "advanced-submission-option-public" ) ;
publicCheckbox . checked = videoInfo . public ;
if ( ! videoInfo . public ) {
modifiedAdvancedOptions = true ;
}
const uploadLocationSelection = document . getElementById (
const uploadLocationSelection = document . getElementById (
"advanced-submission-option-upload-location"
"advanced-submission-option-upload-location"
) ;
) ;
@ -782,6 +788,7 @@ async function sendVideoData(newState, overrideChanges) {
const videoTitle = document . getElementById ( "video-info-title" ) . value ;
const videoTitle = document . getElementById ( "video-info-title" ) . value ;
const videoTags = document . getElementById ( "video-info-tags" ) . value . split ( "," ) ;
const videoTags = document . getElementById ( "video-info-tags" ) . value . split ( "," ) ;
const allowHoles = document . getElementById ( "advanced-submission-option-allow-holes" ) . checked ;
const allowHoles = document . getElementById ( "advanced-submission-option-allow-holes" ) . checked ;
const isPublic = document . getElementById ( "advanced-submission-option-public" ) . checked ;
const uploadLocation = document . getElementById (
const uploadLocation = document . getElementById (
"advanced-submission-option-upload-location"
"advanced-submission-option-upload-location"
) . value ;
) . value ;
@ -798,6 +805,7 @@ async function sendVideoData(newState, overrideChanges) {
video _tags : videoTags ,
video _tags : videoTags ,
allow _holes : allowHoles ,
allow _holes : allowHoles ,
upload _location : uploadLocation ,
upload _location : uploadLocation ,
public : isPublic ,
video _channel : globalStreamName ,
video _channel : globalStreamName ,
video _quality : videoInfo . video _quality ,
video _quality : videoInfo . video _quality ,
uploader _whitelist : uploaderAllowlist ,
uploader _whitelist : uploaderAllowlist ,