mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-04 09:54:16 +02:00
CheckForNewChaptersWorker
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using API.MangaDownloadClients;
|
||||
using API.Schema.NotificationsContext;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace API;
|
||||
|
||||
@ -50,6 +48,8 @@ public struct TrangaSettings()
|
||||
};
|
||||
public Dictionary<RequestType, int> RequestLimits { get; private set; } = DefaultRequestLimits;
|
||||
|
||||
public string DownloadLanguage { get; private set; } = "en";
|
||||
|
||||
public static TrangaSettings Load()
|
||||
{
|
||||
return JsonConvert.DeserializeObject<TrangaSettings>(File.ReadAllText(settingsFilePath));
|
||||
@ -101,4 +101,10 @@ public struct TrangaSettings()
|
||||
this.FlareSolverrUrl = url;
|
||||
Save();
|
||||
}
|
||||
|
||||
public void SetDownloadLanguage(string language)
|
||||
{
|
||||
this.DownloadLanguage = language;
|
||||
Save();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user