959 Commits

Author SHA1 Message Date
Joseph Milazzo
fb71d54fe6
Misc Fixes and Changes (#927)
* Cleaned up a ton of warnings/suggestions from the IDE.

* Fixed a bug when clearing the filters some presets could be undone.

* Renamed a class in the OPDS spec

* Simplified logic for when Fit To Screen rendering logic occurs. It now works always rather than only on cover images.

* Give some additional info to the user on what the differences between Library Types are

* Don't scan .qpkg folders (QNAP devices)

* Refactored some code to enable ability to test CoverImage Test. This is a broken test, test.zip is waiting on an issue in NetVips.

* Fixed an issue where Extra might get flagged as special too early, if in a word like Extraordinary

* Cleaned up the regex for the extra issue to be more flexible
2022-01-12 15:00:00 -08:00
majora2007
6afc17e93e Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2022-01-09 20:06:55 +00:00
majora2007
1249c94ec3 Bump versions by dotnet-bump-version. 2022-01-09 20:06:55 +00:00
majora2007
c2b009ea26 Bump versions by dotnet-bump-version. 2022-01-09 19:11:14 +00:00
Joseph Milazzo
068b590456
Fixed broken build (#922) 2022-01-09 11:07:04 -08:00
Joseph Milazzo
ab8c762830
Metadata Performance Scan (#921)
* Refactored updating chapter metadata from ComicInfo into the Scan loop. This let's us avoid an additional N file reads (expensive) in the metadata service, as we already have to read them in the scan loop.

* Refactored Series level metadata aggregation into the scan loop. This allows for the batching of DB updates to be much smaller, thus faster without much overhead of GC.

* Refactored some of the code for ProcessFile to remove a few redundant if statements
2022-01-09 10:36:24 -08:00
majora2007
7d5694c767 Bump versions by dotnet-bump-version. 2022-01-09 15:36:51 +00:00
Joseph Milazzo
19562f2300
Last Page Rendering Twice on Web Reader Fix (#920)
* Don't tag a series as completed if count is 0.

* Removed some dead code and added some spacers for when certain fields are disabled so filter section still looks good.

* Fixed a bug where last page of a manga reader would be rendered twice when paging backwards.
2022-01-09 07:32:47 -08:00
majora2007
8eea54c4cd Bump versions by dotnet-bump-version. 2022-01-09 00:35:23 +00:00
Joseph Milazzo
ad3c8bb2c7
Don't tag a series as completed if count is 0. (#917) 2022-01-08 16:31:02 -08:00
majora2007
f4864587bb Bump versions by dotnet-bump-version. 2022-01-09 00:21:23 +00:00
Joseph Milazzo
a2364285b0
Book Reader Issue Take 2 (#916)
* Implemented Publication Status in SeriesMetadata and the ability to filter it.

* Updated the docs for Language on metadata to specify it's a BCP-47 code to match Anansi Project. Fixed a bug with reader from previous PR.
2022-01-08 16:17:04 -08:00
majora2007
194fe8318c Bump versions by dotnet-bump-version. 2022-01-08 21:14:36 +00:00
Joseph Milazzo
2fbcf203aa
Implemented Publication Status in SeriesMetadata and the ability to filter it. (#915) 2022-01-08 13:10:03 -08:00
majora2007
f8e0fb8a27 Bump versions by dotnet-bump-version. 2022-01-08 19:41:24 +00:00
Joseph Milazzo
c5e5aa19d5
Misc Fixes (#914)
* Fixed the book reader off by one issue with loading last page

* Fixed a case where scanner would not delete a series if another series with same name but different format was added in that same scan.

* Added some missing tag generation (chapter language and summary)
2022-01-08 11:36:47 -08:00
majora2007
1557c2f528 Bump versions by dotnet-bump-version. 2022-01-08 15:37:31 +00:00
Joseph Milazzo
bb978484db
Fixed the book reader off by one issue with loading last page (#911) 2022-01-08 07:32:56 -08:00
majora2007
2bd35b33ad Bump versions by dotnet-bump-version. 2022-01-08 14:46:17 +00:00
Joseph Milazzo
0be0e294aa
Metadata Optimizations (#910)
* Added a tooltip to inform user that format and collection filter selections do not only show for the selected library.

* Refactored a lot of code around when we update chapter cover images. Applied an optimization for when we re-calculate volume/series covers, such that it only occurs when the first chapter's image updates.

* Updated code to ensure only lastmodified gets refreshed in metadata since it always follows a scan

* Optimized how metadata is populated on the series. Instead of re-reading the comicInfos, instead I read the data from the underlying chapter entities. This reduces N additional reads AND enables the ability in the future to show/edit chapter level metadata.

* Spelling mistake

* Fixed a concurency issue by not selecting Genres from DB. Added a test for long paths.

* Fixed a bug in filter where collection tag wasn't populating on load

* Cleaned up the logic for changelog to better compare against the installed verison. For nightly users, show the last stable as installed.

* Removed some demo code

* SplitQuery to allow loading tags much faster for series metadata load.
2022-01-08 06:41:47 -08:00
majora2007
c215d5b7a8 Bump versions by dotnet-bump-version. 2022-01-07 15:46:38 +00:00
Joseph Milazzo
426cb7f0be
Fixed a bug where loading page on book reader wouldn't scroll to last position (#907) 2022-01-07 07:42:22 -08:00
majora2007
6afbf5f08f Bump versions by dotnet-bump-version. 2022-01-07 15:02:33 +00:00
Joseph Milazzo
2b57449a63
Book Reader Issues (#906)
* Refactored the Font Escaping Regex with new unit tests.

* Fonts are now properly escaped, somehow a regression was introduced.

* Refactored most of the book page loading for the reader into the service.

* Fixed a bug where going into fullscreen in non dark mode will cause the background of the reader to go black. Fixed a rendering issue with margin left/right screwing html up. Fixed an issue where line-height: 100% would break book's css, now we remove the styles if they are non-valuable.

* Changed how I fixed the black mode in fullscreen

* Fixed an issue where anchors wouldn't be colored blue in white mode

* Fixed a bug in the code that checks if a filename is a cover where it would choose "backcover" as a cover, despite it not being a valid case.

* Validate if ReleaseYear is a valid year and if not, set it to 0 to disable it.

* Fixed an issue where some large images could blow out the screen when reading on mobile. Now images will force to be max of width of browser

* Put my hack back in for fullscreen putting background color to black

* Change forwarded headers from All to explicit names

* Fixed an issue where Scheme was not https when it should have been. Now the browser will handle which scheme to request.

* Cleaned up the user preferences to stack multiple controls onto one row

* Fixed fullscreen scroll issue with progress, but now sticky top is missing.

* Corrected the element on which we fullscreen
2022-01-07 06:56:28 -08:00
majora2007
32bfe46187 Bump versions by dotnet-bump-version. 2022-01-06 14:32:19 +00:00
Joseph Milazzo
837afefb1d
Fixed lack of ability to scroll with fullscreen mode (#903) 2022-01-06 06:27:50 -08:00
majora2007
bd5b199318 Bump versions by dotnet-bump-version. 2022-01-05 23:13:26 +00:00
Joseph Milazzo
6006faa574
Fixed a critical bug where registration was broken for first time flow. Refactored how backup before migrations occured such that it now puts the db in temp. The db will be deleted automatically that night. (#900) 2022-01-05 15:07:54 -08:00
majora2007
1590e4e13d Bump versions by dotnet-bump-version. 2022-01-05 20:52:12 +00:00
Joseph Milazzo
027b8b78e2
Backup on Migrations (#898)
* Refactored how the migrations are run.

* A backup will be performed before any migrations. Added additional guards before a sub-module is loaded.
2022-01-05 12:47:01 -08:00
majora2007
2bf1b96411 Bump versions by dotnet-bump-version. 2022-01-05 19:09:41 +00:00
Joseph Milazzo
70f7f34ac9
Only admins should be able to create new users (#896) 2022-01-05 11:04:45 -08:00
majora2007
c5f69a5d0e Bump versions by dotnet-bump-version. 2022-01-05 18:02:28 +00:00
Joseph Milazzo
a1a6333f09
Bookmark Refactor (#893)
* Fixed a bug which didn't take sort direction when not changing sort field

* Added foundation for Bookmark refactor

* Code broken, need to take a break. Issue is Getting bookmark image needs authentication but UI doesn't send.

* Implemented the ability to send bookmarked files to the web. Implemented ability to clear bookmarks on disk on a re-occuring basis.

* Updated the bookmark design to have it's own card that is self contained. View bookmarks modal has been updated to better lay out the cards.

* Refactored download bookmark codes to select files from bookmark directory directly rather than open underlying files.

* Wrote the basic logic to kick start the bookmark migration.

Added Installed Version into the DB to allow us to know more accurately when to run migrations

* Implemented the ability to change the bookmarks directory

* Updated all references to BookmarkDirectory to use setting from the DB.

Updated Server Settings page to use 2 col for some rows.

* Refactored some code to DirectoryService (hasWriteAccess) and fixed up some unit tests from a previous PR.

* Treat folders that start with ._ as blacklisted.

* Implemented Reset User preferences. Some extra code to prep for the migration.

* Implemented a migration for existing bookmarks to using new filesystem based bookmarks
2022-01-05 09:56:49 -08:00
majora2007
04ffd1ef6f Bump versions by dotnet-bump-version. 2022-01-03 14:22:15 +00:00
Joseph Milazzo
0ef8d47831
Fixed a bug with OPDS feeds not returning back results due to improperly setting up FilterDto. (#882) 2022-01-03 06:17:55 -08:00
majora2007
392dde052c Bump versions by dotnet-bump-version. 2022-01-03 01:14:47 +00:00
Joseph Milazzo
720c52f494
Reader Fixes and Enhancements (#880)
* Don't show an exception when bookmarking doesn't have anything to change.

* Cleaned up the bookmark code a bit.

* Implemented fullscreen mode in the web reader. Refactored User Settings to move Password and 3rd Party Clients to a tab rather than accordion. Removed color filters for web reader.

* Implemented fullscreen mode into book reader

* Added some code for toggling fullscreen which re-renders the screen to ensure the fitting works optimially

* Fixed an issue where moving from FitToScreen -> Split (L/R) wouldn't render the screen correctly due to canvas not being reset.

* Fixed bad optimization and scaling when drawing fit to screen

* Removed left/right highlights on page direction change in favor for icons. Double arrow will dictate the page change.

* Reduced overlay auto close time to 3 seconds

* Updated the paginging direction overlay to use icons and colors. Added a blur effect on menus

* Removed debug flags
2022-01-02 17:10:37 -08:00
therobbiedavis
ca5c67020e Bump versions by dotnet-bump-version. 2021-12-24 18:38:06 +00:00
Robbie Davis
358b674aa9
Added check to see if mount folder is empty (#871)
* Added check for if mount folder is empty

* updating log message

* Adding unit test
2021-12-24 13:33:34 -05:00
majora2007
b4a80f9b65 Bump versions by dotnet-bump-version. 2021-12-20 17:55:03 +00:00
Joseph Milazzo
bbdfe17247
I can't believe it's more fixes! (#863)
* Send stack trace to the UI on prod mode

* Pdfs will now generate cover images. I missed something a few releases ago.

* Ignore @Recently-Snapshot directories for QNAP.

* Refactored Bitmap code to use ImageSharp so it's truly cross platform.

* Updated pdf extraction to use a multi-threaded approach to greatly speed up pdf image extraction

* Hooked in Characters tag from ComicInfo.xml
2021-12-20 11:50:47 -06:00
majora2007
6127f20bb2 Bump versions by dotnet-bump-version. 2021-12-17 22:33:55 +00:00
Joseph Milazzo
d4918ee8ff
More fixes (again) (#858)
* Send stack trace to the UI on prod mode

* Pdfs will now generate cover images. I missed something a few releases ago.
2021-12-17 14:29:41 -08:00
majora2007
c284e4dca0 Bump versions by dotnet-bump-version. 2021-12-17 21:26:44 +00:00
Joseph Milazzo
3a8a786397
Fixed a bug in how to determine if the volume or series updates cover image. (#857) 2021-12-17 13:21:53 -08:00
majora2007
65ab5d53ca Bump versions by dotnet-bump-version. 2021-12-17 18:51:15 +00:00
Joseph Milazzo
12889be788
Fixes v0.4.19! (#855)
* Fixed OPDS urls to work with new Filtering schema

* Fixed a rendering issue with Language tag when it's null

* Fixed a bug where locked covers were resetting during refresh metadata.

* Redid all the migrations and put some extra checks due to a bad migration from previous release (EF Core was producing an error).

* Fixed a bug which didn't take sort direction when not changing sort field

* Default installs now backup daily
2021-12-17 10:46:01 -08:00
majora2007
036aa331d2 Bump versions by dotnet-bump-version. 2021-12-16 22:41:45 +00:00
Joseph Milazzo
9af154ed3f
More Filtering and Support for ComicInfo v2.1 (draft) Tags (#853)
* Added a reoccuring task to cleanup db entries that might be abandoned. On library page, the Library in question will be prepoulated.

* Laid out the foundation for customized sorting. Added all series page to the UI when clicking on Libraries section header on home page so user can apply any filtering they like.

* When filtering, the current library filter will now automatically filter out the options for people and genres.

* Implemented Sorting controls

* Clear now clears sorting and read progress. Sorting is disabled on deck and recently added.

* Fixed an issue where all-series page couldn't click to open series

* Don't let the user unselect the last read progress. Added new comicinfo v2.1 draft tags.

* Hooked in Translator tag into backend and UI.

* Fixed an issue where you could open multiple typeaheads at the same time

* Integrated Translator and Tags ComicInfo extension fields. Started work on a badge expander.

* Reworked a bit more on badge expander. Added the UI code for Age Rating and Tags

* Integrated backend for Tags, Translator, and Age Rating

* Metadata tags now collapse if more than 4 present

* Some code cleanup

* Made the not read badge slightly smaller

* Implemented Language filter. Fixed up some logic around Release Year not being set when month is missing.

* Added a missing file and Updated Filter to use different design for layout

* Fixed up some alignment issues

* Refined the styles further
2021-12-16 14:37:20 -08:00