code cleanup (#743)

* update tools

* run code cleanup

* update dependencies
This commit is contained in:
Jason Dove
2022-04-19 17:47:18 -05:00
committed by GitHub
parent e250e93a8e
commit c02b83d0d6
1223 changed files with 5487 additions and 5547 deletions
+1 -1
View File
@@ -165,4 +165,4 @@ public class EmbyService : BackgroundService
request.EmbyLibraryId,
error.Value));
}
}
}
+1 -1
View File
@@ -36,4 +36,4 @@ public class FFmpegLocatorService : IHostedService
}
public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
}
}
+2 -3
View File
@@ -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");
}
}
}
}
+1 -1
View File
@@ -165,4 +165,4 @@ public class JellyfinService : BackgroundService
request.JellyfinLibraryId,
error.Value));
}
}
}
+1 -1
View File
@@ -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);
}
}
}
}
+1 -1
View File
@@ -238,4 +238,4 @@ public class SchedulerService : BackgroundService
private ValueTask DeleteOrphanedArtwork(CancellationToken cancellationToken) =>
_workerChannel.WriteAsync(new DeleteOrphanedArtwork(), cancellationToken);
}
}
+1 -1
View File
@@ -63,4 +63,4 @@ public class SubtitleWorkerService : BackgroundService
_logger.LogInformation("Subtitle worker service shutting down");
}
}
}
}
+1 -1
View File
@@ -115,4 +115,4 @@ public class WorkerService : BackgroundService
_logger.LogInformation("Worker service shutting down");
}
}
}
}