1182 Commits

Author SHA1 Message Date
majora2007
9b8b66f7d6 Bump versions by dotnet-bump-version. 2022-01-15 15:49:12 +00:00
Andrew Mackrodt
3c351b6a82
Fix image aspect ratio in rare case (#935) 2022-01-15 07:45:09 -08:00
majora2007
57e204e697 Bump versions by dotnet-bump-version. 2022-01-15 15:43:45 +00:00
Joseph Milazzo
591b574706
Unit Tests & New Natural Sort (#941)
* Added a lot of tests

* More tests! Added a Parser.NormalizePath to normalize all paths within Kavita.

* Fixed a bug where MarkChaptersAsUnread implementation wasn't consistent between different files and lead to extra row generation for no reason.

* Added more unit tests

* Found a better implementation for Natural Sorting. Added tests and validate it works. Next commit will swap out natural Sort for new Extension.

* Replaced NaturalSortComparer with OrderByNatural.

* Drastically simplified and sped up FindFirstEntry for finding cover images in archives

* Initial fix for a epub bug where metadata defines key as absolute path but document uses a relative path. We now have a hack to correct for the epub.
2022-01-15 07:39:34 -08:00
therobbiedavis
71d42b1c8b Bump versions by dotnet-bump-version. 2022-01-14 20:48:35 +00:00
Robbie Davis
491d9600dd
Performance Enhancements (#937) 2022-01-14 15:42:32 -05:00
majora2007
aeb6d8e983 Bump versions by dotnet-bump-version. 2022-01-13 19:46:06 +00:00
Joseph Milazzo
996c68d753
Feature/parse scanned files tests (#934)
* Fixed a bug in CleanupBookmarks where the Except was deleting all files because the path separators didn't match.

* Added unit tests for ParseScannedFiles.cs.

* Fixed some unit tests. Parser will now clear out multiple spaces in a row and replace with a single.
2022-01-13 11:40:45 -08:00
majora2007
f2bbdaaefc Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2022-01-13 16:21:34 +00:00
majora2007
8c3fdae54b Bump versions by dotnet-bump-version. 2022-01-13 16:21:34 +00:00
majora2007
b12c8d8927 Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2022-01-13 16:18:26 +00:00
majora2007
6d9e5178d3 Bump versions by dotnet-bump-version. 2022-01-13 16:18:26 +00:00
Joseph Milazzo
7eaa0248c3
Fixed a bug in CleanupBookmarks where the Except was deleting all files because the path separators didn't match. (#932) 2022-01-13 08:15:23 -08:00
dependabot[bot]
920f187cd4
Bump follow-redirects from 1.13.0 to 1.14.7 in /UI/Web (#929)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.0 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.0...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-13 08:11:57 -08:00
majora2007
f537c3f9f2 Bump versions by dotnet-bump-version. 2022-01-12 23:04:29 +00:00
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
Joseph Milazzo
7fb41f0945
Fixed a bug with previous hotfix which prevented registration for new users. (#899) v0.4.9.2 2022-01-05 14:59:29 -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
Joseph Milazzo
a6d8c833e6
Only admins should be able to create new users (#895) v0.4.9.1 2022-01-05 10:55:00 -08:00
majora2007
c5f69a5d0e Bump versions by dotnet-bump-version. 2022-01-05 18:02:28 +00:00