@ -658,8 +658,12 @@ async function initializeVideoInfo() {
if ( videoInfo . video _title ) {
if ( videoInfo . video _title ) {
titleElem . value = videoInfo . video _title ;
titleElem . value = videoInfo . video _title ;
} else {
} else {
// If a video title hasn't been set yet, leave it blank.
// Exception: RDPs always use the standard title.
if ( videoInfo . tags . includes ( "RDP" ) ) {
titleElem . value = videoInfo . description ;
titleElem . value = videoInfo . description ;
}
}
}
validateVideoTitle ( ) ;
validateVideoTitle ( ) ;
document . getElementById ( "video-info-title-abbreviated" ) . innerText =
document . getElementById ( "video-info-title-abbreviated" ) . innerText =
videoInfo . title _prefix + titleElem . value ;
videoInfo . title _prefix + titleElem . value ;
@ -668,8 +672,12 @@ async function initializeVideoInfo() {
if ( videoInfo . video _description ) {
if ( videoInfo . video _description ) {
descriptionElem . value = videoInfo . video _description ;
descriptionElem . value = videoInfo . video _description ;
} else {
} else {
// If a video description hasn't been set yet, use the descripton from the row.
// Exception: RDPs start blank because the row is used for the title.
if ( ! videoInfo . tags . includes ( "RDP" ) ) {
descriptionElem . value = videoInfo . description ;
descriptionElem . value = videoInfo . description ;
}
}
}
validateVideoDescription ( ) ;
validateVideoDescription ( ) ;
const tagsElem = document . getElementById ( "video-info-tags" ) ;
const tagsElem = document . getElementById ( "video-info-tags" ) ;