mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-30 11:25:20 -04:00
Bugfixes + Potential iOS Webtoon Reader Fix (#2650)
This commit is contained in:
@@ -12,8 +12,14 @@ public static class CronConverter
|
||||
"daily",
|
||||
"weekly",
|
||||
};
|
||||
public static string ConvertToCronNotation(string source)
|
||||
/// <summary>
|
||||
/// Converts to Cron Notation
|
||||
/// </summary>
|
||||
/// <param name="source">Defaults to daily</param>
|
||||
/// <returns></returns>
|
||||
public static string ConvertToCronNotation(string? source)
|
||||
{
|
||||
if (string.IsNullOrEmpty(source)) return Cron.Daily();
|
||||
return source.ToLower() switch
|
||||
{
|
||||
"daily" => Cron.Daily(),
|
||||
|
||||
Reference in New Issue
Block a user