TYTD w api

This commit is contained in:
Michael Nolan 2021-12-08 01:24:25 -06:00
parent dc99b89fc3
commit 9d4c029572
6 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<Properties StartupConfiguration="{E26F8159-6B4B-4660-A7A4-D0333DFEF0DD}|Default" NuGet.AddPackagesDialog.IncludePrerelease="True">
<MonoDevelop.Ide.Workbench ActiveDocument="youtube-downloader.csproj">
<MonoDevelop.Ide.Workbench ActiveDocument="Program.cs">
<Files>
<File FileName="TYTD.Api/Server/Models/InfoType.cs" Line="20" Column="16" />
<File FileName="TYTD.Api/Server/Functions/Downloader.cs" Line="357" Column="23" />
@ -7,8 +7,8 @@
<File FileName="TYTD.Api/Server/Models/SavedVideo.cs" Line="28" Column="10" />
<File FileName="TYTD.Api/Server/Models/InfomationQueueItem.cs" Line="9" Column="1" />
<File FileName="TYTD.Api/Server/Functions/ffmpeg.cs" Line="5" Column="15" />
<File FileName="Program.cs" Line="98" Column="30" />
<File FileName="TYTD.Api/MyClass.cs" Line="120" Column="8" />
<File FileName="Program.cs" Line="458" Column="37" />
<File FileName="TYTD.Api/MyClass.cs" Line="140" Column="50" />
<File FileName="TYTD.Api/Server/Models/SavedChannel.cs" Line="6" Column="10" />
<File FileName="TYTD.Api/Server/Models/SavedPlaylist.cs" Line="7" Column="1" />
<File FileName="TYTD.Api/Server/Models/VideoDownloadProgress.cs" Line="7" Column="16" />
@ -19,16 +19,14 @@
<State name="__root__">
<Node name="youtube-downloader" expanded="True">
<Node name="TYTD.Api" expanded="True">
<Node name="Packages" expanded="True" />
<Node name="Properties" expanded="True" />
<Node name="Server" expanded="True">
<Node name="Functions" expanded="True" />
<Node name="Models" expanded="True" />
</Node>
<Node name="MyClass.cs" selected="True" />
</Node>
<Node name="youtube-downloader" expanded="True">
<Node name="Packages" expanded="True" />
<Node name="Program.cs" selected="True" />
</Node>
</Node>
</State>

View File

@ -98,7 +98,7 @@ namespace TYTD
ApiLoader.Init();
/* Other */
Route.Add("/", (HttpAction)Index);
Route.Add("/", (HttpAction)Extensions);
Route.Add("/extensions.html", (HttpAction)Extensions);
Route.Add("/{Path}", (HttpAction)RootPath);
Console.CancelKeyPress += (sender, e) => { ApiLoader.Dispose();var date = DateTime.Now.ToString("yyyyMMdd_HHmmss");File.WriteAllText(Path.Combine("config","queues-close",$"{date}.json"), Downloader.GetQueue()); return; };

Binary file not shown.