@ -253,13 +253,11 @@ window.addEventListener("DOMContentLoaded", async (event) => {
} ) ;
} ) ;
const thumbnailTemplateSelection = document . getElementById ( "video-info-thumbnail-template" ) ;
const thumbnailTemplateSelection = document . getElementById ( "video-info-thumbnail-template" ) ;
const thumbnailTemplatesListResponse = await fetch ( "/ files/thumbnail_ templates") ;
const thumbnailTemplatesListResponse = await fetch ( "/ thumbnail- templates") ;
if ( thumbnailTemplatesListResponse . ok ) {
if ( thumbnailTemplatesListResponse . ok ) {
const thumbnailTemplatesList = await thumbnailTemplatesListResponse . json ( ) ;
const thumbnailTemplatesList = await thumbnailTemplatesListResponse . json ( ) ;
for ( const template File Name of thumbnailTemplatesList ) {
for ( const template Name of thumbnailTemplatesList ) {
const templateOption = document . createElement ( "option" ) ;
const templateOption = document . createElement ( "option" ) ;
// Thumbnails are fetched from restreamer with file extensions. The thumbnail name is the file name.
const templateName = templateFileName . substring ( 0 , templateFileName . lastIndexOf ( "." ) ) ;
templateOption . innerText = templateName ;
templateOption . innerText = templateName ;
templateOption . value = templateName ;
templateOption . value = templateName ;
if ( templateName === videoInfo . thumbnail _template ) {
if ( templateName === videoInfo . thumbnail _template ) {