Ajay
415bb31e36
Revert "Add concurrent request limit"
2022-10-11 11:59:53 -04:00
Ajay Ramachandran
eb3d733a34
Merge pull request #510 from mini-bomba/misc-fixes
...
Some fixes for voteOnSponsorTime.ts
2022-10-11 00:10:41 -04:00
Ajay
9386f25f9f
Add read only redis ability
2022-10-09 16:10:46 -04:00
mini-bomba
ceaf9ec6f6
Fix linter warning
2022-10-08 09:09:19 +02:00
mini-bomba
d229003f6e
Unlock the video on duration change detected when voting
2022-10-08 09:08:40 +02:00
mini-bomba
1becebdcd5
Actually pass the ignoreCache param, as the comment suggests
2022-10-08 09:04:37 +02: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
Ajay
b6da103c3d
switch to just lower vote min
2022-10-05 23:15:01 -04:00
Ajay
52a7d7e791
allow locked to be in top list and chapter
2022-10-05 23:08:16 -04:00
Ajay
b63572ec43
Add chapter to top users
2022-10-05 22:00:12 -04:00
Ajay Ramachandran
66d5622393
Merge pull request #508 from mini-bomba/searchsegments-description
...
Make /searchSegments return the segment description
2022-10-01 09:53:29 -04:00
mini-bomba
c4af2449c3
Use different startTime variables for each processTime check
...
This should make `processTime` and `redisProcessTime` values from /api/status more accurate
2022-10-01 15:50:47 +02:00
mini-bomba
eb5458427d
Make /searchSegments return the segment description
2022-10-01 13:46:27 +02:00
Michael C
0b9e7029c5
minor optimizations
2022-09-30 22:57:33 -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
847f1bbabb
Merge pull request #499 from mchangrh/getStatus-redis
...
add redis process time to getStatus
2022-09-29 16:52:16 -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
a8ddae131d
Merge branch 'master' of github.com:ajayyy/SponsorBlockServer into more-coverage
2022-09-29 15:39:36 -04:00
mini-bomba
601a17c969
Ignore chapters for saved time calculations in getUserInfo.ts
2022-09-28 18:07:39 +02:00
mini-bomba
27f7b6d3c7
Add chapter category & action type to getUserStats.ts
...
This also fixes chapters not being counted in the segment counts.
2022-09-28 17:58:18 +02:00
Michael C
55aa33aa6e
add DiskCache to getPlayerData
2022-09-26 15:58:33 -04:00
Michael C
a469f2f382
add uniform parsing and catching for arrays, remove redundant check
2022-09-25 03:30:33 -04:00
Michael C
506b6570f3
add ignore next to catch errors
2022-09-25 03:29:31 -04:00
Michael C
8562dc2240
lint fix
2022-09-25 02:05:51 -04:00
Michael C
005ae2c9fb
add ignores for impossible cases
2022-09-25 02:04:51 -04:00
Michael C
9ca087206e
add token tests
2022-09-25 02:04:30 -04:00
Michael C
7457b51aa4
add getByHash tests, remove redundant check
...
- `{}` always returns true so the early exit is never taken
2022-09-24 22:51:52 -04:00
Michael C
a00048aaac
add getIP test cases, misc others
2022-09-24 22:51:20 -04:00
Michael C
0a102c15fd
add lockCategory tests and typo tweak
2022-09-24 22:48:48 -04:00
Michael C
e0be4744be
fix tokenUtils tests, skip if not configured
2022-09-24 22:48:23 -04:00
Michael C
f683ed4f29
add userCounter mocks and rearrange webhook path
2022-09-24 22:47:18 -04:00
Michael C
3f470a72f5
add additional/missing tests
2022-09-24 22:46:35 -04:00
Michael C
551e103158
add tregex for both patreon and gumroad
2022-09-24 20:13:35 -04:00
Michael C
8fc01ba138
add fast fails for local and gumroad license keys
2022-09-22 20:30:10 -04:00
Ajay
1c1496afbc
Change free chapter to use historical rep
2022-09-22 14:50:48 -04:00
Ajay
7007ab05e1
Handle errors from redis store in request rate limit
2022-09-22 11:12:47 -04:00
Ajay
30bac658ed
Remove old permission workaround
2022-09-21 21:52:55 -04:00
Ajay
f6f83fcbe4
Add concurrent request limit
2022-09-20 23:41:36 -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
2ecf4b3a9b
Fix category votes to use category support to judge when not allowed
2022-09-12 10:59:26 -04:00
Ajay
94ca291460
Don't cut off early if last retry
2022-09-11 12:22:57 -04:00
Michael C
0e3eeece01
return -1 for unknown dbVersion
2022-09-08 16:38:05 -04:00
Michael C
00dae6d6a1
switch to reused promiseOrTimeout
2022-09-08 16:34:39 -04:00
Ajay
e84957a2c8
commit missing file
2022-09-08 15:04:33 -04:00
Ajay
1e66a2e57a
Add option to disable fallback after failure
2022-09-08 15:02:56 -04:00