diff --git a/.vs/youtube-downloader/v16/.suo b/.vs/youtube-downloader/v16/.suo index 10a16bf..24600ed 100644 Binary files a/.vs/youtube-downloader/v16/.suo and b/.vs/youtube-downloader/v16/.suo differ diff --git a/Program.cs b/Program.cs index 41bdbea..a28710c 100644 --- a/Program.cs +++ b/Program.cs @@ -153,6 +153,12 @@ namespace youtube_downloader string json = JsonConvert.SerializeObject(Server.Functions.Downloader.GetProgress()); rp.AsText(json, "application/json"); }); + Route.Add("/api/Watch/{VideoId}", (rq, rp, args) => + { + var txt = Templating.RenderFile(Path.Combine(webSitePath, "watch_page.thtml"), args); //populate template + rp.AsText(txt); + }); + Route.Add("/api/Redownload", (rq, rp, args) => { foreach (var item in Directory.GetFiles(Server.Functions.Downloader.DL.GetPath(true, "Info"), "*.json")) diff --git a/bin/Debug/youtube-downloader.exe b/bin/Debug/youtube-downloader.exe index 5c09ed9..66e8f0a 100644 Binary files a/bin/Debug/youtube-downloader.exe and b/bin/Debug/youtube-downloader.exe differ diff --git a/bin/Debug/youtube-downloader.pdb b/bin/Debug/youtube-downloader.pdb index a50f2fa..cd63ab1 100644 Binary files a/bin/Debug/youtube-downloader.pdb and b/bin/Debug/youtube-downloader.pdb differ diff --git a/obj/Debug/youtube-downloader.exe b/obj/Debug/youtube-downloader.exe index 5c09ed9..66e8f0a 100644 Binary files a/obj/Debug/youtube-downloader.exe and b/obj/Debug/youtube-downloader.exe differ diff --git a/obj/Debug/youtube-downloader.pdb b/obj/Debug/youtube-downloader.pdb index a50f2fa..cd63ab1 100644 Binary files a/obj/Debug/youtube-downloader.pdb and b/obj/Debug/youtube-downloader.pdb differ