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
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
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
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
2a8931406d
Cleaned up ReaderController to match the new method of loading images in FE. Sends the full files rather than base64 encoded string.
2021-03-09 15:50:17 -06: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
0258c43b37
Added more edge case handling for Library backup
2021-02-17 09:48:42 -06:00
Joseph Milazzo
b4ee16d8d1
Code cleanup. Implemented ability to schedule Library Backups.
2021-02-17 08:58:36 -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
077e5f798a
Lots of cleanup
2021-02-07 12:02:47 -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
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
3c8e4b2240
Cleaned up some warnings and implemented re-occuring scan libraries task. Customization of task schedules is in v0.2.
2021-01-19 14:41:50 -06:00
Joseph Milazzo
e180032a8e
ScanLibrary now respects the library a series belongs to, doesn't reset series every run but updates/removes/inserts as needed.
2021-01-19 14:35:24 -06:00
Joseph Milazzo
44ebca36ec
Cleaned up some TODOs.
2021-01-19 12:51:41 -06:00
Joseph Milazzo
c75feb03e1
Fixed offset bug in GetCachedPagePath for if you've read just one page. Fixed a bad refactor for getting files.
2021-01-19 12:06:45 -06:00
Joseph Milazzo
14e8c3b820
Fixed some APIs that worked mins ago....something strange happening with EF relationships.
2021-01-19 10:45:37 -06:00
Joseph Milazzo
825afd83a2
Removed some dead code on the interfaces. Introduced UnitOfWork to simplify repo injection.
2021-01-18 13:07:48 -06:00
Joseph Milazzo
effdf07cef
Very messy code that implements read status tracking. Needs major cleanup.
2021-01-17 15:05:27 -06:00
Joseph Milazzo
7f404a0ce9
Implemented the ability to flatten directories, esp useful with nested folders in archives.
2021-01-14 10:02:56 -06:00
Joseph Milazzo
56e8a0059e
Implemented ability to delete a series. Refactored some operations to remove unneeded parameters.
2021-01-12 16:51:23 -06:00
Joseph Milazzo
28ce2bbba1
Refactored volume to contain pages and removed /reader/info API endpoint.
2021-01-11 17:36:11 -06:00
Joseph Milazzo
c2b41b774a
Fixed issue where chapter based volumes wouldn't properly handle chapter divide when reading a manga.
2021-01-11 17:11:06 -06:00
Joseph Milazzo
731e3a9c5e
Cache cleanup implemented
2021-01-11 15:39:25 -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
cd8a1d2892
Added a basic cache service to handle interations with the underlying cache implementation. Refactored some code to be more robust.
2021-01-09 16:14:28 -06:00
Joseph Milazzo
59a4921ba9
Refactored ScanLibrary to produce page numbers on the Manga File, Format and to update existing series/volumes rather than always create new entries.
2021-01-09 15:27:04 -06:00
Joseph Milazzo
7bf04dcdac
Implemented the ability to send images to frontend with some contextual information.
2021-01-08 15:17:39 -06:00
Joseph Milazzo
7ab7e8acc4
Implemented the ability to extract an archive image to a cache directory.
2021-01-08 13:28:59 -06:00
Joseph Milazzo
4c40284af2
Changed ScanLibrary to not use optional param due to build issue on Github.
2021-01-08 08:25:07 -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
Andrew Song
451d459473
adding initial coverimage functionality
2021-01-03 19:50:10 -06:00
Joseph Milazzo
7b1714349d
Refactored ScanLibrary to accept and library id rather than DTO. Refactored ScanLibrary to use Task.Run() rather than having synchronous repo methods.
2021-01-02 12:48:48 -06:00
Joseph Milazzo
9168e12483
Refactored Volume to have Name and Number (int) so that we can properly sort and still handle possible split volumes.
...
Refactored ScanLibrary into Library controller and updated it so it adds the new library to all admins.
2021-01-02 12:21:36 -06:00
Joseph Milazzo
d632e53f18
Added ability to automatically track last modified and created timestamps for entities via an interface. DBContext will automatically update for us.
2021-01-02 10:59:52 -06:00
Joseph Milazzo
fa71a40990
Fixed warnings in code
2021-01-01 14:18:29 -06:00
Joseph Milazzo
c429c50ba2
Fixed a bug in ScanLibrary that caused duplicated Volumes. Implemented APIs for navigating down to Volume for webui.
...
This is rough code and needs to be polished and refactored.
2021-01-01 14:04:31 -06:00
Joseph Milazzo
380c3e7b3c
Rough version of Saving Series, Volumes, and MangaFiles to the DB. Relies on Cascaded delete rather than manually handling updating of file changes.
2020-12-30 11:30:12 -06:00
Joseph Milazzo
104c63b2b9
Cleaned up the code from previous enhancements.
2020-12-29 11:01:52 -06:00
Joseph Milazzo
0a49b07570
Implemented a parallelized, rough, scanning loop which parses out information and leaves us with an immutable dictionary mapping series to parsed infos for each file.
...
Added some Entities to help translate this into DB.
2020-12-29 10:47:10 -06:00
Joseph Milazzo
49b4ee0022
Added a new method to search for files against multiple filters, rather than grabbing all files then filtering.
2020-12-27 11:38:07 -06:00
Joseph Milazzo
8c80ed090d
Added basic parsing and unit tests. Setting up an intermediate object to hold information from parser. Removed hangfire db from git.
2020-12-27 11:14:45 -06:00
Joseph Milazzo
4fd9943b91
Added Hangfire with LiteDB for a task running system. At the most basic, this allows us to monitor tasks running on the system (during dev only) and run tasks on a reoccuring or ad-hoc basis.
2020-12-26 14:03:35 -06:00