Alex Ling
2d2486a598
Merge branch 'dev' into fix/rescan-when-files-added
2022-07-03 15:44:02 +08:00
Chris Alexander
2e91028ead
Allow config defaults to be sourced from ENV
...
This allows the default config to source values from ENV variables if
they are set. With this change we don't have to modify the docker CMD or
edit the config.yml and then relaunch.
2022-06-27 09:30:04 -05:00
Alex Ling
19a8f3100b
Merge branch 'dev' into fix/rescan-when-files-added
2022-06-26 11:52:15 +08:00
Alex Ling
fe440d82d4
Fix linter issue
2022-06-18 11:10:14 +00:00
Leeingnyo
17a9c8ecd3
pass lint
2022-06-18 18:51:33 +09:00
Leeingnyo
bbc0c2cbb7
Fix Dir.contents_signature to detect valid image files added
2022-06-18 17:43:57 +09:00
tr7zw
ea35faee91
Add jxl support
2022-06-07 00:28:41 +02:00
Leeingnyo
9ce8e918f0
Replace to is_valid?
2022-06-04 00:26:46 +09:00
Alex Ling
e6dbeb623b
Use is_valid?
2022-05-22 05:12:43 +00:00
Alex Ling
872e6dc6d6
Better method naming in DirEntry
2022-05-22 04:20:14 +00:00
Leeingnyo
1f5aed64f7
Rename Entries to ArchiveEntry and DirEntry
2022-05-20 09:51:56 +09:00
Leeingnyo
3da5d9ba4e
Fix contents_signature
2022-05-15 17:36:57 +09:00
Leeingnyo
3a60286c3a
Run 'crystal tool format'
2022-05-15 17:02:29 +09:00
Leeingnyo
55ccd928a2
Implement DirectoryEntry
2022-05-15 16:12:31 +09:00
Leeingnyo
10587f48cb
Implement is_supported_image_file
2022-05-15 16:12:31 +09:00
Alex Ling
c778364ca2
Formatting
2022-03-22 11:42:16 +00:00
Alex Ling
a5a7396edd
Fix CORS allowed methods
2022-03-22 10:46:09 +00:00
Alex Ling
0d52544617
Use sessid and not token and fix get_username
2022-03-21 03:41:24 +00:00
Alex Ling
c3736d222c
Fix long line
2022-03-20 10:01:44 +00:00
Alex Ling
2091053221
Allow CORS
2022-03-20 09:57:36 +00:00
Alex Ling
77df418390
Compare with DB when loading library cache ( fixes #256 )
2022-01-24 14:18:52 +00:00
Leeingnyo
ecaec307d6
Fix title sort bug, invalidate titles of the Library
...
Refactor remove cache
2021-12-26 05:15:21 +09:00
Leeingnyo
b711072492
Fix lint
2021-12-26 04:10:03 +09:00
Leeingnyo
1cd777d27d
Cache sorted titles
2021-12-26 02:56:57 +09:00
Leeingnyo
1ec8dcbfda
Use sort_title, sort_titles in title page
2021-12-26 02:55:52 +09:00
Leeingnyo
57683d1cfb
Add sort option "Name" for title
2021-12-24 16:44:07 +09: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
Leeingnyo
670cf54957
Apply yield forcely
2021-09-14 22:51:37 +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
Leeingnyo
7734dae138
Remove unnecessary sort
2021-09-12 14:36:17 +09:00
Leeingnyo
9309f51df6
Memoization on dir contents_signature
2021-09-12 02:19:49 +09:00
Leeingnyo
4e8b561f70
Apply contents signature of directories
2021-09-12 02:19:49 +09:00
Alex Ling
3d295e961e
Merge branch 'dev' into fix/sanitize-download-filename
2021-09-09 00:31:24 +00:00
Alex Ling
566cebfcdd
Remove all leading dots and spaces
2021-09-09 00:13:58 +00:00
Alex Ling
ccf558eaa7
Improve filename sanitization rules
2021-09-08 10:03:05 +00:00
Alex Ling
371796cce9
Support additional image formats:
...
- APNG
- AVIF
- GIF
- SVG
2021-09-07 11:04:05 +00:00
Alex Ling
d9adb49c27
Revert "Support all image types ( resolves #192 )"
...
This reverts commit f67e4e6cb9 .
2021-09-07 10:45:59 +00:00
Alex Ling
f67e4e6cb9
Support all image types ( resolves #192 )
2021-09-06 13:32:10 +00:00
Alex Ling
79ef7bcd1c
Remove unused variable
2021-09-06 03:01:21 +00:00
Leeingnyo
565a535d22
Remove caching verbosely, add cached_cover_url
2021-09-06 02:32:13 +09:00
Leeingnyo
de410f42b8
Replace InfoCache to LRUCache
2021-09-05 02:08:11 +09:00
Leeingnyo
4a09aee177
Implement library caching TitleInfo
...
* Cache sum of entry progress
* Cache cover_url
* Cache display_name
* Cache sort_opt
2021-08-30 11:31:45 +09:00
Leeingnyo
00c9cc1fcd
Prevent saving a sort opt unnecessarily
2021-08-30 11:31:45 +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
154d85e197
Use only woff and woff2
2021-02-11 08:40:24 +00:00