Joseph Milazzo
a0deafe75b
Parser Enhancement: Fallback to Folder name ( #129 )
...
* More cases for parsing regex
* Implemented GetFoldersTillRoot for falling back on parsing when we can't get anything from the filename.
* Implemented a fallback strategy. Not tested on large libraries yet.
* Fallback tested and working great.
* Removed a test case that won't pass and added some trims
2021-03-29 17:37:35 -05:00
Joseph Milazzo
6ebf5d6254
Cleanup and tests fixup
2021-03-23 14:37:47 -05:00
Joseph Milazzo
067b5174ab
Cleaned up tests and began implementation of fallback functionality
2021-03-23 12:59:40 -05:00
Joseph Milazzo
931ecb1437
Removed test data that was too large.
2021-03-23 12:22:50 -05:00
Joseph Milazzo
d73bd22db2
Some code cleanup
2021-03-23 12:22:47 -05:00
Joseph Milazzo
585e965a85
Fixed some bad test cases that really messed up my codebase.
2021-03-23 12:21:09 -05:00
Joseph Milazzo
d543511131
Finished refactoring to SharpCompress.
2021-03-23 12:20:27 -05:00
Joseph Milazzo
126fb57f4d
Fix security issue. SHA1 has collisions, switching to SHA256
2021-03-14 10:23:10 -05:00
Joseph Milazzo
98c23af680
Comment out bad test
2021-03-14 09:59:24 -05:00
Joseph Milazzo
d23a569446
Added a new method for triggering jobs rather than scheduling ad-hoc.
2021-03-14 09:39:48 -05:00
Joseph Milazzo
ecfb40cb2d
Moved some files around, fixed Log file fetching to use zip and work more reliably. Refactored some code in directory service.
2021-02-24 15:58:17 -06:00
Joseph Milazzo
bbb4240e20
Implemented download log files (not in service). Refactored backupservice to handle log file splitting. Improved a few interfaces and added some unit tests around them.
2021-02-24 11:59:16 -06:00
Joseph Milazzo
b4ee16d8d1
Code cleanup. Implemented ability to schedule Library Backups.
2021-02-17 08:58:36 -06:00
Joseph Milazzo
a501e50c98
Clean up and fixed a parsing case.
2021-02-10 12:16:29 -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
077e5f798a
Lots of cleanup
2021-02-07 12:02:47 -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
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
cd67f1ed58
Comment this code out, this is about to be refactored in next branch.
2021-01-25 15:46:05 -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
f737f662df
Added a sorting mechanism to emulate how windows sorts files. Refactored cache to support chapter folders as well.
2021-01-10 12:47:34 -06:00
Joseph Milazzo
6020697d7d
Cleaned up some warnings
2021-01-09 16:22:28 -06:00
Joseph Milazzo
6b4617bab3
Adjusted code to account for folders within directory. Now cover image always gets the first image.
2021-01-09 14:57:31 -06:00
Joseph Milazzo
0a78cffb1f
Removed test case that wasn't supposed to be there.
2021-01-07 12:51:43 -06:00
Joseph Milazzo
0b35ec70fd
Refactored GetCoverImage to create a thumbnail (optional) instead of raw image (raw images are large and bloat API, using thumbnail is indistiguishable); b) Ability to force updating cover images in DB even if they are already set.
2021-01-07 10:30:54 -06:00
Joseph Milazzo
7f5a1d0518
Refactored GetCoverImage to a static class and unit tested it. Enhanced the method by defaulting to folder.jpg file if exists, else takes first entry.
2021-01-05 15:00:49 -06:00