diff --git a/MediaFeeder/MediaFeeder/Program.cs b/MediaFeeder/MediaFeeder/Program.cs index b31ad91..670c99e 100644 --- a/MediaFeeder/MediaFeeder/Program.cs +++ b/MediaFeeder/MediaFeeder/Program.cs @@ -111,7 +111,6 @@ builder.Services.AddProblemDetails(); builder.Services.AddEndpointsApiExplorer(); - builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); @@ -165,6 +164,14 @@ RequestPath = new PathString("/media") }); +var tvRoot = app.Configuration.GetValue("TVRoot"); +if (tvRoot != null) + app.UseStaticFiles(new StaticFileOptions() + { + FileProvider = new PhysicalFileProvider(tvRoot), + RequestPath = new PathString("/tv") + }); + app.MapStaticAssets(); app.MapControllers(); app.MapRazorComponents() diff --git a/MediaFeeder/MediaFeeder/Providers/DownloadedVideoFrame.razor b/MediaFeeder/MediaFeeder/Providers/DownloadedVideoFrame.razor index 4d43011..b10b838 100644 --- a/MediaFeeder/MediaFeeder/Providers/DownloadedVideoFrame.razor +++ b/MediaFeeder/MediaFeeder/Providers/DownloadedVideoFrame.razor @@ -2,8 +2,6 @@ @using AntDesign @inherits VideoFrame -

DownloadedVideoFrame

- @if (Video != null) { @if (Video.DownloadedPath != null)