|
|
|
@ -17,6 +17,7 @@ namespace RTMPDash {
|
|
|
|
|
public const string CopyrightEmail = "chaosstream-copyright@zotan.email"; |
|
|
|
|
public const string AbuseEmail = "chaosstream-abuse@zotan.email"; |
|
|
|
|
public const string ServiceAnnouncementUrl = "https://t.me/chaosstream"; |
|
|
|
|
public const string ServiceStatusUrl = "https://status.chaos.stream"; |
|
|
|
|
|
|
|
|
|
public const string ContactInfo = |
|
|
|
|
"<a href=\"https://t.me/zotan\" target=\"_blank\">Telegram</a>, <a href=\"https://threema.id/S59S9U8J\" target=\"_blank\">Threema</a>, or via <a href=\"mailto:chaosstream-contact@zotan.email\" target=\"_blank\">email</a>."; |
|
|
|
@ -27,14 +28,11 @@ namespace RTMPDash {
|
|
|
|
|
CreateHostBuilder(args).Build().Run(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) |
|
|
|
|
.ConfigureWebHostDefaults(webBuilder => { |
|
|
|
|
webBuilder.UseStartup<Startup>(); |
|
|
|
|
}); |
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args) => |
|
|
|
|
Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class TimeExtensions { |
|
|
|
|
public static TimeSpan StripMilliseconds(this TimeSpan time) => |
|
|
|
|
new(time.Days, time.Hours, time.Minutes, time.Seconds); |
|
|
|
|
public static TimeSpan StripMilliseconds(this TimeSpan time) => new(time.Days, time.Hours, time.Minutes, time.Seconds); |
|
|
|
|
} |
|
|
|
|
} |