Commit graph

584 commits

Author SHA1 Message Date
Joe Dowd
62916f6a7e reverted to 404 sith empty array 2020-10-06 23:22:48 +01: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
Ajay Ramachandran
211562a0d6 Don't send webhooks for duplicate votes 2020-09-16 09:30:26 -04:00
Ajay Ramachandran
a7933c925b Fix removing undo vote 2020-09-15 13:10:55 -04:00
Ajay Ramachandran
be86f43947 Added default options 2020-09-15 12:22:28 -04:00
Ajay Ramachandran
a86dc0fc7b Changed redis polyfill to not throw an error 2020-09-15 12:16:34 -04:00
Ajay Ramachandran
eaaf3b8812 Add pollyfill for redis set 2020-09-15 12:15:23 -04: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
Ajay Ramachandran
4a865c4fb8
Merge pull request #142 from ajayyy/experimental
Don't call webhooks twice
2020-09-13 18:28:41 -04:00
Ajay Ramachandran
70a526fb4f Don't call webhooks twice 2020-09-13 18:27:02 -04:00
Ajay Ramachandran
0839c6b6f9
Merge pull request #81 from andrewzlee/nb-mod-fetch
Add NB to automod process
2020-09-13 11:15:35 -04: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
928d41c52d
Merge pull request #136 from Joe-Dowd/hash-prefix-db
Hash prefix db
2020-09-11 17:44:48 -04:00
Ajay Ramachandran
fdc20e28ff
Merge pull request #134 from Joe-Dowd/youtube-cache
Youtube cache
2020-09-11 17:37:21 -04:00
Ajay Ramachandran
0c14560eaa
Merge branch 'master' into nb-mod-fetch 2020-09-11 17:32:14 -04:00
Ajay Ramachandran
a49db96d49 Clarify error message 2020-09-11 17:30:54 -04:00
Ajay Ramachandran
66642e7bdf
Merge pull request #138 from ajayyy/experimental
Fix error messages in postSkipSegments
2020-09-11 17:22:52 -04:00
Andrew Lee
6843e22a7b Change automod check to call YT and NB API a single time per submission 2020-09-11 17:08:41 -04:00
Ajay Ramachandran
4baf13f82c Fix error messages in postSkipSegments 2020-09-11 16:35:12 -04:00
Ajay Ramachandran
f80e6887fe
Merge pull request #137 from ajayyy/experimental
Add error message for 400 errors
2020-09-09 21:36:21 -04:00
Ajay Ramachandran
548061ff13 Add error message for 400 errors 2020-09-09 21:32:47 -04:00
Ajay Ramachandran
9d9cb4f139
Merge pull request #135 from MRuy/checking-categories
Adding check to only allow a list of categories
2020-09-09 20:20:04 -04:00
Joe Dowd
0611ad54d0 fixed db upgrade filesize inflation 2020-09-09 23:14:20 +01:00
Joe Dowd
29a6528e31 Merge branch 'testing' of github.com:ajayyy/SponsorBlockServer into testing 2020-09-09 22:51:05 +01:00
Nanobyte
3bf92fe2ad
Merge pull request #1 from Joe-Dowd/checking-categories
added test for change category
2020-09-09 23:00:29 +02:00
Joe Dowd
a068e194e9 added test for change category 2020-09-09 21:57:59 +01:00
Nanobyte
6485fd0f88 Update test.json 2020-09-09 18:57:47 +02:00
Nanobyte
dec0971c14 Adding check to only allow a list of categories 2020-09-09 16:40:13 +02:00
Joe Dowd
bbe31149b4 cleaner logging 2020-09-08 17:43:51 +01:00
Joe Dowd
b7ea0fa681 remove logging 2020-09-08 17:39:53 +01:00
Joe Dowd
d72a0ca009 Merge branch 'testing' of github.com:ajayyy/SponsorBlockServer into youtube-cache 2020-09-08 17:38:47 +01:00
Joe Dowd
9d94067cd0 Added youtube api cache (optional) 2020-09-08 17:37:29 +01:00
Andrew Lee
137a6dc771 Make db queries one request 2020-09-07 13:16:03 -04:00
Andrew Lee
ce36806169 Added usernames to NB Discord webhooks 2020-09-07 12:29:13 -04:00
Ajay Ramachandran
6fe8dfc188
Merge pull request #133 from ajayyy/experimental
Don't fail when YouTube API fails
2020-09-07 10:25:27 -04:00
Ajay Ramachandran
cb386b7f8d Don't fail when YouTube API fails 2020-09-07 10:23:51 -04:00
Andrew Lee
8b132c37a0 Disable NB automod vote decrease 2020-09-06 21:10:28 -04:00
Andrew Lee
6e8d644574 Removed unnecessary YT API call from NB Discord webhook 2020-09-06 21:08:51 -04:00
Ajay Ramachandran
1536cc085c Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into testing 2020-09-06 13:37:23 -04:00
Ajay Ramachandran
87c7ec405d
Merge pull request #132 from ajayyy/experimental
Made report by submitter work for VIPs
2020-09-06 13:37:10 -04:00
Ajay Ramachandran
9bcecae9a2 Made report by submitter work for VIPs 2020-09-06 13:35:14 -04:00
Andrew Lee
fbd8113217 Bug fix automod params 2020-09-05 18:26:20 -04:00
Andrew Lee
66c3109037 Add Discord webhook for videos that fail NB check 2020-09-05 18:07:43 -04:00
Andrew Lee
e8116de4bb Update configs for NB discord URLs 2020-09-05 17:03:52 -04:00
Ajay Ramachandran
c3de215b08 Add index for hashed videoID 2020-09-04 13:49:28 -04:00
Ajay Ramachandran
8de7801662 Removed extra test case 2020-09-04 12:34:05 -04:00
Ajay Ramachandran
ac80b2322b Fix broken shadow ban check 2020-09-04 12:16:13 -04:00
Ajay Ramachandran
70632dd33a
Merge pull request #127 from Joe-Dowd/query-by-hash-prefix
Query by hash prefix
2020-09-04 11:47:55 -04:00
Ajay Ramachandran
9ee5c508e4 Switch to null instead of undefined and fix indentation 2020-09-03 23:54:43 -04:00