Restart unless stopped

This commit is contained in:
Mike Nolan 2024-10-19 00:38:52 -05:00
parent b2925d64e0
commit f21e23735d
1 changed files with 2 additions and 0 deletions

View File

@ -145,8 +145,10 @@ public class TYTDServer : Server
} }
public override async Task GetAsync(ServerContext ctx) public override async Task GetAsync(ServerContext ctx)
{ {
Console.WriteLine(ctx.UrlPath);
if(onlyVideos) if(onlyVideos)
{ {
string url=ctx.UrlPath.Substring(1); string url=ctx.UrlPath.Substring(1);
stk?.Push(url); stk?.Push(url);
await ctx.SendTextAsync("<script>window.history.back();</script>"); await ctx.SendTextAsync("<script>window.history.back();</script>");