Commit graph

849 commits

Author SHA1 Message Date
Max Baumann
967715ab3b
add new missing field checks 2020-10-21 16:31:13 +02:00
Ajay Ramachandran
7b818154dd
Merge pull request #176 from ajayyy/experimental
Don't fail when the YouTube API errors
2020-10-18 01:09:13 -04:00
Ajay Ramachandran
4f6ff4d177 Don't fail when the YouTube API errors 2020-10-18 01:08:52 -04:00
Ajay Ramachandran
0968394c84
Merge pull request #170 from ajayyy/experimental
Attach private db for read only
2020-10-15 14:27:17 -04:00
Ajay Ramachandran
809b09a1c2 Attach private db for read only 2020-10-15 14:25:34 -04:00
Ajay Ramachandran
b5f93edc7e
Merge pull request #169 from ajayyy/experimental
Increase max username size
2020-10-15 11:37:31 -04:00
Ajay Ramachandran
0a72a64489 Don't cache when cacheTimeMs is NaN 2020-10-15 11:33:47 -04:00
Ajay Ramachandran
d6ca579495 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into experimental 2020-10-15 11:32:25 -04:00
Ajay Ramachandran
34b8119a21 Increase max username size 2020-10-14 23:12:04 -04: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
1f584984f4
Merge pull request #156 from MRuy/147-add-cache-for-gettopusers
Add cache for getTopUsers
2020-10-14 18:48:47 -04: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
a7a9c0cdf6
Merge pull request #164 from Joe-Dowd/delete-nosegment
added delete nosegment endpoint
2020-10-14 18:40:22 -04:00
Ajay Ramachandran
e979cbba4e
Merge branch 'master' into 147-add-cache-for-gettopusers 2020-10-14 18:35:15 -04:00
Ajay Ramachandran
d0b34e057b
Merge pull request #143 from MRuy/feature/getuserinfo
Added getUserInfo endpoint
2020-10-14 18:34:33 -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
James
d1d04b3fb4
Merge pull request #1 from Joe-Dowd/reject-80percent-total-submissions
made youtube api cache have constant part value
2020-10-14 14:56:22 -05: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
bcf90e8094 fix formatting and add more comments 2020-10-14 00:43:29 -05: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
0e71f80a78
Merge pull request #162 from ajayyy/experimental
Don't allow dots in videoID
2020-10-11 14:13:19 -04:00
Ajay Ramachandran
e0df3d4208 Don't allow dots in videoID 2020-10-11 14:11:20 -04:00
Ajay Ramachandran
62a047337c
Merge pull request #161 from ajayyy/testing
Testing
2020-10-11 13:36:41 -04:00
Ajay Ramachandran
c25d66b11b
Merge pull request #160 from ajayyy/experimental
Fix example error codes
2020-10-11 13:36:11 -04:00
Ajay Ramachandran
11eb742540 Uncomment code 2020-10-11 13:29:54 -04:00
Ajay Ramachandran
d7763b688d Fix example error codes 2020-10-11 13:14:52 -04:00
Ajay Ramachandran
9aba0560a1 Fix indentation 2020-10-11 13:13:16 -04:00
Ajay Ramachandran
70bc239d01
Merge pull request #159 from ajayyy/experimental
Setup different ratelimit for views and votes
2020-10-11 13:12:49 -04:00
Ajay Ramachandran
a5f5f72346 Setup different ratelimit for views and votes 2020-10-11 13:07:57 -04:00
Ajay Ramachandran
73b7332639
Add vote rate limit to views as well 2020-10-11 12:42:02 -04:00
Ajay Ramachandran
64f93cec65
Merge pull request #157 from MRuy/add-vote-rate-limit
Add vote rate limit
2020-10-11 12:39:42 -04:00
Nanobyte
58097f0d60 Add vote rate limit 2020-10-11 16:17:17 +02:00
Nanobyte
41dc16453e
Update src/utils/createMemoryCache.js
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2020-10-09 08:58:31 +02:00
Nanobyte
fb7ff50feb
Update src/utils/createMemoryCache.js
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2020-10-09 08:58:15 +02:00
Ajay Ramachandran
97383a71af
Merge pull request #155 from MRuy/cleanup-uuid-generation
Submission UUID generation moved to function
2020-10-08 22:23:35 -04:00
Ajay Ramachandran
03a142ff62
Merge pull request #152 from Joe-Dowd/nosegments-404-to-array
get segments by hash 404 to array
2020-10-08 22:22:46 -04:00
Joe Dowd
b244b1e1ad reverted test to 404 2020-10-06 23:25:16 +01:00
Joe Dowd
62916f6a7e reverted to 404 sith empty array 2020-10-06 23:22:48 +01:00
Nanobyte
25b91af8bc Add cache for getTopUsers
See #147
2020-10-06 23:25:11 +02: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
Ajay Ramachandran
7dcdc883e4 Fix no segments error message typo 2020-09-25 16:57:24 -04:00
Ajay Ramachandran
31fef27ffd Fix no segments error formatting 2020-09-25 14:50:15 -04:00