31 lines
774 B
C#
31 lines
774 B
C#
using Tesses.WebServer;
|
|
using Scriban;
|
|
using System.Web;
|
|
using YoutubeExplode.Search;
|
|
using System.Collections.Concurrent;
|
|
using System.Security.Cryptography;
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
namespace Tesses.YouTubeDownloader2025Companion;
|
|
|
|
public static partial class Pages {
|
|
|
|
|
|
private static ReloadingScript settings_page = new ReloadingScript("wwwroot/pages/settings.sbnhtml");
|
|
|
|
public static string Settings(ServerContext ctx)
|
|
{
|
|
bool tytdthumbnail = false;
|
|
lock(Program.MyLockObject)
|
|
{
|
|
tytdthumbnail = Program.Config?.ThumbnailsThroughTYTD ?? false;
|
|
}
|
|
|
|
return Components.Shell("Settings", settings_page.Render(new
|
|
{
|
|
Tytdthumbnail=tytdthumbnail
|
|
}),Program.DefaultLinks(3));
|
|
}
|
|
|
|
} |