Commit Graph

62 Commits

Author SHA1 Message Date
Alex Ling 77df418390 Compare with DB when loading library cache (fixes #256) 2022-01-24 14:18:52 +00:00
Leeingnyo b711072492 Fix lint 2021-12-26 04:10:03 +09:00
Leeingnyo 0f94288bab Avoid N+1 queries problem 2021-12-26 03:29:41 +09:00
Leeingnyo ab799af866 Implement sort_title getter, setter 2021-12-25 22:43:35 +09:00
Alex Ling 16397050dd Update comments 2021-09-18 02:24:50 +00:00
Alex Ling 3f73591dd4 Update comments 2021-09-18 02:14:22 +00:00
Alex Ling d330db131e Simplify mark_unavailable 2021-09-15 08:46:30 +00:00
Leeingnyo de193906a2 Refactor mark_unavailable 2021-09-15 16:54:55 +09:00
Leeingnyo d13cfc045f Add a comment 2021-09-15 01:27:05 +09:00
Leeingnyo a3b2cdd372 Lint 2021-09-15 01:17:44 +09:00
Leeingnyo f4d7128b59 Mark unavailable only in candidates 2021-09-14 23:30:03 +09:00
Alex Ling 1973564272 Revert "Subscription manager"
This reverts commit a612500b0f.
2021-08-18 12:09:59 +00:00
Alex Ling a612500b0f Subscription manager 2021-03-14 16:01:29 +00:00
Alex Ling ee52c52f46 Fix new linter errors 2021-03-12 15:03:12 +00:00
Alex Ling b7b7e6f718 Fix typo [skip ci] 2021-03-05 17:04:23 +00:00
Alex Ling 8aab113aab Expiration date should be nil when theres no token 2021-03-05 11:01:00 +00:00
Alex Ling a9a2c9faa8 Finish search for MD 2021-03-05 04:58:56 +00:00
Alex Ling df7e2270a4 Add MangaDex login page 2021-03-05 04:58:56 +00:00
Alex Ling 4da263c594 Rewrite auth_handler
Make sure the OPDS pages are accessible without login when login is
disabled
2021-01-30 10:54:03 +00:00
Alex Ling a389fa7178 Allow delete all missing items (#151) 2021-01-28 09:55:41 +00:00
Alex Ling 54cd15d542 Mark items unavailable and retire DB optimization
This prepares us for the moving metadata to DB in the future
2021-01-19 15:09:38 +00:00
Alex Ling c7be0e0e7c Separate insert_id into titles and entries 2021-01-19 09:08:31 +00:00
Alex Ling 667d390be4 Signature matching 2021-01-19 08:43:45 +00:00
Alex Ling 952aa0c6ca Fix linter 2021-01-17 15:59:42 +00:00
Alex Ling b471ed2fa0 Upgrade MG 2021-01-17 15:49:10 +00:00
Alex Ling 7a09c9006a Set up foreign keys 2021-01-17 04:47:06 +00:00
Alex Ling 959560c7a7 Add titles and move insert_ids to class variable
This fixes the bug where the new ids are not saved
2021-01-17 04:45:55 +00:00
Alex Ling f7a360c2d8 Proper DB migration 2021-01-16 17:11:57 +00:00
Alex Ling 39b2636711 Sort tags in title 2021-01-07 16:21:23 +00:00
Alex Ling 0f1d1099f6 Add unique constraint to tags and error handling 2020-12-30 11:13:43 +00:00
Alex Ling bfc1b697bd Add tag related methods for Title 2020-12-30 11:13:43 +00:00
Alex Ling 276f62cb76 Update DB for tags 2020-12-30 11:13:43 +00:00
Alex Ling 85ad38c321 Allow disable login 2020-12-28 16:13:51 +00:00
Alex Ling 6384d4b77a Log "DB optimization finished" in the info level 2020-11-24 04:05:07 +00:00
Alex Ling 670e5cdf6a Better logging when optimizing DB 2020-10-25 07:09:37 +00:00
Alex Ling 44f4959477 Finish thumbnail generation and DB optimization
(#93)
2020-10-24 04:13:11 +00:00
Alex Ling 968c2f4ad5 Update DB to save thumbnails 2020-10-23 12:29:20 +00:00
Alex Ling 8a83c0df4e ARM support (#25, #78) 2020-08-04 11:00:33 +00:00
Alex Ling 87b6e79952 Use macro to DRY the self.default method 2020-07-21 12:33:50 +00:00
Alex Ling 0d11cb59e9 Break util.cr into multiple files 2020-07-12 08:53:04 +00:00
Alex Ling eab0800376 Improve scan performance (#79) 2020-07-01 14:01:26 +00:00
Alex Ling 82bcd03f15 Always create initial user if the DB is empty when started 2020-06-03 08:20:40 +00:00
Alex Ling b724b4d508 Move username/password validation to Storage class 2020-05-31 14:26:20 +00:00
Alex Ling 8bbbe650f1 Allow skipping initial user creation 2020-05-31 14:25:15 +00:00
Alex Ling 7233e6e5c3 Type annotate the self.default methods 2020-05-17 06:28:33 +00:00
Alex Ling 7448592216 Optionally pass in db path for testing 2020-05-07 10:12:58 +00:00
Alex Ling 1bec9f0108 Use singleton in various classes 2020-05-07 10:12:58 +00:00
Alex Ling b449d906ec Merge branch 'cover' into dev 2020-04-19 14:39:19 +00:00
Alex Ling 8262a163db Finish the API endpoint for cover upload 2020-04-14 06:09:23 +00:00
Alex Ling d6b22ef736 Don't return from DB blocks 2020-04-10 15:24:49 +00:00