Fix FilterJobsWithoutDownloading: Dont check if a job has a connector, that takes forever

This commit is contained in:
2025-06-18 00:11:05 +02:00
parent 776e1e4890
commit ff10432c79

View File

@ -241,8 +241,9 @@ public static class Tranga
private static List<Job> FilterJobsWithoutDownloading(this List<Job> jobs)
{
JobType[] types = [JobType.MoveFileOrFolderJob, JobType.MoveMangaLibraryJob, JobType.UpdateChaptersDownloadedJob];
DateTime start = DateTime.UtcNow;
List<Job> ret = jobs.Where(j => GetJobConnector(j) is null).ToList();
List<Job> ret = jobs.Where(j => types.Contains(j.JobType)).ToList();
DateTime end = DateTime.UtcNow;
Log.Debug($"Filtering Jobs without Download took {end.Subtract(start).TotalMilliseconds}ms");
return ret;