Compare commits
No commits in common. "e4f33bcca9463f3a4f985acfa9a1669a84825c11" and "d9b6062767b31ce5bfa362a30ad696419d1afc3b" have entirely different histories.
e4f33bcca9
...
d9b6062767
@ -5,7 +5,7 @@ using Tranga.TrangaTasks;
|
||||
namespace Tranga;
|
||||
|
||||
/// <summary>
|
||||
/// Stores information on Task, when implementing new Tasks also update the serializer
|
||||
/// Stores information on Task
|
||||
/// </summary>
|
||||
public abstract class TrangaTask
|
||||
{
|
||||
@ -80,13 +80,6 @@ public abstract class TrangaTask
|
||||
|
||||
public override bool CanWrite => false;
|
||||
|
||||
/// <summary>
|
||||
/// Don't call this
|
||||
/// </summary>
|
||||
/// <param name="writer"></param>
|
||||
/// <param name="value"></param>
|
||||
/// <param name="serializer"></param>
|
||||
/// <exception cref="Exception"></exception>
|
||||
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
|
||||
{
|
||||
throw new Exception("Dont call this");
|
||||
|
@ -24,8 +24,6 @@ public class DownloadNewChaptersTask : TrangaTask
|
||||
|
||||
foreach(Chapter newChapter in newChapters)
|
||||
connector.DownloadChapter(pub, newChapter);
|
||||
|
||||
this.state = ExecutionState.Waiting;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -16,6 +16,5 @@ public class UpdateKomgaLibraryTask : TrangaTask
|
||||
Komga.KomgaLibrary[] allLibraries = komga.GetLibraries();
|
||||
foreach (Komga.KomgaLibrary lib in allLibraries)
|
||||
komga.UpdateLibrary(lib.id);
|
||||
this.state = ExecutionState.Waiting;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user