Commit Graph

231 Commits

Author SHA1 Message Date
Ajay
399bda869f Add more detailed redis error message 2023-02-04 14:07:09 -05:00
Michael C
a64b8f99b7 use shared parseParams helper 2023-01-28 02:40:09 -05:00
Ajay Ramachandran
1641a41b00 Merge pull request #533 from mchangrh/cache-control
add ETag to skipSegments byHash
2023-01-28 01:16:32 -05:00
Ajay
2ed23d7fcb Fix duplicate chapter issue
Fix https://github.com/ajayyy/SponsorBlockServer/issues/521
2023-01-21 21:52:39 -05:00
Michael C
e7a43d79ab optimize skipSegments, add eTag
- moved skipSegments parameter parsing to new file
- added oldGetVideoSponsorTimes to getSkipSegments.ts
2023-01-01 04:59:57 -05:00
Michael C
a613b68c66 add ETag to skipSegments byHash 2023-01-01 02:50:49 -05:00
Michael C
7c2feb80bc videoID validation and userID min length 2022-12-27 01:45:50 -05:00
Michael C
8d7b010a12 append missing number to version 2022-12-17 23:58:19 -05:00
Michael C
fc73f491fe bump innertube clientVersion 2022-12-17 23:56:36 -05:00
Ajay
cff2325aef use keep alive in disk cache and user counter 2022-12-05 17:06:00 -05:00
Michael C
1f844bf56a Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into submitPrivateVideo 2022-11-21 14:40:46 -05:00
Ajay
91fc56f59a Wait for redis to connect before starting server 2022-11-20 01:20:05 -05:00
Ajay
238ccc83d9 Stop writing if response time exceeds value 2022-11-19 23:58:55 -05:00
Ajay
7bdcb10994 Fix redis set limiting 2022-11-19 23:32:09 -05:00
Ajay
849ca52ef8 Allow disabling hash cache 2022-11-19 20:05:59 -05:00
Ajay
1fffd2e6ac Remove set limitation code 2022-11-13 17:01:32 -05:00
Ajay
d3d53d0758 Allow no max redis connections 2022-11-12 15:35:07 -05:00
Michael C
7fb68937d0 add innertube tests for private videos 2022-11-09 14:39:02 -05:00
Ajay
90e68caaf7 Add active connection limit to setEx as well 2022-11-08 22:09:03 -05:00
Ajay
0ead3892ba Fix write process time not being used 2022-11-08 00:01:44 -05:00
Ajay
2700b5b530 Add avg read and write for redis and write requests 2022-11-07 23:51:41 -05:00
Ajay
e1a5ca64f0 Add seperate config for stopping write redis connections 2022-11-07 23:04:18 -05:00
Ajay
98f202f6a9 Add max connection check to redis set 2022-11-07 22:51:26 -05:00
Ajay
68d9d3cbde Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2022-10-29 21:04:01 -04:00
Ajay
571230db56 Stop spamming redis if it slows down 2022-10-29 21:03:34 -04:00
Michael C
db71af480d clear full video labels 2022-10-28 16:53:04 -04:00
Michael C
80c018c9d5 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels 2022-10-28 16:49:50 -04:00
Michael C
cc6c5980a1 videoLabelsHashKey 2022-10-28 16:49:10 -04:00
Michael C
7f92ac961d clear label cache 2022-10-28 16:42:56 -04:00
Michael C
622511c8fd Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-coverage 2022-10-27 01:38:08 -04:00
Michael C
9286f16e7b add ingores to tokenUtils 2022-10-27 01:19:42 -04:00
Ajay
94eb37cb1c Count active postgres and redis requests 2022-10-26 01:31:29 -04:00
Ajay
9386f25f9f Add read only redis ability 2022-10-09 16:10:46 -04:00
Ajay
b417241ca0 make permission reason not optional 2022-10-07 12:05:11 -04:00
Ajay
ee3d94e7b7 Add clearer chapter permission error 2022-10-07 12:04:44 -04:00
Michael C
9ef0eafac1 add istanbul exclusions 2022-09-30 22:56:59 -04:00
Michael C
d80be9e7b3 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-coverage 2022-09-30 19:36:58 -04:00
Michael C
968ffe785f Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels 2022-09-30 19:21:54 -04:00
Ajay Ramachandran
ada32217d9 Merge pull request #503 from mchangrh/innerTubeDuration
add innerTube API, types and tests
2022-09-29 16:45:55 -04:00
Michael C
55aa33aa6e add DiskCache to getPlayerData 2022-09-26 15:58:33 -04:00
Michael C
f683ed4f29 add userCounter mocks and rearrange webhook path 2022-09-24 22:47:18 -04:00
Ajay
30bac658ed Remove old permission workaround 2022-09-21 21:52:55 -04:00
Ajay
f6c68ec29c Add another option to get chapters submitting permission 2022-09-19 11:56:55 -04:00
Michael C
62a9b0eddd add innerTube as primary videoInfo endpoint
- drop videoInfo.genreUrl since it's always empty
- bump ts target to ES2021 for Promise.any
- fix mocks to return err: false
- get maxResThumbnail from static endpoint
2022-09-15 17:02:33 -04:00
Michael C
3c09033267 add innerTube API, types and tests 2022-09-14 00:33:52 -04:00
Ajay
bd7dfc63ff Add eslint rules for dealing with promises 2022-09-07 20:01:11 -04:00
Ajay Ramachandran
0ca134dc8f Merge pull request #500 from mchangrh/fix-tests
fix tests
2022-09-07 12:03:05 -04:00
Michael C
d1d7675a8c test fixes
test fixes
- fix timeout in redis (by @ajayyy)
- allow "errors" in tempVIP test
- remove duplicate warning in postSkipSegments
- remove duplicate VIP in tempVIP
- run tests against different user once tempVIP removed
- fix typo in getHashCache fetching

syntax and wording
- use standard syntax in redisTest
- fix spacing in getLockReason
- typo in npm script name

test cases
- add getHashCache test case
- add more tests to redisTest

configuration
- update config to use redis timeout
- update docker-compose to use newest pinned version

Co-Authored-By: Ajay Ramachandran <dev@ajay.app>
2022-09-07 02:16:23 -04:00
Ajay
252e2305f2 Fix undefined redis timeout breaking redis 2022-09-07 01:39:26 -04:00
Ajay
7060c0ab0d Add access token system 2022-08-31 01:55:38 -04:00