Commit graph

119 commits

Author SHA1 Message Date
Ajay Ramachandran
8729796e87 Make tests pass running with postgres 2021-03-07 00:21:56 -05:00
Ajay Ramachandran
54e69b266d Fix tests 2021-03-06 00:25:18 -05:00
Ajay Ramachandran
46b42da5bd Update tests to use promises 2021-03-01 21:37:35 -05:00
Ajay Ramachandran
ff4af3786e Switch to postgres + promises 2021-03-01 20:40:31 -05:00
Nanobyte
09c9b25178 Fix getSkipSegmentsByHash requires valid json
The categories parameter has to be a valid array with strings in JSON format
2021-02-25 19:08:29 +01:00
Ajay Ramachandran
597dff7ac3 Unlock segment if VIP downvotes 2021-02-18 22:09:57 -05:00
Ajay Ramachandran
57adcd3c65 Replace VIP starting with 1000 votes with locked submissions 2021-02-18 20:24:04 -05:00
Ajay Ramachandran
ef21ceb332 Add segment locking 2021-02-18 19:48:36 -05:00
Ajay Ramachandran
3b24dfd4c5 Fix unwarn not working 2021-01-24 12:45:13 -05:00
Nanobyte
797e0b4641 Fix test cases 2021-01-06 01:43:28 +01:00
Ajay Ramachandran
432cc42cba Don't allow duplicate warnings 2020-12-29 13:31:15 -05:00
Ajay Ramachandran
78ef129634 Add remove feature to warnUser 2020-12-29 00:18:50 -05:00
Ajay Ramachandran
71aa7ec0ef Remove extra js test 2020-12-24 21:29:45 -05:00
Ajay Ramachandran
8129a488a9 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into feat/faster-segments
# Conflicts:
#	src/routes/getSkipSegments.ts
#	src/routes/getSkipSegmentsByHash.ts
#	test/cases/getSegmentsByHash.js
2020-12-24 21:27:08 -05:00
Ajay Ramachandran
a7f04ad732 Update category test + fix double voting issue
Fix #190
2020-12-16 23:47:47 -05:00
Ajay Ramachandran
5deda4603e Allow submitter to change category immediately 2020-12-16 23:00:11 -05:00
Ajay Ramachandran
cd373f4bca Don't allow votes on locked videos 2020-12-16 22:53:49 -05:00
Ajay Ramachandran
2cd78d5d2f Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into Dainius14/master
# Conflicts:
#	src/routes/shadowBanUser.js
#	src/routes/voteOnSponsorTime.ts
#	test/cases/getSkipSegments.js
#	test/cases/voteOnSponsorTime.js
2020-12-07 17:35:15 -05:00
opl-
0bac7e8d90 Improve performance of segment querying endpoints 2020-12-02 15:20:42 +01:00
Joe Dowd
9d293b2cb4 Don't revive segments for videos marked with noSegment when un-banning a user 2020-10-29 01:03:07 +00:00
Joe Dowd
bb47181daa removed tests no longer needed - should be updated to reflect new changes 2020-10-28 11:44:11 +00:00
Dainius Dauksevicius
12729b36fb fix docker build, add proper mocks to tests, remove YouTubeAPI dependency on youtube test mock, move index.ts and test.ts to /src ant /test folders 2020-10-26 19:13:30 +02:00
Dainius Daukševičius
08d27265fc migrate to typescript 2020-10-26 19:13:30 +02:00
Ajay Ramachandran
ad74c2c710
Merge pull request #163 from thignus/reject-80percent-total-submissions
reject submissions if total length is more than 80 precent of the video
2020-10-14 19:43:16 -04:00
James Robinson
064d3ad5d5 fix test imports 2020-10-14 18:40:55 -05:00
Ajay Ramachandran
779b79c54b
Merge pull request #165 from ajayyy/testing
Testing
2020-10-14 18:47:55 -04:00
Ajay Ramachandran
4c222ce2cc
Merge branch 'master' into reject-80percent-total-submissions 2020-10-14 18:41:55 -04:00
Ajay Ramachandran
e4045952c8
Merge branch 'master' into feature/getuserinfo 2020-10-14 18:34:27 -04:00
Ajay Ramachandran
678e4187c5
Merge pull request #154 from MRuy/feature-segmentshift
Added segmentShift
2020-10-14 18:27:09 -04:00
Joe Dowd
830ef7e0dc made youtube api cache have conatcnt part value 2020-10-14 20:52:01 +01:00
Joe Dowd
2426b51512 added delete nosegment endpoint 2020-10-14 20:18:31 +01:00
James Robinson
2825cb63fb ignore segments with less than -1 votes 2020-10-14 00:33:00 -05:00
James Robinson
85dd187cb0 reject submissions if total length is more than 80 precent of the video 2020-10-14 00:25:05 -05:00
Ajay Ramachandran
62a047337c
Merge pull request #161 from ajayyy/testing
Testing
2020-10-11 13:36:41 -04:00
Joe Dowd
b244b1e1ad reverted test to 404 2020-10-06 23:25:16 +01:00
Nanobyte
cce20319ad Submission UUID generation moved to function
See issue #139
2020-10-06 15:59:32 +02:00
Nanobyte
8e33fdf49f Added segmentShift
See #151
2020-10-04 21:37:35 +02:00
Joe Dowd
fe91d13ff3 removed old functionality comments 2020-10-01 00:53:13 +01:00
Joe Dowd
4cea3c2a3b Added [] return rather than 404 for no segments with matching hash 2020-10-01 00:51:58 +01:00
Nanobyte
36f654f41c Blocking users with too many active warnings from submitting votes and submissions 2020-09-16 22:40:11 +02:00
Ajay Ramachandran
3c79c0f7a8
Remove extra test case 2020-09-16 13:48:54 -04:00
Joe Dowd
075cb9d5f2
added warning system
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2020-09-16 00:56:10 +02:00
Nanobyte
b52a862f4f
Merge branch 'master' into feature/getuserinfo 2020-09-15 19:08:56 +02:00
Ajay Ramachandran
d3463bbef2 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into testing
# Conflicts:
#	src/routes/postSkipSegments.js
#	test/cases/voteOnSponsorTime.js
2020-09-15 11:56:14 -04:00
Nanobyte
43db13ab3f Added getUserInfo endpoint
This endpoint provides the following data about the user:

* userID
* userName
* minutesSaved
* segmentCount
* viewCount
2020-09-14 09:17:35 +02:00
Ajay Ramachandran
7a83e7901a
Merge pull request #131 from ajayyy/query-by-hash-prefix
Hash prefix fixes
2020-09-11 17:45:58 -04:00
Ajay Ramachandran
0c14560eaa
Merge branch 'master' into nb-mod-fetch 2020-09-11 17:32:14 -04:00
Joe Dowd
a068e194e9 added test for change category 2020-09-09 21:57:59 +01:00
Joe Dowd
9d94067cd0 Added youtube api cache (optional) 2020-09-08 17:37:29 +01:00
Andrew Lee
66c3109037 Add Discord webhook for videos that fail NB check 2020-09-05 18:07:43 -04:00