Michael C
95dd36a782
getUserInfo and free chapters tests
2022-09-30 22:58:49 -04:00
Michael C
67eb165b53
getSearchSegments tests
2022-09-30 22:58:37 -04:00
Michael C
d163b1d436
shadowban tests
2022-09-30 22:58:20 -04:00
Michael C
715d41fbb2
getStatus, token tests and mocks
2022-09-30 22:58:08 -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
ed251a047a
Add a test case for getUserInfo.ts ignoring chapters for time saved calc
2022-09-28 18:18:41 +02:00
mini-bomba
771fa18731
Modify getUserStats test cases to include chapter counts
2022-09-28 17:59:04 +02:00
Michael C
55aa33aa6e
add DiskCache to getPlayerData
2022-09-26 15:58:33 -04:00
Michael C
07926ada57
switch test videoID, remove useless import
2022-09-26 15:44:04 -04:00
Michael C
c34de1baa4
add 4xx tests
2022-09-25 03:31:25 -04:00
Michael C
8562dc2240
lint fix
2022-09-25 02:05:51 -04:00
Michael C
9ca087206e
add token tests
2022-09-25 02:04:30 -04:00
Michael C
c0952c15c8
fix getTotalStats userCount
2022-09-24 23:08:36 -04:00
Michael C
47616711ce
move patreon mock
2022-09-24 22:52:55 -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
dd7656d143
add lockCategories tests, getUserInfo
2022-09-24 22:47:40 -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
b652102c42
move mocks to subfolder
2022-09-24 22:45:23 -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
Michael C
9be9d05dbe
add redis process time and add timeout clause
2022-09-07 23:43:14 -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
9c72e20d1b
test for changing chapter category
2022-09-07 01:31:38 -04:00
Ajay
dad205e729
don't scan ratings dir for tests
2022-08-22 11:07:30 -04:00
Ajay
8dbfe17ee4
remove ratings tests
2022-08-22 11:04:33 -04:00
Ajay
6239e53091
Fix flaky test
2022-07-29 12:06:38 -04:00
Ajay
04eabd5141
Fix error
2022-07-29 11:49:08 -04:00
Ajay
af7634b498
Fix ad feature auth logic
2022-07-28 13:55:43 -04:00
Ajay
603bad4967
Add another warning test
2022-07-21 14:19:41 -04:00
Ajay Ramachandran
e050a6eec3
Merge pull request #484 from mini-bomba/fix/requiredSegments-hidden
...
Fix (shadow)hidden segments not being sent when requested via requiredSegments + test cases
2022-07-20 20:04:24 -04:00
mini-bomba
b3c05bc606
Merge branch 'master' into fix/requiredSegments-hidden
...
# Conflicts:
# src/routes/getSkipSegments.ts
2022-07-21 00:54:14 +02:00
Ajay
3203271fdf
Allow removing your own warning
2022-07-20 18:52:27 -04:00
mini-bomba
4ac70d2d7e
add test cases for getting (shadow)hidden segments with requiredSegments
2022-07-16 15:07:22 +02:00
mini-bomba
55a8b5d514
voteOnSponsorTime: add test cases for categoryVote as warned/banned user
2022-07-14 21:31:43 +02:00
Ajay Ramachandran
972cb96259
Merge pull request #476 from mchangrh/fullvideo-revive-nonvip
...
add tests for #454
2022-07-12 23:14:03 -04:00
Ajay
c2b0ecd6f6
Add ability to add manually choose who can submit chapters
2022-07-06 00:11:45 -04:00
Ajay
47f460bb2c
Fix non-sequencial reputation in getSkipSegments
2022-07-05 20:11:30 -04:00
Ajay
f9de547b95
Add malicious vote type for chapters
2022-07-04 16:18:58 -04:00
Ajay
de60415f55
more generous reputation
2022-06-28 18:14:12 -04:00
Michael C
8560c3f673
add tests for #454
2022-06-28 15:02:09 -04:00
Michael C
cbdd852566
add additional poi_highlight tests
2022-05-26 21:17:58 -04:00
Michael C
6a826b63c9
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels
2022-05-09 02:42:18 -04:00
Ajay
5b177a3e53
Prepare dockerfile for use, allow configuring via env vars
2022-05-03 22:08:44 -04:00
Ajay
8dc87da462
Back rate limit by redia and upgrade node-redis
2022-04-13 17:36:07 -04:00
Michael C
76cc603a3f
update auotmod check
...
- remove NB code
- reduce complexity + unnecessary iterations
- use client duration if given
2022-03-31 16:02:50 -04:00
Michael C
ed560425a0
removed logging, fixed labelByHash test cases
2022-03-31 14:05:07 -04:00
Michael C
e6bf20937d
endpoint + tests for getVideoLabels
2022-03-31 03:47:06 -04:00
Ajay
fe0afd58bc
Save userid with votes
2022-03-30 16:02:30 -04:00
Ajay
22b4135d62
Fix flaky test
2022-02-21 22:58:23 -05:00
Ajay Ramachandran
de7b985535
Merge branch 'master' into voteOnSponsorTime
2022-02-10 23:00:51 -05:00
Michael C
0ff38b918b
fix tests, add add actionType tests
2022-02-04 00:40:13 -05:00
Michael C
5713b96d13
add test for downvote videoDuration change
2022-02-04 00:21:15 -05:00
Michael C
a2f2cf9c0d
update lockCategories
...
- migration to remove invalid locks
- lockCategories poi_highlight is now actionType poi
- deleteLockCategories now takes actionType
- update postLockCategories response, serverside filtering for accepted categories
- fix tests accordingly
2022-02-03 17:44:29 -05:00
Michael C
2b8944bf15
correct tempVIP test
2022-02-03 13:51:15 -05:00
Michael C
db5922e4b7
fix tempvip cases
2022-02-03 13:49:13 -05:00
Michael C
0854ad1f65
rewrite voteOnSponsorTimes
2022-02-03 06:06:54 -05:00
Michael C
830fdff3be
add full video and exclusive_access support
2022-01-19 21:53:40 -05:00
Ajay
6ece944536
Highlight category now has it's own action type
2022-01-19 17:48:09 -05:00
Ajay
a31a4d016f
Fix lock reason test
2022-01-16 13:19:42 -05:00
Ajay Ramachandran
b39d323a22
Merge pull request #444 from mchangrh/full-tests
...
Tests for full video locks
2022-01-16 13:17:19 -05:00
Ajay Ramachandran
bfd017a66a
formatting
2022-01-16 13:16:13 -05:00
Ajay Ramachandran
ea196e84f1
Merge pull request #439 from mchangrh/channelVipTests
...
additional tests for tempVIP
2022-01-16 12:54:22 -05:00
Ajay
76bfd27b33
Add exclusive access category
2022-01-14 00:23:09 -05:00
Ajay
6fe7200481
don't allow category vote for full video segment
2022-01-14 00:21:13 -05:00
Michael C
ea4adc0e14
getLockCategories + lint
2022-01-07 18:12:20 -05:00
Michael C
6ec80df8f4
update getLockReason
2022-01-07 03:04:47 -05:00
Haidang666
a1b59cba34
remove deprecated method: String.substr
2022-01-07 13:59:47 +07:00
Michael C
0584492b8c
getLockCategories
2022-01-06 23:56:27 -05:00
Ajay Ramachandran
b2e37804f5
Merge pull request #440 from ajayyy/full-video-labels
...
Full video labeling
2022-01-06 15:55:11 -05:00
Ajay
cb9b2ff965
Fix test data using wrong hash
2022-01-06 15:28:44 -05:00
Ajay
ad4c34ef28
Fix UUID test
2022-01-06 15:20:41 -05:00
Ajay
d5d73273de
Don't autohide full video segments for duration change
2022-01-06 14:45:05 -05:00
Ajay
44ffa40b6c
Should not add full segments to db from shadowbanned users
2022-01-06 14:15:50 -05:00
Ajay
b4f8bdd719
Add test for submitting full video converting to upvote
2022-01-06 14:10:41 -05:00
Ajay
6a98a215ac
Don't group different categories
2022-01-04 20:39:50 -05:00
Ajay
89ea13956a
Ensure only one full video label is served
2022-01-04 19:27:50 -05:00
Ajay
8fef35dbbc
Allow submitting full sponsors and selfpromo
2022-01-02 22:38:06 -05:00
Ajay
09eec5a4a5
Add locking by action type
2022-01-02 14:00:54 -05:00
Michael C
05516a5d7d
fix postgres quotes & fixed test.json
2021-12-31 17:12:46 -05:00
Michael C
a42f023074
add more testing, change enabled
...
- add 404 if channelID cannot be dervived
- added response message on success returning channel name
- test limits of temp VIP
- minor eslint
2021-12-31 16:54:28 -05:00
Ajay Ramachandran
ce4270b96d
Merge branch 'master' into categoryLeaderboards
2021-12-31 14:04:20 -05:00
Ajay Ramachandran
df3d6fe9c7
Merge pull request #438 from mchangrh/tempVIP
...
channel-specific VIP
2021-12-31 14:02:05 -05:00
Michael C
a1d28fbfe1
add addUserAsTempVIP
2021-12-31 04:26:37 -05:00
Michael C
b9a620fc3b
add redis status/min
2021-12-30 16:47:11 -05:00
Michael C
f97af4c433
texts for getTopCategoryUsers
2021-12-30 04:07:38 -05:00
Michael C
98994cee01
add getTopUsers test
2021-12-30 04:07:21 -05:00
Ajay
13a4bc3ee9
Fix tests
2021-12-29 00:19:53 -05:00
Ajay
95d14c0fdb
Allow overlaping non music with other categories
2021-12-21 11:21:19 -05:00
Ajay Ramachandran
1c304b636f
Merge pull request #430 from mchangrh/filler
...
add filler to userStats and getTopUsers
2021-12-20 23:44:24 -05:00
Ajay Ramachandran
4e94cdda72
Merge pull request #432 from mchangrh/eslint-and-workflow
...
eslint + workflow formatting
2021-12-20 23:44:09 -05:00
Ajay
66af4f60c8
Add test for different categories at same time
2021-12-20 23:07:12 -05:00
Michael C
3dd9024cc7
eslint + workflow formatting
...
- appropriate job names
- only trigger on pushes to master branch & PRs
- conform to formatting
2021-12-20 23:04:41 -05:00
Ajay
5ebb638925
Add overlapping group caching
2021-12-20 22:51:47 -05:00
Ajay Ramachandran
7aa9524835
Merge pull request #429 from mchangrh/redis-test
...
add redis tests
2021-12-20 22:50:21 -05:00
Ajay Ramachandran
f6d68bb3f3
Merge pull request #421 from HaiDang666/392_getSearchSegments-pagination
...
add custom pagination in getSearchSegments
2021-12-20 22:36:22 -05:00
Michael C
2ee7c82760
add test for filer
2021-12-20 00:27:38 -05:00
Ajay Ramachandran
5a358caedb
Merge pull request #419 from mchangrh/patch-1
...
[searchSegments] ignore if votes <= -2
2021-12-19 21:00:45 -05:00
Ajay Ramachandran
e2e4f79cec
Merge pull request #428 from mchangrh/userNameRows
...
remove empty rows from userNames
2021-12-19 21:00:27 -05:00
Michael C
1f9dc92074
add arrayDeepPartialEquals
2021-12-19 19:37:22 -05:00
Michael C
68bc6469ce
add redis tests
2021-12-19 02:03:50 -05:00
Haidang666
89a83f78cc
add more test on limit, page
2021-12-19 10:13:06 +07:00
Michael C
544af7ce15
remove empty rows from userNames
2021-12-18 21:33:38 -05:00
Michael C
ba07137933
remove extra print from test
2021-12-18 20:53:17 -05:00
Haidang666
ec73ae309e
add custom pagination in getSearchSegments
2021-12-17 15:08:51 +07:00
Michael C
292b05443f
ignored segments should exclude downvote
2021-12-10 16:40:34 -05:00
Ajay Ramachandran
6f05b5b92d
Merge pull request #412 from mchangrh/requiredSegment/shortHash
...
get requiredSegments by partial hash
2021-12-02 23:44:29 -05:00
Ajay Ramachandran
9bc65d566a
Merge pull request #417 from ajayyy/bulk-ratings
...
Add bulk rating fetching
2021-12-02 23:44:09 -05:00
Ajay Ramachandran
48ac8d1136
Add test for get bulk rating
2021-12-02 23:12:48 -05:00
Michael C
8fe0a45435
add partial lookup
2021-11-30 18:58:37 -05:00
Ajay Ramachandran
d55a860114
Merge pull request #406 from mchangrh/searchSegments/userID
...
add userID to searchSegments
2021-11-28 11:20:14 -05:00
Michael C
4584dbc047
add userID to searchSegments
2021-11-20 01:15:33 -05:00
Michael C
0a869dbbd7
strict check for videoID length
2021-11-19 02:27:42 -05:00
Michael C
ad7574308f
clear rating cache
2021-11-15 01:50:09 -05:00
Michael C
b9ebd00365
fixed tests, typos and optimized code for ratings
2021-11-15 01:17:36 -05:00
Ajay Ramachandran
bc6db0d109
Add endpoints for rating endpoint (dislikes)
...
https://github.com/ajayyy/SponsorBlock/issues/1039
2021-11-14 23:09:12 -05:00
Ajay Ramachandran
e85a0d4f28
Fix lock reason test with filler
2021-11-08 19:28:27 -05:00
Ajay Ramachandran
16c5819f5c
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into chapters
2021-11-08 19:26:39 -05:00
Ajay Ramachandran
db48953e39
Allow mute intro, outro, preview and add filler
2021-11-08 19:24:58 -05:00
Ajay Ramachandran
a2698fb70d
Set all videoInfo values in chapters name test
2021-11-06 23:18:28 -04:00
Ajay Ramachandran
6919b5433b
Add suggested chapter names
2021-11-06 22:43:03 -04:00
Ajay Ramachandran
0b7904f891
Add test case for small part that is the same action type
2021-11-06 17:40:26 -04:00
Ajay Ramachandran
c0072d5c72
Add another segment to overlap test case and fix for that case
2021-11-06 17:28:58 -04:00
Ajay Ramachandran
7eef74a7dc
Add new % overlap function used for chapters
...
Kind of #107
2021-11-06 16:09:55 -04:00
Ajay Ramachandran
32150e4a1d
Add submitting description for chapters
2021-11-06 00:54:28 -04:00
Ajay Ramachandran
991d384f11
Merge pull request #398 from mchangrh/userID-skipSegments
...
add userID to getSkipSegments
2021-10-30 21:50:32 -04:00
Michael C
88a368d0b9
add tests for shadowban
2021-10-30 17:58:17 -04:00
Michael C
9d761815d8
add userID to getSkipSegments
2021-10-27 17:03:16 -04:00
Ajay Ramachandran
eecb238e18
Merge pull request #389 from mchangrh/replication-mirror
...
changes for mirror mode
2021-10-26 20:34:22 -04:00
Ajay Ramachandran
3877cd580c
Merge pull request #391 from HaiDang666/388_lock-user-with-reason
...
add username in get lock reason route
2021-10-26 20:26:44 -04:00
Ajay Ramachandran
393027c1ea
Merge pull request #386 from mchangrh/more-stats
...
add loadAvg to status
2021-10-26 20:24:06 -04:00
Felix Hoang
b715b30ae6
add username in get lock reason route
2021-10-24 16:04:18 +07:00
Michael C
fd6ae8fc0e
bargaining with postgres CI
...
- fix tests with lockCategories
- new unique naming scheme for video
- super janky somehow working method for comparing arrays out of order
2021-10-22 03:53:27 -04:00
Michael C
109578a3ed
remove extra console.log lines
2021-10-20 00:59:08 -04:00
Michael C
ac15686b47
add loadAvg to status
2021-10-20 00:16:27 -04:00
Michael C
5cf7a61de1
restructure for postgres
2021-10-19 23:14:52 -04:00
Michael C
d0deb6fe27
finish tests and remove extra console.logs
2021-10-19 23:06:47 -04:00
Ajay Ramachandran
450f4a2d44
Store video info from submissions
2021-10-17 14:42:48 -04:00
Ajay Ramachandran
f6d6e93847
Return locked and votes in skipSegment calls
...
#379
2021-10-15 00:14:59 -04:00
Ajay Ramachandran
658e391f50
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into pr/FlorianZahn/376
2021-10-03 13:11:25 -04:00
FlorianZahn
69e321c405
Improved formatting
2021-10-03 19:03:49 +02:00
FlorianZahn
178c4d9792
Remove comment
...
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2021-10-03 18:53:34 +02:00