Commit Graph

248 Commits

Author SHA1 Message Date
perennial 150c9edda9 edit comments 2024-10-17 13:15:57 +11:00
perennial fd7914bc2d rm unused import 2024-10-17 13:14:47 +11:00
perennial 5fbe2c1ec9 dont i18n panics 2024-10-17 13:13:51 +11:00
perennial 9485a29377 implement excludedCachePaths + reorganise requests.go 2024-10-17 13:05:49 +11:00
perennial 610bb13108 use seeded xxhash for cache keys 2024-10-17 12:50:33 +11:00
perennial 6953282962 refactor requests.go
Probably broke something but retryRequest became too big
in #130 and was unreadable
2024-10-17 02:37:09 +11:00
perennial af3506efe4 add PIXIVFE_CACHE_ENABLED 2024-10-16 21:58:20 +11:00
perennial cec9ca0ff1 docs: update caching section 2024-10-16 15:01:55 +11:00
perennial 9e9d45e5e4 comment out debug logging in requests.go 2024-10-16 14:49:03 +11:00
perennial cbbe302ea7 invalidate API resp cache upon user action 2024-10-16 14:24:49 +11:00
perennial 31dc0d660d add support for ShortTTL 2024-10-16 02:25:03 +11:00
perennial acec3daaa3 fix typo 2024-10-16 01:37:34 +11:00
perennial 913f72d462 implement caching configuration 2024-10-16 01:31:16 +11:00
perennial f518805ec5 simple lru cache for API responses to GET requests 2024-10-16 01:14:35 +11:00
perennial d36e4c1dcc refactor createMultipartFormData 2024-10-16 00:41:19 +11:00
perennial a609bfbb84 refactor API_GET_UnwrapJson 2024-10-16 00:33:34 +11:00
perennial 5bfb251974 style novel images properly + fix novel prefs 2024-10-14 18:36:22 +11:00
perennial 3aa0ba2681 more novel wip 2024-10-14 18:25:33 +11:00
perennial e7df61a254 novel styling fix wip 2024-10-14 17:29:09 +11:00
perennial e57116abb1 Revert "width height info for ugoira"
This reverts commit 73d38b5cf8.

Unnecessary change; width and height already exist in the JSON response

Issue was entirely with the Jet frontend
2024-10-14 14:41:50 +11:00
perennial 73d38b5cf8 width height info for ugoira 2024-10-14 14:16:09 +11:00
perennial 8217257ba9 Add inline comments to GetArtworkByID 2024-10-14 14:16:09 +11:00
perennial aad63d216a user follow: use mobile api 2024-10-13 19:55:59 +11:00
perennial db529d56c1 wip 2 2024-10-13 19:05:34 +11:00
perennial 0c5a2d7360 debug wip 2024-10-13 18:34:38 +11:00
perennial 840095d5d9 fix manga displaying incorrectly 2024-10-13 23:47:31 +11:00
perennial d41e98ab8b run gofumpt
https://github.com/mvdan/gofumpt
2024-10-13 16:31:18 +11:00
perennial 863df602ea logging rework wip 2024-10-13 14:29:17 +11:00
perennial a993472e29 edit comment 2024-10-12 03:10:48 +11:00
perennial 71a48bd4d8 fix early return when fetching artwork comments 2024-10-12 03:09:58 +11:00
perennial 7055d68c01 add comments 2024-10-11 20:49:39 +11:00
perennial 551b9f51c5 mangas to manga 2024-10-11 20:41:00 +11:00
perennial ba658d289d fix broken novelcount 2024-10-11 20:37:37 +11:00
perennial 71d922e994 draft 2024-10-11 19:47:17 +11:00
perennial a95d344352 reanme GetUserArtwork to GetUserProfile 2024-10-11 18:35:43 +11:00
perennial bc0af0603f rename GetUserArtworks to GetUserArtworkList 2024-10-11 18:34:36 +11:00
perennial dfb98a3ce0 refactor user.go 2024-10-11 18:29:58 +11:00
perennial 522c0af86f populate fields correctly 2024-10-11 18:22:19 +11:00
perennial c39821ddb2 rename ArtworksCount to CategoryItemCount 2024-10-11 18:11:52 +11:00
perennial 43c68f5790 draft 2024-10-11 18:11:21 +11:00
perennial 271517756f landing page overhaul 2024-10-10 23:42:52 +11:00
perennial 214fcbf9a7 simplify index backend logic 2024-10-10 23:13:29 +11:00
perennial 0cb9847d31 pixivision tag: display total number of articles 2024-10-10 20:52:50 +11:00
perennial 2192b1b378 inline comments for core/pixivision.go 2024-10-10 20:31:30 +11:00
perennial c7193e583d Revert "pixivision landing page attempt"
This reverts commit 15dd300aa60fe5535cfee7e9a152516f6a8e3d73.
2024-10-10 17:19:41 +11:00
perennial 80aaa72bf5 pixivision landing page attempt 2024-10-10 17:19:26 +11:00
perennial a252005b95 implement userNovels 2024-10-09 19:09:03 +11:00
perennial b0c2b63651 Fix rebase 2024-10-07 15:26:22 +11:00
perennial d6138ca7af Implement worker pool for proxy requests
This commit introduces worker pooling for handling media proxy requests,
allowing for actual concurrency in this area.

Key changes:
- Add ProxyJob struct to represent worker pool jobs
- Create a channel for ProxyJob and initialise workers in init function
- Modify ProxyRequest to use the worker pool
- Add proxyWorker and processProxyJob functions for job processing

The number of workers and job queue size are currently hardcoded but can
be made configurable in the future.
2024-10-05 21:16:22 +10:00
perennial 3ed93fa6bc link to artwork page instead on ranking calendar 2024-10-01 20:48:48 +10:00