mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-06 19:04:18 +02:00
Compare commits
2 Commits
1.1.1
...
3e56ef842b
Author | SHA1 | Date | |
---|---|---|---|
3e56ef842b | |||
5a44e3b8b9 |
@ -48,11 +48,10 @@ public class TaskManager
|
|||||||
|
|
||||||
public void UpdateSettings(string? downloadLocation, string? komgaUrl, string? komgaAuth)
|
public void UpdateSettings(string? downloadLocation, string? komgaUrl, string? komgaAuth)
|
||||||
{
|
{
|
||||||
Komga? komga = null;
|
if (komgaUrl is not null && komgaAuth is not null && komgaUrl.Length > 0 && komgaAuth.Length > 0)
|
||||||
if (komgaUrl is not null && komgaAuth is not null)
|
settings.komga = new Komga(komgaUrl, komgaAuth, null);
|
||||||
komga = new Komga(komgaUrl, komgaAuth, null);
|
if (downloadLocation is not null && downloadLocation.Length > 0)
|
||||||
settings.downloadLocation = downloadLocation ?? settings.downloadLocation;
|
settings.downloadLocation = downloadLocation;
|
||||||
settings.komga = komga ?? komga;
|
|
||||||
ExportData();
|
ExportData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ public class TrangaSettings
|
|||||||
|
|
||||||
public TrangaSettings(string downloadLocation, string workingDirectory, Komga? komga)
|
public TrangaSettings(string downloadLocation, string workingDirectory, Komga? komga)
|
||||||
{
|
{
|
||||||
|
if (downloadLocation.Length < 1 || workingDirectory.Length < 1)
|
||||||
|
throw new ArgumentException("Download-location and working-directory paths can not be empty!");
|
||||||
this.workingDirectory = workingDirectory;
|
this.workingDirectory = workingDirectory;
|
||||||
this.downloadLocation = downloadLocation;
|
this.downloadLocation = downloadLocation;
|
||||||
this.komga = komga;
|
this.komga = komga;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
services:
|
version: '3'
|
||||||
|
services:
|
||||||
tranga-api:
|
tranga-api:
|
||||||
image: glax/tranga-api:latest
|
image: glax/tranga-api:latest
|
||||||
container_name: tranga-api
|
container_name: tranga-api
|
||||||
|
Reference in New Issue
Block a user