Scrobbling Polish and Some Scanner fixes (#3638)

Co-authored-by: Fesaa <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
Joe Milazzo 2025-03-15 11:13:01 -05:00 committed by GitHub
parent 82e8f7fade
commit f281a63934
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 658 additions and 102 deletions

View file

@ -236,6 +236,20 @@ public class TaskScheduler : ITaskScheduler
RecurringJobOptions);
}
/// <summary>
/// Removes any Kavita+ Recurring Jobs
/// </summary>
public static void RemoveKavitaPlusTasks()
{
RecurringJob.RemoveIfExists(CheckScrobblingTokensId);
RecurringJob.RemoveIfExists(LicenseCheckId);
RecurringJob.RemoveIfExists(ProcessScrobblingEventsId);
RecurringJob.RemoveIfExists(ProcessProcessedScrobblingEventsId);
RecurringJob.RemoveIfExists(KavitaPlusDataRefreshId);
RecurringJob.RemoveIfExists(KavitaPlusStackSyncId);
RecurringJob.RemoveIfExists(KavitaPlusWantToReadSyncId);
}
#region StatsTasks