Commit Graph

1004 Commits

Author SHA1 Message Date
Alex Ling 97168b65d8 Make library cache path configurable 2021-09-18 08:40:08 +00:00
Alex Ling 6e04e249e7
Merge pull request #229 from Leeingnyo/feature/preserve-scanned-titles
Reuse scanned titles on boot and scanning
2021-09-18 16:14:31 +08: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 ec25109fa5 Merge branch 'feature/preserve-scanned-titles' of https://github.com/Leeingnyo/Mango into feature/preserve-scanned-titles 2021-09-18 02:04:02 +00:00
Alex Ling 96f1ef3dde Improve comments on examine 2021-09-18 02:00:10 +00:00
Leeingnyo b56e16e1e1 Remove counter, yield everytime 2021-09-18 10:59:43 +09:00
Leeingnyo 9769e760a0 Pass a counter to recursive calls, Ignore negative threshold 2021-09-16 07:49:12 +09:00
Leeingnyo 70ab198a33 Add config 'forcely_yield_count'
the default value 1000 would make a fiber yield on each 4ms on SSD

Apply yield counter in Dir.contents_signauture
Use contents_signature cache in Title.new
2021-09-16 00:16:26 +09:00
Alex Ling 44a6f822cd Simplify Title.new 2021-09-15 09:00:30 +00:00
Alex Ling 2c241a96bb Merge branch 'dev' into feature/preserve-scanned-titles 2021-09-15 08:58:24 +00:00
Alex Ling 219d4446d1
Merge pull request #231 from hkalexling/feature/api-improvements
API Improvements
2021-09-15 16:54:41 +08: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
Leeingnyo 663c0c0b38 Remove nested title including self 2021-09-14 23:28:28 +09:00
Leeingnyo 57b2f7c625 Get nested ids when title removed 2021-09-14 23:08:07 +09:00
Leeingnyo 9489d6abfd Use reference instead of primitive 2021-09-14 23:07:47 +09:00
Leeingnyo 670cf54957 Apply yield forcely 2021-09-14 22:51:37 +09:00
Leeingnyo 2e09efbd62 Collect deleted ids 2021-09-14 22:51:25 +09:00
Leeingnyo 523195d649 Define ExamineContext, apply it when scanning 2021-09-14 22:37:30 +09:00
Leeingnyo be47f309b0 Use cache when calculating contents_signature 2021-09-14 18:11:08 +09:00
Alex Ling 03e044a1aa Improve logging 2021-09-14 07:16:14 +00:00
Alex Ling 4eaf271fa4 Simplify #json_build 2021-09-14 02:30:57 +00:00
Alex Ling 4b464ed361 Allow sorting in /api/book endpoint 2021-09-13 10:58:07 +00:00
Alex Ling a9520d6f26 Add shallow option to library API endpoints 2021-09-13 10:18:07 +00:00
Leeingnyo a151ec486d Fix file extension of gzip file 2021-09-12 18:04:41 +09:00
Leeingnyo 8f1383a818 Use Gzip instead of Zip 2021-09-12 18:01:16 +09:00
Leeingnyo f5933a48d9 Register mime_type scan, thumbnails when loading instance 2021-09-12 17:40:40 +09:00
Leeingnyo 7734dae138 Remove unnecessary sort 2021-09-12 14:36:17 +09:00
Leeingnyo 8c90b46114 Remove removed titles from title_hash 2021-09-12 13:39:28 +09:00
Leeingnyo cd48b45f11 Add 'require "yaml"' 2021-09-12 12:45:24 +09:00
Leeingnyo bdbdf9c94b Fix to pass 'make check', fix comments 2021-09-12 11:09:48 +09:00
Leeingnyo 7e36c91ea7 Remove debug print 2021-09-12 10:47:15 +09:00
Leeingnyo 9309f51df6 Memoization on dir contents_signature 2021-09-12 02:19:49 +09:00
Leeingnyo a8f729f5c1 Sort entries and titles when they needed 2021-09-12 02:19:49 +09:00
Leeingnyo 4e8b561f70 Apply contents signature of directories 2021-09-12 02:19:49 +09:00
Leeingnyo e6214ddc5d Rescan only if instance loaded 2021-09-12 02:19:49 +09:00
Leeingnyo 80e13abc4a Spawn scan job 2021-09-12 02:14:58 +09:00
Leeingnyo fb43abb950 Enhance the examine method 2021-09-12 02:14:58 +09:00
Leeingnyo eb3e37b950 Examine titles and recycle them 2021-09-12 02:14:58 +09:00
Leeingnyo 0a90e3b333 Ignore caches 2021-09-12 02:14:58 +09:00
Leeingnyo 4409ed8f45 Implement save_instance, load_instance 2021-09-12 02:14:58 +09:00
Leeingnyo 291a340cdd Add yaml serializer to Library, Title, Entry 2021-09-12 02:14:58 +09:00
Leeingnyo 0667f01471 Measure scan only 2021-09-12 02:14:58 +09:00
Alex Ling d5847bb105
Merge pull request #224 from hkalexling/fix/sanitize-download-filename
Stricter sanitization rules for download filenames
2021-09-09 08:47:41 +08:00
Alex Ling 3d295e961e Merge branch 'dev' into fix/sanitize-download-filename 2021-09-09 00:31:24 +00:00
Alex Ling e408398523
Merge pull request #227 from hkalexling/all-contributors/add-lincolnthedev
docs: add lincolnthedev as a contributor for infra
2021-09-09 08:18:22 +08:00