355 Commits

Author SHA1 Message Date
Joseph Milazzo
1036c731ad
When performing a download, if there is only 1 file, don't zip it and send back the raw file. (#315) 2021-06-18 09:49:19 -05:00
Joseph Milazzo
6e1b227e65
Transaction Support (#309)
* Added transactions to UnitOfWork and refactored code to use it.

* This included blank UI fix from Kavita-webui
2021-06-18 07:37:48 -05:00
Joseph Milazzo
d2e444910d
Update FUNDING.yml
Updated link
2021-06-17 18:08:22 -05:00
Joseph Milazzo
a9db07e7ff
Create FUNDING.yml
Updated link to be shorter
2021-06-17 18:07:51 -05:00
Joseph Milazzo
95db721508
Create FUNDING.yml 2021-06-17 18:06:53 -05:00
Joseph Milazzo
becf2ec7a6
Changed how series parsing works. Now at the end of the Parse() call, if we still haven't figured out the Series, we will default to taking the file name and cleaning it. This allows files that have no numbers to be picked up. (#310)
Series Parsing now, at the end of the Parse() call if we still haven't figured out the Series, will default to taking the file name and cleaning it. This allows files that have no numbers to be picked up.
2021-06-16 10:58:50 -05:00
Joseph Milazzo
d02d2d3cb5
Epub 3.2 Collection Tag support (#308)
* Hooked up logic for collections based on EPUB3.2 Spec and Fixed improper tags in EPUBs since it is XML and we are using HTML to parse it.

* Fixed a bug with src:url url replacing so that it's much cleaner regex
2021-06-15 09:51:37 -05:00
Joseph Milazzo
584348c6ad
Special Marker Changes (#306)
* SP# is now a way to force the file to be a special rather than pushing it into a Specials folder.

* Made it so if there is a Special (for any Parse call), volume and chapters will be ignored.

* Fixed a unit test missing Theory and fixed a regex case
2021-06-14 21:12:37 -05:00
Joseph Milazzo
46b60405b1
Special Markers (#305)
* Removed "Anthology" from being a special parsing keyword as series are being found where "Anthology" is in the series name.

* SP# is now a way to force the file to be a special rather than pushing it into a Specials folder.
2021-06-14 17:35:13 -05:00
Joseph Milazzo
f8aba21acd
Removed "Anthology" from being a special parsing keyword as series are being found where "Anthology" is in the series name. (#304) 2021-06-14 17:21:01 -05:00
Joseph Milazzo
16a77fa8d6
Download Support (#298)
* Implemented the ability to download files (series, volume, chapter)

* Added RBS checks to ensure user is either an admin or has download role

* Added the ability to change a users feature RBS. Changed the Role seed to use reflection
2021-06-10 07:47:35 -05:00
Kizaing
4ae9f078b0
Feature/docker stable setup (#296)
* Added stable docker workflow

* Changed webui pull to develop
2021-06-09 10:10:06 -05:00
Robbie Davis
b61da7eb08
Update nightly-docker.yml (#295)
Added discord notification action to nightly-docker workflow.

https://github.com/marketplace/actions/discord-webhook-notify
2021-06-08 13:54:52 -05:00
Kizaing
560b0c9cb5
Feature/docker setup (#294)
* Github Action for Docker Integration on merge into develop

Co-authored-by: Chris Plaatjes <chris.p@boxbrite.com>
2021-06-08 13:20:36 -05:00
Joseph Milazzo
8d8e7ce93b
Book Grouping (#292)
* Implemented the ability to group books by series if certain calibre tags are in the epub.
2021-06-08 12:33:54 -05:00
Robbie Davis
d261449275
Adding releases to be sent to discord (#291)
Uses: https://github.com/marketplace/actions/discord-styled-releases-patch-notes
2021-06-08 12:16:31 -05:00
Robbie Davis
4f29cf7cc7
Bugfix/manga reader pad zeros (#288)
* Switched to using existing NaturalSortComparer for ordering filenames before we reprocess them to ensure they are in the correct natural reading order.

Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
2021-06-08 08:59:47 -05:00
Joseph Milazzo
7dae1da92f
Logging Enhancements (#285)
* If the user is on Debug, allow logging DB params to the logger. Implemented the ability to change logger from UI and to keep the DB settings of LogLevel and Port in sync with appsettings.

* Exclude a lot more clutter from hitting Sentry

* Removed github action

* Small cleanup
2021-06-07 17:52:11 -05:00
Joseph Milazzo
6f124b6f8a
Add try catch on Parser MinimumNumberFromRange in case something weird gets put in here. (#283) 2021-06-07 16:12:07 -05:00
Kizaing
d00cf7de92
Merged Dockerfiles (#282)
* Dockerfile re-imagined to handle all flavors in one script.
2021-06-07 16:04:08 -05:00
Joseph Milazzo
41a5d1bf2c
Fixed a bug on getting next/previous chapters where if chapters were … (#281)
* Fixed a bug on getting next/previous chapters where if chapters were not inserted into the DB in the natural order, then the next/prev chapter would be skewed.

* Make GetNextChapterId static
2021-06-07 14:49:38 -05:00
Joseph Milazzo
5259a1484a
Implemented the ability to configure the default port for non-docker users. Docker users will always be 5000. (#280) 2021-06-07 14:36:35 -05:00
Joseph Milazzo
4606b54603
Removed the SeriesMetadata migration since users have updated to v0.4.1. Any other users will require a scan to get the SeriesMetadata generated. (#275) 2021-06-07 13:16:50 -05:00
Joseph Milazzo
e4a9c468fe Version bump and reduced some sentry logs 2021-06-07 11:32:26 -05:00
Joseph Milazzo
f0f74e867e
Fixed the constraint issue with Metadata and ensure we log parameters on development modes. (#273) v0.4.1.1 2021-06-06 16:13:07 -05:00
Joseph Milazzo
ee3cb9ede8 Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2021-06-06 09:08:10 -05:00
Joseph Milazzo
cdd01ee919 Merged develop into main 2021-06-06 09:01:19 -05:00
Joseph Milazzo
8175ddf517
Fixed a critical crash in Scan library where Series Metadata was getting regenerated and unique constraint failed. (#269) 2021-06-05 16:30:50 -05:00
Joseph Milazzo
8211f1ce0e Set Version to v0.4.0 v0.4.1 2021-06-05 14:12:05 -05:00
Joseph Milazzo
aa7439178c
Don't log exceptions to Sentry when debugging locally. Fixed a constraint issue with collection tags that prevented deleting series. Ensure when we scan we add SeriesMetadata objects to existing series. (#265) 2021-06-04 17:49:19 -05:00
Robbie Davis
606e4c8b12
Recently Added Page (#261)
- Updated route task for 'recently-added'.
- Refactored GetRecentlyAdded task instead of creating new API task. This way is more efficient and prevents bloat.
- Adding pageSize to UserParams.cs (got lost in PRs).
2021-06-04 10:09:33 -05:00
Joseph Milazzo
e6cfa4feca
Bugfix/anchor rewriting (#260)
* Added book reader reading direction preference

* Adds a new marker to the AppUserProgress to capture nearest anchor for resuming scroll point when reading books. Refactored bookmark api to return a BookmarkDto which includes this new data.

* Fixed the readme image displaying issue and changed up a bit more of the layout.
2021-06-03 18:33:24 -05:00
Joseph Milazzo
4910f1d1d0
Book Reading Progress Enhancement (#259)
* Added book reader reading direction preference

* Adds a new marker to the AppUserProgress to capture nearest anchor for resuming scroll point when reading books. Refactored bookmark api to return a BookmarkDto which includes this new data.
2021-06-03 18:33:13 -05:00
Leonardo Dias
c12879cda9
feat: remove Webtoon option from Library Types (#254)
Fixes #251
2021-06-03 15:46:57 -05:00
Leonardo Dias
b38ea8186e
fix: error when resetting password of a non admin user (#252)
Fixes #246
2021-06-03 12:17:57 -05:00
Joseph Milazzo
03c9b7a11d
Added book reader reading direction preference (#249) 2021-06-03 09:05:07 -05:00
Joseph Milazzo
ec0327272f Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2021-06-03 08:31:40 -05:00
Joseph Milazzo
863bc57e87
Docker Build Turn off (#248)
Turn off the Docker Build CI stuff, will look into it later.

Changed pagination default to 30 and version bump.
2021-06-03 08:31:23 -05:00
Leonardo Dias
16d6b26c63
fix: wrong password length validation when registering a new user or resetting password (#247)
#244

Co-authored-by: leo2d <contato.leonardod@yahoo.com>
2021-06-03 07:16:32 -05:00
Joseph Milazzo
6c67f73898
Chore/docker build (#245)
* Added a docker script for nightly builds.
2021-06-02 07:49:33 -05:00
Joseph Milazzo
215dbde4db Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2021-06-02 07:27:51 -05:00
Joseph Milazzo
5083608f24
Bugfix/sentry and fixes (#243)
* Generate SeriesMetadata when creating Series from Scanner.

* Ignore errors from BookService

* Fixed a case where we used First() when it should have been FirstOrDefault() to fail when there are no cover images (or images)
2021-06-01 19:42:43 -05:00
Joseph Milazzo
a025225b09 Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2021-06-01 08:38:26 -05:00
Joseph Milazzo
ce35c4f84a
CB7 Support (#241)
* Added CB7 file extension support
2021-06-01 08:37:46 -05:00
Joseph Milazzo
d3ce3d9eee Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2021-06-01 08:30:36 -05:00
Joseph Milazzo
aaad82cb7a
Reduce Unauthenticated Errors in Sentry (#238)
* Updated README to be explicit that kavita.db needs to be writable.

* Implemented a new Exception type that is for throwing a message to UI without logging in Sentry.
2021-06-01 06:57:46 -05:00
Joseph Milazzo
b0b371cebb Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2021-05-31 10:17:03 -05:00
Joseph Milazzo
0a39a17407
TokenKey Generation (#235)
* Fixed #223. Now we generate a 128 byte JWT token key (recommendation) for user on first run.
2021-05-31 10:14:39 -05:00
Joseph Milazzo
7e976a1fc0 Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop 2021-05-31 09:25:51 -05:00
Joseph Milazzo
d7d7f9b529
Collection Support (#234)
* Readme refactored to be more clean and clear, taking inspiration from wiki.js's readme.

* Initial backend for Collections and basic metadata implemented.

* More build flavors for Raspberry Pi users and updated Install since we don't need users to set their own JWT Token Key. Update a typo in appsettings.json file for prod.

* Fixed #224. Sort before getting a First?Last() chatper

* The rough ability to add and get series metadata and tags.

* Fix a bug on getting metadata for when it doesn't exist.

* Fixed a bug where flattening directories with some unique filenames could cause reading order of images to be out of order.

* Added a seed code to ensure all series have SeriesMetdata

* Ensure all instances of opening an epub is using "using" so we don't lock the file. When we have a malformed html file, log the issues and inform the user we can't open the file.

* Book reader now handles @Import "" statements in CSS and inlines the css into css file that references them. This allows for them to be scoped. In addition, if the html or body tag had classes, we now send back a single div with those classes.

* Fixed GetSeriesDtoForCollectionAsync which was not properly returning series

* Implemented cover image for collection tag. Fixed an issue in metadata update call.

* Add check for user access when resolving series for a collection tag. When asking for all tags, if the user is not an admin, only give promotoed tags back.

* Implemented updateTag api

* Implemented the ability to update series the tags have access to.

* Cleanup, sorting, and null check

* More sorting changes

* Ensure we can delete tags when editing a series tags

* Fix order of update to make sure a tag is properly deleted

* Code smells
2021-05-30 17:24:23 -05:00