Preparation for Release (#2135)
* Don't allow Comic libraries to do any scrobbling as there aren't any Comic scrobbling providers yet. * Fixed a bug where if you have multiple libraries pointing the same folder (for whatever reason), the Scan Folder api could be rejected. * Handle if publication from an epub is empty to avoid a bad parse error * Cleaned up some hardcoded default strings. * Fixed up some defaulting code for the cache size. * Changed how moving something back to on deck works after it's been removed. Now any progress will trigger it, as epubs don't have chapters. * Ignore .caltrash, which is a Calibre managed folder, when scanning. * Added the ability to see Volume Last Read Date (or individual chapter) in details drawer. Hover over the clock for the full timestamp.
This commit is contained in:
parent
8a6b58d1f8
commit
ed4f9e0144
18 changed files with 66 additions and 40 deletions
|
@ -284,7 +284,7 @@ public static class Configuration
|
|||
var json = File.ReadAllText(filePath);
|
||||
var jsonObj = JsonSerializer.Deserialize<AppSettings>(json);
|
||||
|
||||
return jsonObj.Cache;
|
||||
return jsonObj.Cache == 0 ? DefaultCacheMemory : jsonObj.Cache;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -324,13 +324,13 @@ public static class Configuration
|
|||
{
|
||||
public string TokenKey { get; set; }
|
||||
// ReSharper disable once MemberHidesStaticFromOuterClass
|
||||
public int Port { get; set; }
|
||||
public int Port { get; set; } = DefaultHttpPort;
|
||||
// ReSharper disable once MemberHidesStaticFromOuterClass
|
||||
public string IpAddresses { get; set; } = string.Empty;
|
||||
// ReSharper disable once MemberHidesStaticFromOuterClass
|
||||
public string BaseUrl { get; set; }
|
||||
// ReSharper disable once MemberHidesStaticFromOuterClass
|
||||
public long Cache { get; set; }
|
||||
public long Cache { get; set; } = DefaultCacheMemory;
|
||||
// ReSharper disable once MemberHidesStaticFromOuterClass
|
||||
public string XFrameOrigins { get; set; } = DefaultXFrameOptions;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue