429 Commits

Author SHA1 Message Date
Joseph Milazzo
02520b8751
Merge pull request #92 from Kareadita/feature/scan-performance
Don't process pages or cover image optimization
2021-03-24 07:52:22 -05:00
Joseph Milazzo
c639b8ca04 Implemented the LastWrite check for Summaries and Series Cover Images. Removed a TODO after validation. 2021-03-24 07:41:52 -05:00
Joseph Milazzo
f85918b5bf When we scan a library, store the last write time for a file so we can skip page calculation if there were no modifications. 2021-03-23 17:28:48 -05:00
Joseph Milazzo
f77b0ec552
Merge pull request #90 from Kareadita/feature/compress-fallback
Compression Fallback
2021-03-23 15:43:13 -05:00
Joseph Milazzo
a176034905 Some smells found in scan. 2021-03-23 15:04:22 -05:00
Joseph Milazzo
44c2af88ea Some security issue found in scan. 2021-03-23 14:51:56 -05:00
Joseph Milazzo
70cc163cb0 More cleanup 2021-03-23 14:41:14 -05:00
Joseph Milazzo
6ebf5d6254 Cleanup and tests fixup 2021-03-23 14:37:47 -05:00
Joseph Milazzo
154b30c3fd Implemented fallback functionality. Try to use System.IO.Compression.ZipArchive then fallback to SharpCompress (which is extremely slow).
Currently this hits disk 3 times per operation, needs performance tuning.
2021-03-23 14:12:28 -05:00
Joseph Milazzo
067b5174ab Cleaned up tests and began implementation of fallback functionality 2021-03-23 12:59:40 -05:00
Joseph Milazzo
f63c38ac23 Dropped the initial commit for this work due to a large file. Had to do some cleanup from a bad merge. 2021-03-23 12:27:04 -05:00
Joseph Milazzo
931ecb1437 Removed test data that was too large. 2021-03-23 12:22:50 -05:00
Joseph Milazzo
d724a8f178 A lot of random changes to try and speed up SharpCompress. 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
b66c6b5714 Fixed some parser unit tests around negative lookaheads 2021-03-23 12:20:30 -05:00
Joseph Milazzo
d543511131 Finished refactoring to SharpCompress. 2021-03-23 12:20:27 -05:00
Joseph Milazzo
16bc83b3c3
Merge pull request #88 from Kareadita/feature/database-task
Clear Database entries after 30 days
2021-03-20 12:55:10 -05:00
Joseph Milazzo
f77de66d97 ContinueReading has been pulled from UI. The query doesn't work and no longer sure I need. 2021-03-20 12:44:18 -05:00
Joseph Milazzo
a125b2ac0b Fixed GetInProgress API - The condition for PagesRead needed to be a sum for all progress, not each row. 2021-03-18 14:18:56 -05:00
Joseph Milazzo
b8cd04e1de Fixed a bad if statment that caused every EnsureCache() call to print cache doesn't exist, even though it does. 2021-03-18 10:51:09 -05:00
Joseph Milazzo
546f12c795 Removed LiteDB and use In Memory Storage for time being. LiteDB was causing the issues in Issue #79. 2021-03-18 08:54:30 -05:00
Joseph Milazzo
4052306c97
Merge pull request #87 from Kareadita/feature/streams
Streams!
2021-03-17 18:18:15 -05:00
Joseph Milazzo
c312e0706f Removed a leftover code for async 2021-03-17 18:07:10 -05:00
Joseph Milazzo
a5069158fa Removed tests. For those cases, I was unable to find a good solution. Users will have to manually map or rename. 2021-03-17 17:47:06 -05:00
Joseph Milazzo
4c6758b9b0 Can't figure out how to implement StartupTask 2021-03-17 17:21:59 -05:00
Joseph Milazzo
e60d84a2c8 Cleanup 2021-03-17 14:31:17 -05:00
Joseph Milazzo
0a85555f38 Temp commit to record attempts. Stream APIs are implemented and working. Added some new test cases based on deployed Kavita server testing. 2021-03-17 14:29:50 -05:00
Joseph Milazzo
55cd0c5fe5 For the time out on tasks, I'm going to only use Hangfire scheduled tasks on prod. 2021-03-15 17:10:09 -05:00
Joseph Milazzo
fad4ca4414 Lots of Hangfire attempts to solve the lock issue. Not sure how to fix it. Added some APIs for streams. 2021-03-15 13:49:13 -05:00
Joseph Milazzo
bb0a59448f Lots of Hangfire attempts to solve the lock issue. Not sure how to fix it. Added some APIs for streams. 2021-03-15 13:49:06 -05:00
Joseph Milazzo
9035b6cc4e Hangfire now dies gracefully when using CTRL+C rather than Stop button in Rider. Implemented one stream method for testing. Regenerated a few migrations due to oversight in index not taking account of library. 2021-03-15 08:43:43 -05:00
Joseph Milazzo
41e54fd833
Merge pull request #86 from Kareadita/feature/streams
Fix security issue. SHA1 has collisions, switching to SHA256
2021-03-14 11:47:33 -05:00
Joseph Milazzo
126fb57f4d Fix security issue. SHA1 has collisions, switching to SHA256 2021-03-14 10:23:10 -05:00
Joseph Milazzo
957f1fcd7f
Merge pull request #85 from Kareadita/feature/streams
Added a new method for triggering jobs rather than scheduling ad-hoc.
2021-03-14 10:07:40 -05:00
Joseph Milazzo
98c23af680 Comment out bad test 2021-03-14 09:59:24 -05:00
Joseph Milazzo
01a5c80b44 workflow issues 2021-03-14 09:51:43 -05:00
Joseph Milazzo
218eb0bc47 Bad copy/paste caused spacing issue 2021-03-14 09:42:27 -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
99e2ea6419
Merge pull request #84 from Kareadita/feature/streams
Oops, some spacing issue
2021-03-14 09:38:38 -05:00
Joseph Milazzo
a7516d313d Rename action to Build 2021-03-14 09:37:34 -05:00
Joseph Milazzo
7d0dd6d303 Oops, some spacing issue 2021-03-14 09:34:16 -05:00
Joseph Milazzo
2097c25a9a Oops, some spacing issue 2021-03-14 09:31:22 -05:00
Joseph Milazzo
8ce733f04c
Merge pull request #83 from Kareadita/feature/streams
Intergrate sonarcloud.io into workflow. Move analysis before Unit tes…
2021-03-14 09:30:15 -05:00
Joseph Milazzo
128975a905 Github actions: trying to fix automated build and scan 2021-03-14 09:29:49 -05:00
Joseph Milazzo
3a4b364658 Github actions: trying to fix automated build and scan 2021-03-14 09:19:01 -05:00
Joseph Milazzo
878c0c1e60 Github actions: trying to fix automated build and scan 2021-03-14 09:15:36 -05:00
Joseph Milazzo
93399dbd5d Github actions: trying to fix automated build and scan 2021-03-14 09:14:40 -05:00
Joseph Milazzo
cfb409558b Github actions: trying to fix automated build and scan 2021-03-14 09:13:34 -05:00
Joseph Milazzo
8b4b31d748 Github actions: trying to fix automated build and scan 2021-03-14 09:12:45 -05:00