Commit graph

976 commits

Author SHA1 Message Date
Ajay Ramachandran
98b5fa7bce
Merge pull request #274 from mchangrh/getUserID
GET api/userID
2021-06-27 18:10:35 -04:00
Michael C
33a45ce0a2
fix TS declarations 2021-06-27 01:05:06 -04:00
Ajay Ramachandran
07ab48da1f Add disk caching for youtube api calls
Fixes https://github.com/ajayyy/SponsorBlockServer/issues/239
2021-06-26 23:21:51 -04:00
Michael C
2f50d80a75
add explit param 2021-06-26 23:02:52 -04:00
Michael C
b06a6fbb51
redos prevention 2021-06-25 15:57:41 -04:00
Michael C
f2490beea2
put in limits and escapes 2021-06-25 14:35:51 -04:00
Michael C
09ab1dabdf
set limit of 64 characters for lookup 2021-06-25 11:57:27 -04:00
Ajay Ramachandran
e1cf360825
Merge pull request #273 from mchangrh/more-tests
more edge cast test cases
2021-06-25 10:48:27 -04:00
Ajay Ramachandran
de8dd1bb8d
Merge pull request #272 from HaiDang666/271_database-schema
Database table visualization
2021-06-25 10:47:35 -04:00
Michael C
f29bafe89a
fiix tests 2021-06-25 03:37:27 -04:00
Michael C
d4695f0192
add getUserID and tests 2021-06-25 03:33:41 -04:00
Michael C
2ab782f4b6
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-tests 2021-06-25 00:54:38 -04:00
Haidang666
aa29ad2014 Add database table schema, Fix indent 2021-06-25 10:44:08 +07:00
Ajay Ramachandran
e7fed0f3cf
Merge pull request #270 from HaiDang666/240_purge-all-segments
Add purge all segments of a video for VIP user
2021-06-24 02:17:52 -04:00
Ajay Ramachandran
3c3c963fd3 Fixed captialization error 2021-06-24 02:16:26 -04:00
Michael C
ae8a25e481
more edge cast test cases
- check for null instead of 0 #267
- check that parameter specifying multiple overrides repeating parameters
2021-06-24 01:37:51 -04:00
Ajay Ramachandran
8312cfc0aa Move purgeAllSegments up in app.ts 2021-06-24 01:37:50 -04:00
Ajay Ramachandran
0bbb2aa60d Add one more check in tests 2021-06-24 01:36:54 -04:00
Haidang666
9b43ce0ab7 Add purge all segments of VideoId 2021-06-24 12:29:02 +07:00
Ajay Ramachandran
f71cd57bc7 Fix top users 2021-06-24 01:25:26 -04:00
Ajay Ramachandran
1570657e28
Merge pull request #268 from mchangrh/pg-ci
PostgreSQL docker CI
2021-06-24 00:10:37 -04:00
Ajay Ramachandran
0fbfee8dc8 Use logger instead of console.log 2021-06-24 00:08:19 -04:00
Ajay Ramachandran
7269dc4e5f Remove old index 2021-06-24 00:02:00 -04:00
Ajay Ramachandran
c5245cb8e2 Save more info in unlisted video endpoint 2021-06-23 23:58:33 -04:00
Ajay Ramachandran
15b3cb20b3 Remove print statement 2021-06-23 20:11:11 -04:00
Ajay Ramachandran
42da1b6c23 Add endpoint to submit unlisted videos
A temporary measure which will be removed next month

https://support.google.com/youtube/answer/9230970
2021-06-23 19:19:30 -04:00
Michael C
b62db5675d
update CI names and path
move docker-compose to new folder
rename action names
2021-06-23 15:48:02 -04:00
Michael C
da92f2082d
set up postgres CI route
uses env flag TEST_POSTGRES since the sqlite test also runs with env flag CI true
2021-06-23 15:35:08 -04:00
Ajay Ramachandran
746dc4f81d
Merge pull request #232 from MRuy/fix/prepare-statements
Fix/prepare statements
2021-06-21 19:06:29 -04:00
Nanobyte
7b9e06a471
Merge branch 'master' into fix/prepare-statements 2021-06-22 01:05:48 +02:00
Nanobyte
7c3c1988a3 Fix getTopUsers 2021-06-22 01:00:22 +02:00
Nanobyte
a005a961f9 Fix test cases 2021-06-22 00:59:56 +02:00
Nanobyte
fb87e180da Fix postgres type cast
Postgres is handling numbers as 64bit and requires special handling to prevent returning numbers as string
2021-06-22 00:59:22 +02:00
Nanobyte
4b1f5b4a44 Remove console log from test case 2021-06-22 00:56:00 +02:00
Ajay Ramachandran
0b24871415
Fix comment in reputation test 2021-06-21 18:42:54 -04:00
Ajay Ramachandran
a7cb0959e2
Merge pull request #262 from mchangrh/repeated-param
parse repeated parameters
2021-06-21 14:21:17 -04:00
Nanobyte
11e6c93932 Merge remote-tracking branch 'upstream/master' into fix/prepare-statements 2021-06-21 18:19:50 +02:00
Michael C
dd74dd3b1b
parse repeated parameters 2021-06-21 00:33:48 -04:00
Ajay Ramachandran
9351bef61c Add preview category to leaderboard 2021-06-20 15:56:02 -04:00
Ajay Ramachandran
f6d79616a4 Fix leaderboard not working with postgres 2021-06-20 13:59:53 -04:00
Ajay Ramachandran
48d88614fb Move shadow ban list to public db
Warning: Migration is not automatic
2021-06-20 13:41:35 -04:00
Ajay Ramachandran
f45241d494
Merge pull request #259 from mchangrh/shadowban-clear-cache
clearCache after shadowban
2021-06-20 13:05:49 -04:00
Ajay Ramachandran
8d405c1013
Merge pull request #261 from DetachHead/master
remove async modifier which is no longer allowed in interfaces
2021-06-20 13:05:17 -04:00
Ajay Ramachandran
df1d742339 Use for each instead of map 2021-06-20 13:04:52 -04:00
Ajay Ramachandran
96015d402b Make reputation take into account self downvotes 2021-06-20 12:57:32 -04:00
DetachHead
85a30369c4 remove async modifier which is no longer allowed in interfaces 2021-06-19 17:59:18 +10:00
Michael C
47289db13e
clearCache after shadowban 2021-06-18 20:57:01 -04:00
Ajay Ramachandran
1770608525
Merge pull request #257 from mchangrh/vip-cache-clear
VIP endpoint for clearing cache of video
2021-06-18 19:01:08 -04:00
Ajay Ramachandran
183462ff85
Add brackets 2021-06-18 18:49:37 -04:00
Michael C
b84241c6ad
use isUserVIP instead 2021-06-18 18:44:43 -04:00