code cleanup (#743)
* update tools * run code cleanup * update dependencies
This commit is contained in:
@@ -165,4 +165,4 @@ public class EmbyService : BackgroundService
|
||||
request.EmbyLibraryId,
|
||||
error.Value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,4 +36,4 @@ public class FFmpegLocatorService : IHostedService
|
||||
}
|
||||
|
||||
public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace ErsatzTV.Services;
|
||||
public class FFmpegWorkerService : BackgroundService
|
||||
{
|
||||
private readonly ChannelReader<IFFmpegWorkerRequest> _channel;
|
||||
private readonly ILogger<FFmpegWorkerService> _logger;
|
||||
private readonly IFFmpegSegmenterService _ffmpegSegmenterService;
|
||||
private readonly ILogger<FFmpegWorkerService> _logger;
|
||||
private readonly IServiceScopeFactory _serviceScopeFactory;
|
||||
|
||||
public FFmpegWorkerService(
|
||||
@@ -37,7 +37,6 @@ public class FFmpegWorkerService : BackgroundService
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
switch (request)
|
||||
{
|
||||
case TouchFFmpegSession touchFFmpegSession:
|
||||
@@ -70,4 +69,4 @@ public class FFmpegWorkerService : BackgroundService
|
||||
_logger.LogInformation("FFmpeg worker service shutting down");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,4 +165,4 @@ public class JellyfinService : BackgroundService
|
||||
request.JellyfinLibraryId,
|
||||
error.Value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,4 +162,4 @@ public class PlexService : BackgroundService
|
||||
request.PlexLibraryId,
|
||||
error.Value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,4 +52,4 @@ public class CacheCleanerService : IHostedService
|
||||
}
|
||||
|
||||
public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,4 +29,4 @@ public class DatabaseMigratorService : IHostedService
|
||||
}
|
||||
|
||||
public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,4 +53,4 @@ public class EndpointValidatorService : IHostedService
|
||||
}
|
||||
|
||||
public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public class PlatformSettingsService : IHostedService
|
||||
|
||||
IRuntimeInfo runtimeInfo = scope.ServiceProvider.GetRequiredService<IRuntimeInfo>();
|
||||
if (runtimeInfo != null && runtimeInfo.IsOSPlatform(OSPlatform.Linux) &&
|
||||
System.IO.Directory.Exists("/dev/dri"))
|
||||
Directory.Exists("/dev/dri"))
|
||||
{
|
||||
ILocalFileSystem localFileSystem = scope.ServiceProvider.GetRequiredService<ILocalFileSystem>();
|
||||
IMemoryCache memoryCache = scope.ServiceProvider.GetRequiredService<IMemoryCache>();
|
||||
@@ -40,4 +40,4 @@ public class PlatformSettingsService : IHostedService
|
||||
}
|
||||
|
||||
public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,4 +35,4 @@ public class ResourceExtractorService : IHostedService
|
||||
await resource.CopyToAsync(fs, cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,4 +238,4 @@ public class SchedulerService : BackgroundService
|
||||
|
||||
private ValueTask DeleteOrphanedArtwork(CancellationToken cancellationToken) =>
|
||||
_workerChannel.WriteAsync(new DeleteOrphanedArtwork(), cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,4 +63,4 @@ public class SubtitleWorkerService : BackgroundService
|
||||
_logger.LogInformation("Subtitle worker service shutting down");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,4 +115,4 @@ public class WorkerService : BackgroundService
|
||||
_logger.LogInformation("Worker service shutting down");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user