Commit Graph

266 Commits

Author SHA1 Message Date
perennial a4a5100b5b reorganise core/user 2024-10-19 18:31:07 +11:00
perennial c5bd4fe797 bring back some core/user refactor 2024-10-19 18:28:12 +11:00
perennial 3799f68251 bump GetNovelRelatedURL to limit=180 2024-10-18 16:05:00 +11:00
perennial 4486d5020c clean up inline comments 2024-10-18 13:58:03 +11:00
perennial e76f049cff core/user undo refactors
grabbing everything in GetUserArtworksIDAndSeries in one go
isn't that easy due to how idsString is constructed

nightmare function
2024-10-18 00:58:02 +11:00
perennial 0e4a089ab9 reorganise core/user 2024-10-18 00:07:52 +11:00
perennial 602d52051c bump GetArtworkRelatedURL to limit=180 2024-10-17 23:10:41 +11:00
perennial 395f675175 fix ShouldUseCached 2024-10-17 20:54:47 +11:00
perennial b917e8deab check for "no-cache" before serving cache 2024-10-17 20:52:54 +11:00
perennial bd1bc5c605 fix caching 2024-10-17 20:50:13 +11:00
perennial 0952dda06a use strings.HasPrefix for shortTTLPaths 2024-10-17 20:45:58 +11:00
perennial 54dcde38af rework caching functions 2024-10-17 20:45:58 +11:00
perennial f5c6e62e73 core/user: more refactor 2024-10-17 19:38:17 +11:00
perennial f57e2f0305 refactor core/user 2024-10-17 19:27:56 +11:00
perennial 37fa48b9d2 core/index: consolidate functions 2024-10-17 17:16:54 +11:00
perennial 87aba9c0d2 requests.go: consolidate functions 2024-10-17 17:11:18 +11:00
perennial 803f2ccb0e refactor core/index.go 2024-10-17 15:50:00 +11:00
perennial 2e439c2383 user.go: handle both JSON objects and empty arrays correctly 2024-10-17 14:08:54 +11:00
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