We happy? We happy. Thanks ReSharper
This commit is contained in:
parent
9d104b25f8
commit
08e0fe7c71
@ -130,6 +130,7 @@ public static class Tranga_Cli
|
|||||||
selection = Console.ReadKey().Key;
|
selection = Console.ReadKey().Key;
|
||||||
taskManager.Shutdown(selection == ConsoleKey.Y);
|
taskManager.Shutdown(selection == ConsoleKey.Y);
|
||||||
}else
|
}else
|
||||||
|
// ReSharper disable once RedundantArgumentDefaultValue Better readability
|
||||||
taskManager.Shutdown(false);
|
taskManager.Shutdown(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,7 +161,7 @@ public static class Tranga_Cli
|
|||||||
int tIndex = 0;
|
int tIndex = 0;
|
||||||
Console.WriteLine($"Tasks (Running/Total): {taskRunningCount}/{taskCount}");
|
Console.WriteLine($"Tasks (Running/Total): {taskRunningCount}/{taskCount}");
|
||||||
foreach(TrangaTask trangaTask in tasks)
|
foreach(TrangaTask trangaTask in tasks)
|
||||||
Console.WriteLine($"{tIndex++:000}: {trangaTask.ToString()}");
|
Console.WriteLine($"{tIndex++:000}: {trangaTask}");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ExecuteTaskNow(TaskManager taskManager)
|
private static void ExecuteTaskNow(TaskManager taskManager)
|
||||||
|
@ -98,6 +98,7 @@ public abstract class Connector
|
|||||||
/// <param name="imageUrls">List of URLs to download Images from</param>
|
/// <param name="imageUrls">List of URLs to download Images from</param>
|
||||||
/// <param name="saveArchiveFilePath">Full path to save archive to (without file ending .cbz)</param>
|
/// <param name="saveArchiveFilePath">Full path to save archive to (without file ending .cbz)</param>
|
||||||
/// <param name="downloadClient">DownloadClient of the connector</param>
|
/// <param name="downloadClient">DownloadClient of the connector</param>
|
||||||
|
/// <param name="comicInfoPath">Path of the generate Chapter ComicInfo.xml, if it was generated</param>
|
||||||
protected static void DownloadChapterImages(string[] imageUrls, string saveArchiveFilePath, DownloadClient downloadClient, string? comicInfoPath = null)
|
protected static void DownloadChapterImages(string[] imageUrls, string saveArchiveFilePath, DownloadClient downloadClient, string? comicInfoPath = null)
|
||||||
{
|
{
|
||||||
//Check if Publication Directory already exists
|
//Check if Publication Directory already exists
|
||||||
|
@ -8,7 +8,9 @@ namespace Tranga;
|
|||||||
public readonly struct Publication
|
public readonly struct Publication
|
||||||
{
|
{
|
||||||
public string sortName { get; }
|
public string sortName { get; }
|
||||||
|
// ReSharper disable UnusedAutoPropertyAccessor.Global we need it, trust
|
||||||
[JsonIgnore]public string[,] altTitles { get; }
|
[JsonIgnore]public string[,] altTitles { get; }
|
||||||
|
// ReSharper disable trice MemberCanBePrivate.Global, trust
|
||||||
public string? description { get; }
|
public string? description { get; }
|
||||||
public string[] tags { get; }
|
public string[] tags { get; }
|
||||||
public string? posterUrl { get; }
|
public string? posterUrl { get; }
|
||||||
@ -47,6 +49,7 @@ public readonly struct Publication
|
|||||||
//Only for series.json
|
//Only for series.json
|
||||||
private struct SeriesInfo
|
private struct SeriesInfo
|
||||||
{
|
{
|
||||||
|
// ReSharper disable once UnusedAutoPropertyAccessor.Local we need it, trust
|
||||||
[JsonRequired]public Metadata metadata { get; }
|
[JsonRequired]public Metadata metadata { get; }
|
||||||
public SeriesInfo(Metadata metadata) => this.metadata = metadata;
|
public SeriesInfo(Metadata metadata) => this.metadata = metadata;
|
||||||
}
|
}
|
||||||
@ -54,6 +57,7 @@ public readonly struct Publication
|
|||||||
//Only for series.json what an abomination, why are all the fields not-null????
|
//Only for series.json what an abomination, why are all the fields not-null????
|
||||||
private struct Metadata
|
private struct Metadata
|
||||||
{
|
{
|
||||||
|
// ReSharper disable UnusedAutoPropertyAccessor.Local we need it, trust
|
||||||
[JsonRequired] public string type { get; }
|
[JsonRequired] public string type { get; }
|
||||||
[JsonRequired] public string publisher { get; }
|
[JsonRequired] public string publisher { get; }
|
||||||
// ReSharper disable twice IdentifierTypo
|
// ReSharper disable twice IdentifierTypo
|
||||||
|
@ -7,6 +7,8 @@ namespace Tranga;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class TrangaTask
|
public class TrangaTask
|
||||||
{
|
{
|
||||||
|
// ReSharper disable once CommentTypo ...tell me why!
|
||||||
|
// ReSharper disable once MemberCanBePrivate.Global I want it thaaat way
|
||||||
public TimeSpan reoccurrence { get; }
|
public TimeSpan reoccurrence { get; }
|
||||||
public DateTime lastExecuted { get; set; }
|
public DateTime lastExecuted { get; set; }
|
||||||
public string connectorName { get; }
|
public string connectorName { get; }
|
||||||
|
Loading…
Reference in New Issue
Block a user