139 Commits

Author SHA1 Message Date
Joseph Milazzo
a6b49052b9 Added a conditional check on bookmark API to ensure we don't over or under set progress vs chapter's pages. 2021-02-11 15:49:58 -06:00
Joseph Milazzo
7eb62376eb Removed some extra code that was not needed in parallelization code. 2021-02-10 15:18:52 -06:00
Joseph Milazzo
5ee27b5e7b
Merge pull request #56 from Kareadita/feature/scan-parallelize
Parallelize ScanLibrary
2021-02-10 14:21:16 -06:00
Joseph Milazzo
726cc8dcb9 Parallelize scanlibrary 2021-02-10 14:15:58 -06:00
Joseph Milazzo
903811d05f
Merge pull request #55 from Kareadita/feature/partials
Partial Chapter support + ScanLibrary rewrite
2021-02-10 12:54:56 -06:00
Joseph Milazzo
5b5c1e758f Small performance enhancement on fetching library only once. 2021-02-10 12:36:25 -06:00
Joseph Milazzo
a501e50c98 Clean up and fixed a parsing case. 2021-02-10 12:16:29 -06:00
Joseph Milazzo
aaedb11836 Scanner Service is working perfectly and optimized to the baseline. Next step is to multithread the series generation. 2021-02-10 11:31:27 -06:00
Joseph Milazzo
40154c8d63 Temp stop point. Rewrote the Scanner service to be much cleaner and slightly more efficient. Code is structured so it can easily be multithreaded. 2021-02-09 15:03:02 -06:00
Joseph Milazzo
5c913ba615 Further changes around ScanLibrary. Refactored DirectoryService search pattern to allow for greater re-usability. Fixed a bug where leftover chapters and volumes wouldn't get cleaned up when removed from disk. 2021-02-09 09:22:26 -06:00
Joseph Milazzo
d8d01ffaf6 More refactoring around ScannerService. Moved metadata into its own service. Focusing on cleaning up ScanLibrary code to work 100%. 2021-02-08 16:44:18 -06:00
Joseph Milazzo
9461b89725 A hefty refactor of the ScanLibrary code. There were significant fallouts due to duplicate entities getting created and SingleOrDefaults failing. 2021-02-08 12:03:52 -06:00
Joseph Milazzo
39fa750d96 Enhanced the parser to handle more cases and implement some negative lookups when being greedy. 2021-02-08 10:53:59 -06:00
Joseph Milazzo
57f74d3de3 Implemented partial chapter support. Fixed some edge case where if library scan was skipped due to no modififcation on disk, whole library would be removed. Removed above code for testing. 2021-02-07 13:07:07 -06:00
Joseph Milazzo
b30560fdda
Merge pull request #49 from Kareadita/feature/settings-continued
User Preferences
2021-02-07 12:10:13 -06:00
Joseph Milazzo
077e5f798a Lots of cleanup 2021-02-07 12:02:47 -06:00
Joseph Milazzo
bd5a1338c4 Fixed a deployment bug where we weren't listening on port properly. New way will force firewall exception dialog on Windows and work across board. Implemented user preferences and ability to update them. 2021-02-06 13:08:48 -06:00
Joseph Milazzo
3548a3811c
Merge pull request #46 from Kareadita/feature/compress-overhaul
server settings
2021-02-04 17:55:29 -06:00
Joseph Milazzo
e9dfc1bda0 Fixed a bug in IsImage and IsArchive where I was using a contains instead of matching the regex. 2021-02-04 17:39:24 -06:00
Joseph Milazzo
10c8ea34fe Cleanup after feature implementation. 2021-02-04 17:01:37 -06:00
Joseph Milazzo
1050fa4e54 Ability to update settings. Take effect on next reboot. 2021-02-04 16:49:48 -06:00
Joseph Milazzo
e60f795410 Refactored Cache Cleanup code. 2021-02-02 09:40:26 -06:00
Joseph Milazzo
0f82b45b9d Refactored Cache Cleanup code. 2021-02-02 09:38:10 -06:00
Joseph Milazzo
53e85317f9 Refactored DB to be Series->Volumes->Chapters instead. All functionality that previously worked still works. Cleanup still needed. 2021-02-01 09:29:11 -06:00
Joseph Milazzo
a42e54a078 Lots of work for chapters. This code will be refactored in a chapter rewrite. 2021-01-27 14:14:16 -06:00
Joseph Milazzo
f430595d11 Attempted to Test CacheService, but can't figure it out. 2021-01-26 14:35:50 -06:00
Joseph Milazzo
1d61d1057e Refactored and cleaned up GetCoverImage code. 2021-01-26 10:45:44 -06:00
Joseph Milazzo
ec64bf90c0 Moved the test data around so more tests can use it properly. Added a IsValidArchive that is re-usable for all archive methods. 2021-01-26 10:32:07 -06:00
Joseph Milazzo
6621730afb Refactored more archive code into the service and updated documentation now that methods are public. 2021-01-26 10:03:06 -06:00
Joseph Milazzo
6b76c8b211 Refactored archive code into a service so that I can write tests for it. 2021-01-26 09:55:15 -06:00
Joseph Milazzo
07fd959b22 Fixed some errors being thrown when not needed on Cache.Ensure(). Added ability to send actual mangafile information on the volume() api so we can display to the user. 2021-01-26 07:55:40 -06:00
Joseph Milazzo
c57b77f092 Cleanup and moved a test to proper place 2021-01-25 18:22:27 -06:00
Joseph Milazzo
165757d338 Removed sharpcompress code. 2021-01-25 18:18:24 -06:00
Joseph Milazzo
6cc11d5c4c Tried SharpCompress but had 20x speed decrement. Not using. 2021-01-25 18:18:07 -06:00
Joseph Milazzo
e7f2baaa94
Merge pull request #42 from Kareadita/feature/server-settings
server settings + Lots of Regex
2021-01-25 16:11:12 -06:00
Joseph Milazzo
51d4014e11 Forgot to fix some unit tests. 2021-01-25 16:04:52 -06:00
Joseph Milazzo
cd67f1ed58 Comment this code out, this is about to be refactored in next branch. 2021-01-25 15:46:05 -06:00
Joseph Milazzo
21f6889b99 Fixed a bug where scanned series weren't all being saved due to threads conflicting with each other. 2021-01-25 15:39:29 -06:00
Joseph Milazzo
ae6682f011 Fixed a small bug due to missing a file when I committed nullable to different branch. 2021-01-25 14:49:10 -06:00
Joseph Milazzo
fe88467d8b More regex tweaking and use cases for real library. 2021-01-25 14:45:23 -06:00
Joseph Milazzo
7cd0b80ac2 More regex tweaking and use cases for real library. 2021-01-24 14:08:09 -06:00
Joseph Milazzo
8498d25aa7 Fixed some use cases where Edition tags weren't being cleaned up. 2021-01-24 10:57:09 -06:00
Joseph Milazzo
6097a2acf0 Some crazy regex for parsing chapters for poorly named files. 2021-01-24 10:37:02 -06:00
Joseph Milazzo
8683c81361 There is a theme...more regex changes. Moved the logic around parsing and falling back into Parser.Parse() and setup testing for it. 2021-01-24 10:05:53 -06:00
Joseph Milazzo
a315feb569 More Parser tests and more cases! Added ability to parse Editions for Manga (Omnibus, Color, etc). To be stripped from Series if present. Future can be stored on MangaFile. 2021-01-24 08:34:57 -06:00
Joseph Milazzo
9030b8de96 More Parser tests and more cases! 2021-01-23 18:45:14 -06:00
Joseph Milazzo
a057e3ce1d Lots of bug fixes around publishing and handling weird cases on a real manga library. Implemented ability to have Volumes number 0 aka just latest chapters. Refactored DirectoryService code for scanning into it's own service. Lots of debug code, will be cleaned up later. 2021-01-23 17:44:48 -06:00
Joseph Milazzo
be6d4f2d09 Removed SSL. When shipping, we will encourage using Reverse Proxy. 2021-01-23 09:22:54 -06:00
Joseph Milazzo
18385a4f80 Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit) 2021-01-23 09:01:10 -06:00
Joseph Milazzo
8220709b4c Implemented ability to reset a user's password. 2021-01-21 11:15:42 -06:00