Commit graph

1253 commits

Author SHA1 Message Date
Michael C
c0074c9f8c
add tests 2021-09-18 23:24:23 -04:00
Michael C
0fc39cf5f2
fix logic in getLockReason 2021-09-18 02:47:34 -04:00
Michael C
61d7103f82
create getLockReason 2021-09-13 10:57:46 -04:00
Ajay Ramachandran
1e05c04a39 Allow mute and skip segments with same times 2021-09-05 22:40:40 -04:00
Ajay Ramachandran
1823a91d54 Limit mute action type to specific categories 2021-09-04 00:33:37 -04:00
Ajay Ramachandran
6f29b807c5
Merge pull request #356 from mchangrh/patch-1
avoid unnecessary eslint-disable-line
2021-09-03 19:20:24 -04:00
Michael M. Chang
b50b215f20
avoid unnecessary eslint-disable-line 2021-09-03 17:48:00 -04:00
Ajay Ramachandran
33318ef4c6 Add youtube api cache 2021-09-02 18:33:52 -04:00
Ajay Ramachandran
2a284d7f25 Treat segments where end time of one equals start time of the other as not overlapping 2021-09-02 13:07:49 -04:00
Ajay Ramachandran
9cbea88f6f
Merge pull request #353 from mchangrh/statusOptions
get status with options
2021-09-02 12:04:38 -04:00
Ajay Ramachandran
2a1b645241
Merge pull request #348 from mchangrh/searchSegments
add getSearchSegments endpoint
2021-09-02 00:53:55 -04:00
Michael C
74626f8e3f
more endpoints! 2021-09-01 23:49:18 -04:00
Michael C
fa1166e5d8
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into searchSegments 2021-09-01 23:26:55 -04:00
Michael C
664db71104
get status with options 2021-09-01 23:24:43 -04:00
Ajay Ramachandran
cfefb7c629
Merge pull request #352 from mchangrh/getStatus
add getStatus and cases
2021-09-01 17:11:25 -04:00
Michael C
e12724af15
add getStatus and cases 2021-09-01 16:52:41 -04:00
Ajay Ramachandran
d6a986d6cf Disable shadow hidden when vip upvotes 2021-09-01 15:28:39 -04:00
Michael C
e9bffd0cf2
add test cases and fixed bugs 2021-09-01 13:53:06 -04:00
Michael C
9bef529486
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into searchSegments 2021-08-31 23:10:04 -04:00
Ajay Ramachandran
ba7fb6525f Allow VIP to submit poi segments at any time 2021-08-31 12:27:15 -04:00
Ajay Ramachandran
df904e3744
Merge pull request #350 from mchangrh/poi-min-start-time
add config key for poiMinimumStartTime
2021-08-31 12:25:17 -04:00
Ajay Ramachandran
b369916904
Merge pull request #347 from mchangrh/beautify-nginx
Beautify nginx
2021-08-31 12:23:57 -04:00
Ajay Ramachandran
13480fe96c
Merge pull request #346 from mchangrh/update-dependencies
Update dependencies & eslint
2021-08-31 12:23:48 -04:00
Ajay Ramachandran
44711267fd Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2021-08-31 12:10:25 -04:00
Ajay Ramachandran
9849fba97a Don't crash if failed to get ip from db 2021-08-31 12:10:23 -04:00
Michael C
bb02033567
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into searchSegments 2021-08-31 01:18:18 -04:00
Michael C
aab95a1adc
add config key for poiMinimumStartTime 2021-08-29 21:43:21 -04:00
Ajay Ramachandran
9f762ac206
Merge pull request #349 from mchangrh/update-matrix
update matrix link
2021-08-29 21:27:16 -04:00
Michael C
5f8a319f48
update matrix link 2021-08-29 14:58:41 -04:00
Ajay Ramachandran
24e82309c4
Merge pull request #345 from mchangrh/poi-restriction
disallow POI before 1 second
2021-08-28 16:18:52 -04:00
Michael C
5310205911
catch and throw error outside of if 2021-08-28 01:54:50 -04:00
Michael C
9f7abf1865
Revert "fix error with errors"
This reverts commit 7601a1d4bf.
2021-08-28 01:53:53 -04:00
Michael C
e53f65f324
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into update-dependencies 2021-08-28 01:49:23 -04:00
Michael C
7601a1d4bf
fix error with errors 2021-08-28 01:48:48 -04:00
Michael C
9e488b8917
Merge branch 'master' of github.com:mchangrh/SponsorBlockServer into poi-restriction 2021-08-28 01:39:52 -04:00
Michael C
b3320ab0fd
submit test as poi_highlight 2021-08-28 01:38:00 -04:00
Michael M. Chang
d494c23059
Update src/routes/postSkipSegments.ts
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2021-08-28 01:36:41 -04:00
Ajay Ramachandran
7ef28d859f
Merge pull request #343 from mchangrh/409-ban-exists
re-shadowban user
2021-08-28 00:20:22 -04:00
Ajay Ramachandran
c3a5b22dad Move unHideSubmissions to helper function 2021-08-28 00:18:31 -04:00
Ajay Ramachandran
dea0bce0c4
Merge pull request #342 from mchangrh/no-colon
throw error 400 when start or endtime has colon
2021-08-28 00:14:52 -04:00
Michael C
0d6731fcc6
remove accidental inclusion of api-prop 2021-08-27 21:47:30 -04:00
Michael C
840ccb517e
add getSearchSegments endpoint 2021-08-27 21:46:39 -04:00
Michael C
656d81e5dd
reverting some ugly tabs 2021-08-27 17:59:40 -04:00
Michael C
50df8e7dd9
prettify nginx.conf
- align to tab
- align to block
- remove blank lines & trailing whitespaces

- 404 on database.db
- 404 on /download
- 404 on /test
2021-08-27 17:50:50 -04:00
Michael C
1c2dd055c1
Update dependencies & eslint
- update API-Docs link
- cast err as string to appease eslint
- update package and bump minimum to fix security issue
- removed unnecessary filters from gitignore
2021-08-27 17:09:31 -04:00
Michael C
c448bb3d9a
add test case 2021-08-27 16:44:29 -04:00
Michael C
268008945c
disallow POI before 1 second 2021-08-27 16:41:26 -04:00
Ajay Ramachandran
d99ffdabd7 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2021-08-25 18:51:24 -04:00
Ajay Ramachandran
4f981c1229 Clarify lock reason 2021-08-25 18:51:22 -04:00
Michael C
265a01dcde
re-shadowban user
if user is already shadowbanned but unhideOldSubmissions is true, sets all submissions to hidden. If not true, then return 409 duplicate
2021-08-25 01:56:34 -04:00