Ajay Ramachandran
fcd0fb7ac7
Merge pull request #616 from ajayyy/dependabot/npm_and_yarn/js-yaml-3.14.2
...
Bump js-yaml from 3.14.1 to 3.14.2
2025-11-17 16:22:24 -05:00
dependabot[bot]
b97b50a8f6
Bump js-yaml from 3.14.1 to 3.14.2
...
Bumps [js-yaml](https://github.com/nodeca/js-yaml ) from 3.14.1 to 3.14.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.1...3.14.2 )
---
updated-dependencies:
- dependency-name: js-yaml
dependency-version: 3.14.2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-17 17:48:52 +00:00
Ajay
6d5b6dd3ae
Add service test case for get skip segments
2025-10-14 03:46:27 -04:00
Ajay
0412386870
Add support for spotify service
2025-10-14 03:34:02 -04:00
Ajay
1eedc9fa09
Remove old test
2025-10-03 15:13:31 -04:00
Ajay
c1fc6519b4
Remove username restriction
2025-10-03 15:09:02 -04:00
Ajay
2d5d3637fd
Fix errors
2025-09-30 23:02:16 -04:00
Ajay
99ed7698c4
Handle trimmed UUID duplicates
2025-09-30 22:52:32 -04:00
Ajay Ramachandran
c0ee5206a2
Merge pull request #613 from ajayyy/dependabot/npm_and_yarn/tar-fs-2.1.4
...
Bump tar-fs from 2.1.3 to 2.1.4
2025-09-26 23:58:45 -04:00
dependabot[bot]
9c65f3ca34
Bump tar-fs from 2.1.3 to 2.1.4
...
Bumps [tar-fs](https://github.com/mafintosh/tar-fs ) from 2.1.3 to 2.1.4.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v2.1.3...v2.1.4 )
---
updated-dependencies:
- dependency-name: tar-fs
dependency-version: 2.1.4
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-26 19:54:27 +00:00
Ajay Ramachandran
c2c92cd168
Merge pull request #610 from mini-bomba/warning-history
...
Keep a history of warnings in the public database
2025-09-19 02:15:59 -04:00
Ajay Ramachandran
b4ea2018d5
Merge pull request #596 from ajayyy/dependabot/npm_and_yarn/multi-456de2e4f1
...
Bump serialize-javascript and mocha
2025-09-18 16:08:32 -04:00
dependabot[bot]
da448af4cf
Bump serialize-javascript and mocha
...
Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript ) to 6.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha ). These dependencies need to be updated together.
Updates `serialize-javascript` from 6.0.0 to 6.0.2
- [Release notes](https://github.com/yahoo/serialize-javascript/releases )
- [Commits](https://github.com/yahoo/serialize-javascript/compare/v6.0.0...v6.0.2 )
Updates `mocha` from 10.1.0 to 10.8.2
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v10.1.0...v10.8.2 )
---
updated-dependencies:
- dependency-name: serialize-javascript
dependency-type: indirect
- dependency-name: mocha
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-18 19:34:12 +00:00
Ajay Ramachandran
33a7934f33
Merge pull request #607 from ajayyy/dependabot/npm_and_yarn/form-data-4.0.4
...
Bump form-data from 4.0.0 to 4.0.4
2025-09-18 15:32:47 -04:00
Ajay Ramachandran
a2cad19167
Merge pull request #612 from ajayyy/dependabot/npm_and_yarn/multi-e981fcb12d
...
Bump path-to-regexp and express
2025-09-18 15:32:39 -04:00
dependabot[bot]
721720a60d
Bump path-to-regexp and express
...
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp ) to 1.9.0 and updates ancestor dependency [express](https://github.com/expressjs/express ). These dependencies need to be updated together.
Updates `path-to-regexp` from 1.8.0 to 1.9.0
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases )
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md )
- [Commits](https://github.com/pillarjs/path-to-regexp/compare/v1.8.0...v1.9.0 )
Updates `express` from 4.21.1 to 4.21.2
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/4.21.2/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.21.1...4.21.2 )
---
updated-dependencies:
- dependency-name: path-to-regexp
dependency-version: 1.9.0
dependency-type: indirect
- dependency-name: express
dependency-version: 4.21.2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-13 13:49:39 +00:00
Ajay Ramachandran
220fe52013
Merge pull request #611 from ajayyy/dependabot/npm_and_yarn/axios-1.12.1
...
Bump axios from 1.8.4 to 1.12.1
2025-09-13 09:48:30 -04:00
dependabot[bot]
07c0f5cfbd
Bump axios from 1.8.4 to 1.12.1
...
Bumps [axios](https://github.com/axios/axios ) from 1.8.4 to 1.12.1.
- [Release notes](https://github.com/axios/axios/releases )
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md )
- [Commits](https://github.com/axios/axios/compare/v1.8.4...v1.12.1 )
---
updated-dependencies:
- dependency-name: axios
dependency-version: 1.12.1
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-13 12:38:31 +00:00
mini-bomba
899000309f
make eslint scream about promises, then fix all lints
...
also rewrite a bunch of test suites from using done callbacks to using
async functions - it's way too easy to forget about a .catch() clause
2025-09-11 01:14:40 +02:00
mini-bomba
5664ff4f58
fix missed awaits for db.prepare in test cases
2025-09-10 23:24:44 +02:00
mini-bomba
c942eea640
autogenerate userids for the postwarning test suite
2025-09-10 22:59:54 +02:00
mini-bomba
b09e552d1d
add disableTime column to the warnings table
2025-09-10 22:50:43 +02:00
mini-bomba
3e74a0da58
Remove warning expiry, save warning history
2025-09-10 18:54:56 +02:00
mini-bomba
1b99a8534c
type IDatabase::prepare with overloads
2025-09-10 17:08:39 +02:00
Ajay
3711286ef2
Fix old xss prevention only removing first less than symbol
2025-07-30 01:26:02 -04:00
Ajay
74b9b123a8
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2025-07-25 02:15:29 -04:00
Ajay
367cb24478
Add hook category
2025-07-25 02:15:27 -04:00
dependabot[bot]
41c91b8b03
Bump form-data from 4.0.0 to 4.0.4
...
Bumps [form-data](https://github.com/form-data/form-data ) from 4.0.0 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases )
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md )
- [Commits](https://github.com/form-data/form-data/compare/v4.0.0...v4.0.4 )
---
updated-dependencies:
- dependency-name: form-data
dependency-version: 4.0.4
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-21 23:11:19 +00:00
Ajay Ramachandran
40c4ec7437
Merge pull request #606 from ajayyy/dependabot/npm_and_yarn/tar-fs-2.1.3
...
Bump tar-fs from 2.1.2 to 2.1.3
2025-06-03 14:40:36 -04:00
dependabot[bot]
70ce320737
Bump tar-fs from 2.1.2 to 2.1.3
...
Bumps [tar-fs](https://github.com/mafintosh/tar-fs ) from 2.1.2 to 2.1.3.
- [Commits](https://github.com/mafintosh/tar-fs/commits )
---
updated-dependencies:
- dependency-name: tar-fs
dependency-version: 2.1.3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-03 09:19:22 +00:00
Ajay Ramachandran
0bfc9b30f5
Merge pull request #605 from mini-bomba/fix/banned-webhooks
...
don't send dearrow webhooks for banned users
2025-05-29 12:09:59 -04:00
mini-bomba
bce5385864
shortcircuit the new user check for banned users
2025-05-26 16:41:55 +02:00
mini-bomba
f71c4ceba9
don't send dearrow webhooks for banned users
2025-05-25 22:46:23 +02:00
Ajay
69ca711bb3
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2025-04-28 19:17:55 -04:00
Ajay
e519986027
Fix dearrow hiding
2025-04-28 19:17:54 -04:00
Ajay Ramachandran
c0e7401a73
Merge pull request #604 from mini-bomba/limit-usernames
...
Limit username creation
2025-04-28 19:04:03 -04:00
Ajay
314461c9f0
Fix old user check
2025-04-28 19:03:24 -04:00
mini-bomba
655789e62d
Limit username creation
2025-04-29 00:10:20 +02:00
Ajay
339ba127eb
Fix log
2025-04-28 02:59:15 -04:00
Ajay
da393da9e9
Fix log
2025-04-28 02:56:36 -04:00
Ajay
aa2c7bf6ea
Fix log
2025-04-28 02:41:34 -04:00
Ajay
c82708aae8
Fix log
2025-04-28 02:40:57 -04:00
Ajay
26c575d37a
Add log
2025-04-28 02:32:17 -04:00
Ajay Ramachandran
1b3b1b1cb3
Merge pull request #603 from mini-bomba/request-validator-rule-names
...
Add request validator rule names
2025-04-26 01:46:42 -04:00
mini-bomba
9bc4bf8c7b
Add request validator rule names
2025-04-26 02:10:33 +02:00
Ajay
cbc38c5ac8
Add another logging webhook
2025-04-25 17:43:01 -04:00
Ajay Ramachandran
e7f3753077
Merge pull request #602 from mini-bomba/request-validator
...
Create an engine for rule-based request validation
2025-04-25 17:37:25 -04:00
mini-bomba
f44d3cd92c
rephrase old rejection logs
2025-04-25 21:52:39 +02:00
mini-bomba
4db4e9458e
hook up extra functions to the request validator
2025-04-25 21:52:39 +02:00
mini-bomba
b2cd048909
load request validator rules from env as json
2025-04-25 21:11:30 +02:00
mini-bomba
5c249fb02b
test cases for the request validator engine
2025-04-25 21:11:30 +02:00
mini-bomba
f7e5394a18
create a request validator engine
2025-04-25 21:11:30 +02:00
Ajay
161db6df0c
Don't error if failing to parse vanced ua
2025-04-25 13:51:46 -04:00
Ajay
920d288f0b
Add title to webhook
2025-04-25 13:00:34 -04:00
Ajay
0d005c23bf
Add another validity filter
2025-04-25 12:55:44 -04:00
Ajay
9f745d3a8b
Move permission check
2025-04-21 23:50:46 -04:00
Ajay
39f8dc6c22
Fix revanced ua
2025-04-21 20:14:43 -04:00
Ajay
08ba5c21b1
Fix validity check
2025-04-21 19:39:46 -04:00
Ajay
cfd61dc8dd
Validity check
2025-04-21 19:26:42 -04:00
Ajay
039fb3ac7a
More logs
2025-04-21 12:39:14 -04:00
Ajay
fccebfa487
Fixed webhook again
2025-04-21 11:27:16 -04:00
Ajay
6130ac8150
Change color for dearrow webhook
2025-04-21 11:20:08 -04:00
Ajay
7e681d2cd5
Fix webhook newlines
2025-04-21 11:15:30 -04:00
Ajay
707b36d161
Fix user agent parser lower casing
2025-04-21 11:10:47 -04:00
Ajay
b849328fae
More logging
2025-04-21 10:53:49 -04:00
Ajay
3d596f4528
Save user agent for dearrow
2025-04-17 01:05:34 -04:00
Ajay
ed5a397a30
Improve permission check
2025-04-15 02:01:41 -04:00
Ajay
300642fd4f
Fix innertube failure handling
2025-04-12 00:44:10 -04:00
Ajay
46580322fc
Fix dearrow old submitter check
2025-04-11 02:44:19 -04:00
Ajay
318152dac6
ua
2025-04-11 02:41:17 -04:00
Ajay
8111d34b30
Fix dearrow threshold not configurable
2025-04-10 16:51:46 -04:00
Ajay
ac78dee210
Fix undefined error
2025-04-10 14:38:08 -04:00
Ajay
d18a4a13f2
Check dearrow vote history for new submitters
2025-04-10 12:47:32 -04:00
Ajay
8d40d61efc
Allow max users without a submitter threshold
2025-04-10 02:35:22 -04:00
Ajay
74f6224091
Add new user limit per 5 mins
2025-04-10 02:26:09 -04:00
Ajay
9b55dc5d4d
Add new config option
2025-04-08 16:52:16 -04:00
Ajay
8cd2138989
Use config for old submitter check
2025-04-08 16:50:04 -04:00
Ajay
e40af45c73
Fix query
2025-04-08 16:43:01 -04:00
Ajay
5de1fe4388
Fix post config url
2025-04-08 16:26:51 -04:00
Ajay
2ef3d68af0
Await promise not being awaited
2025-04-08 16:02:29 -04:00
Ajay
f67244663e
Use alias for getting server config
2025-04-08 15:56:23 -04:00
Ajay
00064d5a7c
Fix config fetching
2025-04-08 15:46:14 -04:00
Ajay
ac26aed21c
Add endpoints for config setting
2025-04-08 15:18:32 -04:00
Ajay
2aa3589312
Add ability to set config
2025-04-08 15:15:39 -04:00
Ajay
82af8f200b
Add better ua parsing
2025-04-08 14:21:24 -04:00
Ajay
69cb33aad0
Add logs
2025-04-08 13:23:24 -04:00
Ajay
3817d7fdba
Better submission error message
2025-04-08 13:21:01 -04:00
Ajay
34a6a83e44
Change dearrow permission requirements
2025-04-07 19:28:52 -04:00
Ajay
0967373cb2
Rename func
2025-04-07 00:57:48 -04:00
Ajay
b7794b57d0
Fix can vote checks
2025-04-07 00:57:08 -04:00
Ajay
550339db41
Add permission check in more places
2025-04-07 00:36:01 -04:00
Ajay
b69f050b44
Old submitter only
2025-04-07 00:29:53 -04:00
Ajay Ramachandran
59a986f32f
Merge pull request #600 from ajayyy/dependabot/npm_and_yarn/multi-b9f445934c
...
Bump semver and nodemon
2025-03-29 15:07:03 -04:00
dependabot[bot]
7088a1688d
Bump semver and nodemon
...
Bumps [semver](https://github.com/npm/node-semver ) to 7.7.1 and updates ancestor dependencies [semver](https://github.com/npm/node-semver ) and [nodemon](https://github.com/remy/nodemon ). These dependencies need to be updated together.
Updates `semver` from 7.3.7 to 7.7.1
- [Release notes](https://github.com/npm/node-semver/releases )
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md )
- [Commits](https://github.com/npm/node-semver/compare/v7.3.7...v7.7.1 )
Updates `semver` from 6.3.0 to 7.7.1
- [Release notes](https://github.com/npm/node-semver/releases )
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md )
- [Commits](https://github.com/npm/node-semver/compare/v7.3.7...v7.7.1 )
Updates `nodemon` from 2.0.20 to 3.1.9
- [Release notes](https://github.com/remy/nodemon/releases )
- [Commits](https://github.com/remy/nodemon/compare/v2.0.20...v3.1.9 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
- dependency-name: semver
dependency-type: indirect
- dependency-name: nodemon
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-29 04:55:45 +00:00
Ajay Ramachandran
f07f94fb09
Merge pull request #598 from ajayyy/dependabot/npm_and_yarn/tar-fs-2.1.2
...
Bump tar-fs from 2.1.1 to 2.1.2
2025-03-29 00:54:48 -04:00
Ajay Ramachandran
a7758a2608
Merge pull request #599 from ajayyy/dependabot/npm_and_yarn/axios-1.8.4
...
Bump axios from 1.7.7 to 1.8.4
2025-03-29 00:54:40 -04:00
dependabot[bot]
fd5bc43281
Bump axios from 1.7.7 to 1.8.4
...
Bumps [axios](https://github.com/axios/axios ) from 1.7.7 to 1.8.4.
- [Release notes](https://github.com/axios/axios/releases )
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md )
- [Commits](https://github.com/axios/axios/compare/v1.7.7...v1.8.4 )
---
updated-dependencies:
- dependency-name: axios
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-29 04:40:49 +00:00
dependabot[bot]
3633d0fbb4
Bump tar-fs from 2.1.1 to 2.1.2
...
Bumps [tar-fs](https://github.com/mafintosh/tar-fs ) from 2.1.1 to 2.1.2.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v2.1.1...v2.1.2 )
---
updated-dependencies:
- dependency-name: tar-fs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-28 22:28:04 +00:00
Ajay
aae56887da
Update gitignore
2025-03-12 02:46:05 -04:00
Ajay
4fe7cebcb3
Add caching for 5 length skip skip segment query
2025-03-12 02:45:59 -04:00
Ajay
31e678fdc2
Store titles for casual vote submissions
...
When an uploader changes the title, it will reset the casual votes
2025-02-17 03:16:57 -05:00
Ajay
d44ce3c2dc
Add casual votes table export
2025-02-16 14:43:55 -05:00
Ajay
5f9b4c8acc
Make casual downvotes apply to all categories
2025-02-13 04:03:38 -05:00
Ajay
d608125b41
Add endpoint for casual submission count
2025-02-12 03:52:03 -05:00
Ajay
fb3abb3216
Fix index for casual votes
2025-02-06 03:01:22 -05:00
Ajay
ccde64e90f
Change casual submission to allow submitting multiple categories
2025-02-06 02:57:09 -05:00
Ajay
4abf57b0ce
Save casual mode status in db
2025-02-06 02:51:13 -05:00
Ajay
07435b9af1
Add casual mode endpoint
2025-02-05 03:38:55 -05:00
Ajay Ramachandran
ab9cab8ff5
Merge pull request #582 from hanydd/dev_join
...
Change reduce to join function for simplicity
2025-02-03 20:55:55 -05:00
Ajay Ramachandran
311c653ea2
Merge pull request #592 from Choromanski/feature/node-deprecation
...
Upgraded github actions dependencies
2025-02-03 20:54:48 -05:00
Ajay Ramachandran
e92d47e1a4
Merge pull request #593 from ajayyy/dependabot/npm_and_yarn/multi-9f37c16f8f
...
Bump cookie and express
2025-02-03 20:54:22 -05:00
Ajay Ramachandran
3734b88cb5
Merge pull request #595 from mchangrh/patch-1
...
bump & lock rsync dockerfile
2025-01-18 12:54:45 -05:00
Michael M. Chang
00086d9001
bump & lock rsync dockerfile
2025-01-18 06:45:09 -08:00
Ajay
a37a552b17
Fix video labels keys not clearing properly
2025-01-18 03:32:55 -05:00
Ajay
fa29cfd3c6
Add endpoint to get segment ID
2025-01-18 02:56:57 -05:00
Ajay
be9d97ae2b
Add option to trim UUIDs in skip segments endpoint
2025-01-18 02:09:46 -05:00
Ajay
06f83cd8d4
Allow voting and viewing with partial UUID
2025-01-18 02:04:27 -05:00
Ajay
80b1019783
Allow video labels cashing with prefix of 4
2025-01-18 00:22:17 -05:00
Ajay
2455d2cd7e
Make hasStartSegment result optional
2025-01-17 23:59:17 -05:00
Ajay
e2a9976cd0
Add hasStartSegment to video label
2025-01-17 23:30:32 -05:00
Ajay
bba06511ce
Remove unnecessary parts of video labels request
2025-01-17 04:38:08 -05:00
Ajay
043268dc10
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2024-12-04 14:49:36 -05:00
Ajay
003fe77e72
Change backup retention
2024-12-04 14:49:34 -05:00
Ajay Ramachandran
efe59c5098
Merge pull request #594 from mini-bomba/dearrow_locked_vip_downvotes
...
Send a different message for VIP downvotes on locked titles
2024-11-14 19:56:02 -05:00
Ajay Ramachandran
7ef6452eb5
Double quote
2024-11-14 19:49:25 -05:00
mini-bomba
9c01b711a5
Send a different message for VIP downvotes on locked titles
2024-11-14 22:30:14 +01:00
Ajay
b2981fe782
Don't allow multiple downvotes on one submission
2024-11-10 15:21:40 -05:00
Ajay
405805ff89
Add check against missing api video detail failing to fetch
2024-11-07 02:24:39 -05:00
Ajay
01c306287a
Fix axios error handling
2024-11-06 21:23:15 -05:00
Ajay
826d49ba1f
Add support for floatie proxy
2024-11-04 15:04:43 -05:00
Ajay
b03057c5bf
Fix redis cache metrics generation
2024-10-30 02:35:59 -04:00
Ajay
54e03a389b
Remove string from metrics
2024-10-30 02:32:33 -04:00
Ajay
93f7161724
Only uploaded warned info for upvotes
2024-10-27 02:17:34 -04:00
dependabot[bot]
efa6c10d56
Bump cookie and express
...
Bumps [cookie](https://github.com/jshttp/cookie ) to 0.7.1 and updates ancestor dependency [express](https://github.com/expressjs/express ). These dependencies need to be updated together.
Updates `cookie` from 0.6.0 to 0.7.1
- [Release notes](https://github.com/jshttp/cookie/releases )
- [Commits](https://github.com/jshttp/cookie/compare/v0.6.0...v0.7.1 )
Updates `express` from 4.21.0 to 4.21.1
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/4.21.1/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.21.0...4.21.1 )
---
updated-dependencies:
- dependency-name: cookie
dependency-type: indirect
- dependency-name: express
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-19 12:03:41 +00:00
Ajay
e9c0c44528
Add new webhook for was warned
2024-10-18 03:08:24 -04:00
Brian Choromanski
4dfbb9039d
Upgraded more actions dependencies
2024-10-08 21:17:01 -04:00
Brian Choromanski
05c5cf57e4
Upgraded actions dependencies
2024-10-08 21:10:10 -04:00
Ajay
566eabdc31
Add metrics endpoint
2024-10-02 20:06:57 -04:00
Ajay Ramachandran
f26db7238a
Merge pull request #591 from ajayyy/dependabot/npm_and_yarn/multi-d66d039ac5
...
Bump serve-static and express
2024-09-17 02:30:27 -04:00
dependabot[bot]
fb05ec51d3
Bump serve-static and express
...
Bumps [serve-static](https://github.com/expressjs/serve-static ) to 1.16.2 and updates ancestor dependency [express](https://github.com/expressjs/express ). These dependencies need to be updated together.
Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases )
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md )
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2 )
Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0 )
---
updated-dependencies:
- dependency-name: serve-static
dependency-type: indirect
- dependency-name: express
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-17 06:18:07 +00:00
Ajay
eeb9f1b02f
Log more when redis increment fails
2024-09-15 04:30:44 -04:00
Ajay
8ba68e1b4c
One less call when dealing with lru cache for ttl result and ensure reset keys cleared
2024-09-14 18:02:22 -04:00
Ajay
17059fdbe6
One less call when dealing with lru cache
2024-09-14 17:52:50 -04:00
Ajay
6e5f4f7610
Fix active requests list not getting deleted
2024-09-14 17:33:17 -04:00
Ajay
c313590d36
persona's revenge
2024-09-13 21:51:06 -04:00
Ajay
4508ad11f2
Fix error when submitter ip not found
2024-09-13 14:37:37 -04:00
Ajay
dc5158257e
Fix errors when postgres returns undefined and trying to save to redis
2024-09-13 14:36:52 -04:00
Ajay
6edd71194b
Log redis stats on high db load
2024-09-13 14:29:32 -04:00
Ajay
7678be1e24
Add max redis response time for reads
2024-09-13 04:06:50 -04:00
Ajay
d28ac39d4f
Allow newly used header
2024-09-07 23:31:16 -04:00
Ajay
5fd6b5eb8b
Fix canSubmitOriginal query on postgres
2024-09-01 19:29:08 -04:00
Ajay
0e1a38c4d4
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2024-09-01 19:01:00 -04:00
Ajay
c496be5651
Disable innertube tests while they are broken
2024-09-01 19:00:59 -04:00
Ajay Ramachandran
15a9c3a4eb
Merge pull request #583 from ajayyy/dependabot/npm_and_yarn/braces-3.0.3
...
Bump braces from 3.0.2 to 3.0.3
2024-09-01 18:57:32 -04:00
Ajay Ramachandran
f1ebd56526
Merge pull request #590 from ajayyy/dependabot/npm_and_yarn/axios-1.7.7
...
Bump axios from 1.6.0 to 1.7.7
2024-09-01 18:57:18 -04:00
Ajay
258749ac31
Add more strict requirements for voting for original thumbnails
2024-09-01 18:56:29 -04:00
dependabot[bot]
ccccb1af3c
Bump axios from 1.6.0 to 1.7.7
...
Bumps [axios](https://github.com/axios/axios ) from 1.6.0 to 1.7.7.
- [Release notes](https://github.com/axios/axios/releases )
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md )
- [Commits](https://github.com/axios/axios/compare/v1.6.0...v1.7.7 )
---
updated-dependencies:
- dependency-name: axios
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-01 22:43:59 +00:00
Ajay
13b8a988db
update dep
2024-09-01 18:43:28 -04:00
Ajay
803fc18554
Verify old submissions right after someone votes on it
2024-08-16 00:36:42 -04:00
Ajay
59373cf346
Fix rejected server-side rendered ads issue not rejecting
2024-08-14 23:42:47 -04:00
Ajay
05fd6abe91
Use env vars in workflow
2024-08-12 01:04:12 -04:00
Ajay
090e185765
Add support for poToken and visitor data
...
Fixes api requests
https://github.com/iv-org/invidious/pull/4789
2024-08-12 00:33:11 -04:00
Ajay
d2df5cef98
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2024-08-11 13:49:48 -04:00
Ajay
214946897d
Hardcode nn-block reputation
2024-08-11 13:49:46 -04:00
Ajay Ramachandran
8da5de4d7b
Merge pull request #588 from mini-bomba/dearrow-locked-titles-downvotes
...
postBranding.ts webhook changes
2024-08-04 09:38:24 +02:00
mini-bomba
380ec8d0ca
Reformat SQL code in postBranding.ts webhook code
2024-08-03 22:01:46 +02:00
mini-bomba
72086b0195
Send webhook messages when a locked title is downvoted
...
also take downvotes & verification into consideration when comparing
titles in webhook code
2024-08-03 21:56:31 +02:00
mini-bomba
61dcfeb69f
Don't send to #dearrow-locked-titles when downvoting unlocked title
...
voteType passed to sendWebhooks() function to avoid confusion in the
future should someone forget about the if statement
2024-08-03 21:39:21 +02:00
Ajay Ramachandran
19d6d85aa6
Merge pull request #589 from mini-bomba/tests-fix
...
fix postgres+redis tests
2024-08-03 21:32:18 +02:00
mini-bomba
814ceb56f1
fix postgres+redis tests
...
made on request
https://discord.com/channels/603643120093233162/607338052221665320/1269373542550470730
2024-08-03 21:23:44 +02:00
Ajay Ramachandran
195cc14d25
Merge pull request #585 from mini-bomba/unrelated_chapter_suggestions
...
Don't show completely unrelated chapter suggestions
2024-08-03 21:19:59 +02:00
Ajay Ramachandran
9427bf4f3d
Merge pull request #586 from TristanWasTaken/db-schema
...
docs: fix typos in DatabaseSchema.md
2024-08-03 08:00:47 +02:00
mini-bomba
3f026409cd
Don't show completely unrelated chapter suggestions
...
Chapter suggestions should be at least slightly related to what the user
has already typed.
This change stops the server from sending suggestions that postgresql
deems to be "less than 10% similar"
Also modified tests to reflect this change.
2024-07-29 02:26:53 +02:00
Ajay
d75b9ddcaa
Show failure reason in webook
2024-07-24 13:42:40 -04:00
Ajay
2fb3d05055
private video?
2024-07-24 13:06:19 -04:00
Ajay
165ed8a6e0
Fix original thumbnail votes being shown because of fetch all
2024-07-09 19:49:37 -04:00
Ajay
495b8031e3
Add better logging for failed reputation call
2024-06-30 09:40:25 -04:00
HanYaodong
374ddc74bd
Use join function for simplicity
2024-06-25 21:33:47 +08:00
Ajay
738f863581
Don't send server-side render error for title submissions
2024-06-25 14:36:05 +05:30
Tristan
8b5e69f36f
docs: fix typos in DatabaseSchema.md
2024-06-24 03:14:05 +02:00
Ajay
10e37824d8
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2024-06-21 15:43:30 +05:30
Ajay
428343e7d8
Require a vote for original to show
2024-06-21 15:43:26 +05:30
Ajay Ramachandran
4e69ac60bc
Merge pull request #584 from TristanWasTaken/db
...
docs: update DatabaseSchema.md
2024-06-21 09:00:52 +05:30
Tristan
3b03792903
docs: fix userFeatures md list
2024-06-21 03:17:31 +02:00
Tristan
1a0b6ab097
Update DatabaseSchema.md
2024-06-21 03:15:07 +02:00
Tristan
8e5084cd72
docs: update private schemas
2024-06-21 03:11:28 +02:00
Tristan
96feaf3cbe
docs: update public schemas
2024-06-21 03:08:38 +02:00
Tristan
d08cfee5b4
docs: update private indexes
2024-06-21 01:35:38 +02:00
Tristan
96dd9eceb3
docs: update public indexes
2024-06-21 01:34:25 +02:00
Tristan
4422104294
docs: format lists
2024-06-21 01:34:15 +02:00
Tristan
4ad553478b
chore: fix misleading/unclear migration comments
2024-06-21 00:50:10 +02:00
dependabot[bot]
47323156c1
Bump braces from 3.0.2 to 3.0.3
...
Bumps [braces](https://github.com/micromatch/braces ) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md )
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3 )
---
updated-dependencies:
- dependency-name: braces
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-16 11:24:49 +00:00
Ajay
a181d52fb2
Fix types
2024-06-12 12:01:40 +05:30
Ajay
ee9ed6af1f
Add server-side ads check for dearrow submissions
2024-06-12 11:57:59 +05:30
Ajay
ec1e6d63a4
Add protection against server-side ad injection (SSAP)
2024-06-12 09:55:41 +05:30
Ajay
5c10e071dc
Change how video duration check works for submissions
2024-05-27 13:54:02 -04:00
Ajay
8eb6f5b2ea
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2024-05-07 15:37:59 -04:00
Ajay
bdfe4938d2
Fix vote webhook not working
2024-05-07 15:37:57 -04:00
Ajay Ramachandran
bcf29e4047
Merge pull request #579 from ajayyy/dependabot/npm_and_yarn/express-4.19.2
...
Bump express from 4.18.2 to 4.19.2
2024-05-05 01:28:41 -04:00
Ajay Ramachandran
622c3f27d6
Merge pull request #581 from mini-bomba/videoduration-inconsistency
...
Make returned video duration in getBranding.ts consistent
2024-05-05 01:28:22 -04:00
mini-bomba
7c1abd9747
Make returned video duration in getBranding.ts consistent
...
Instead of picking the first segment returned by the db (i.e. possibly
random), sort segments by submission time and use the oldest visible
segment with a non-zero video duration.
2024-05-04 21:56:03 +02:00
Ajay
709485e0e9
Increase frequency of docker forgets
2024-04-27 00:42:55 -04:00
Ajay
f841d8173b
Fix ttl cache key not properly cleared
2024-04-22 00:53:09 -04:00
Ajay
b2f7e1b39b
Fix locked check for thumbnail downvotes
2024-04-21 23:13:10 -04:00
Ajay
47ea6ae8d3
Only check request time for readiness if cache has filled up
2024-04-21 13:38:32 -04:00
Ajay
063607fe30
Add etags for branding as well
2024-04-20 13:16:34 -04:00
Ajay
4b795da5a0
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2024-04-20 00:02:16 -04:00
Ajay
8043bd9006
Make max response time configurable
2024-04-20 00:02:15 -04:00
Ajay Ramachandran
bd8f4b7539
Merge pull request #577 from SuperStormer/master
...
cosmetic fix for lock reason
2024-04-19 21:22:57 -04:00
Ajay
0f97ce4a49
Make redis readiness check recoverable
2024-04-19 21:20:40 -04:00
Ajay
cfd7c3d8c4
Add more to ready check
2024-04-19 20:24:42 -04:00
Ajay
af7d8428ab
Improve ready check
2024-04-19 20:05:52 -04:00
Ajay
7c51586664
Add error server
2024-04-16 03:01:44 -04:00
Ajay
2251ddc251
Add ready endpoint
2024-04-16 01:13:56 -04:00
Ajay
07d4dde4f6
Add connections to status
2024-04-16 00:13:51 -04:00
Ajay
b934b7a937
Use innertube when possible
2024-04-14 01:26:03 -04:00
Ajay
f2cf2e2aac
Add db stats to logs
2024-04-13 03:00:26 -04:00
Ajay
2887a8505c
Improve logging and fix ip fetch error breaking skip segments
2024-04-13 01:54:59 -04:00
Ajay
e289fe9075
Add ttl cache
2024-04-12 01:29:23 -04:00
Ajay
2cd9401a51
Fix etag tests
2024-04-11 18:12:02 -04:00
Ajay
47bea9ee6e
Trigger usage of cache key when checking ttl
2024-04-11 17:57:53 -04:00
Ajay
0602fdd651
Use cache for ttl if possible
...
Also fixes etag when compression enabled
2024-04-11 17:54:32 -04:00
Ajay
7c77bf566e
Remove quotes when processing etag
2024-04-11 17:07:13 -04:00
Ajay
1009fff9e9
Fix caching issues with one specific key form
...
.c regex was any character plus a c instead of intenced dot
2024-04-11 17:04:17 -04:00
Ajay
f43e59250f
Add quotes to etag
2024-04-11 14:11:04 -04:00
Ajay
dc2115ef20
Change status timeout
2024-04-09 13:29:18 -04:00
dependabot[bot]
55c3e4f01f
Bump express from 4.18.2 to 4.19.2
...
Bumps [express](https://github.com/expressjs/express ) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2 )
---
updated-dependencies:
- dependency-name: express
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-28 17:17:43 +00:00
Ajay
af31f511a5
Add tests for fetch all
2024-03-24 13:52:33 -04:00
Ajay
0d9cce0512
Fix wrong comparison with votes filtering
2024-03-24 13:42:39 -04:00
Ajay
c19d6fe97a
Only send low voted segments when asked for
2024-03-22 18:37:39 -04:00
Ajay
47c109f012
Fix act as vip unlocking segments
2024-03-21 19:35:13 -04:00
Ajay
a921085da6
Fix vip downvotes unlocking
2024-03-21 19:28:05 -04:00
Ajay
d5ebd8ec1a
Improve self downvoting for dearrow
2024-03-20 13:47:23 -04:00
Ajay
a7f10f7727
Attempt to fix docker build error
2024-03-17 13:40:53 -04:00
Ajay
1c234846db
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2024-03-17 13:20:25 -04:00
Ajay
bc1ca098e7
Fix bug causing people to accidentally super downvote
2024-03-17 13:20:23 -04:00
Ajay Ramachandran
cf21ebc2de
Merge pull request #578 from ajayyy/dependabot/npm_and_yarn/follow-redirects-1.15.6
...
Bump follow-redirects from 1.15.4 to 1.15.6
2024-03-16 21:07:40 -04:00
dependabot[bot]
2426a6ee03
Bump follow-redirects from 1.15.4 to 1.15.6
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-16 23:28:16 +00:00
SuperStormer
ba65c28459
Update postSkipSegments.ts
2024-03-15 02:20:24 -04:00
Ajay
591b342855
Add default user count, update url
2024-03-06 00:47:51 -05:00
Ajay Ramachandran
8d8388386e
Merge pull request #571 from ajayyy/dependabot/npm_and_yarn/follow-redirects-1.15.4
...
Bump follow-redirects from 1.15.1 to 1.15.4
2024-02-27 03:49:44 -05:00
Ajay
a54bf556ed
Revert "Fix usercounter behind cloudflare"
...
This reverts commit 9bcceb7e5b .
2024-02-27 03:49:03 -05:00
Ajay
f1c5b8a359
Merge branches 'master' and 'master' of https://github.com/ajayyy/SponsorBlockServer
2024-02-27 03:33:44 -05:00
Ajay
9bcceb7e5b
Fix usercounter behind cloudflare
2024-02-27 03:33:38 -05:00
Ajay Ramachandran
da0cf0dedc
Merge pull request #575 from ajayyy/dependabot/npm_and_yarn/axios-1.6.0
...
Bump axios from 1.1.3 to 1.6.0
2024-02-20 17:16:53 -05:00
dependabot[bot]
1cefdf4dac
Bump axios from 1.1.3 to 1.6.0
...
Bumps [axios](https://github.com/axios/axios ) from 1.1.3 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases )
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md )
- [Commits](https://github.com/axios/axios/compare/v1.1.3...v1.6.0 )
---
updated-dependencies:
- dependency-name: axios
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-20 21:00:34 +00:00
Ajay
aec2aa4457
Fix keys not properly clearing
2024-02-16 22:14:09 -05:00
Ajay
3f29e11449
Fix submission and vote locks
2024-02-16 14:24:28 -05:00
Ajay
6d11e1c601
Support dragonfly with in memory cache
2024-02-09 18:16:28 -05:00
Ajay
9fa248037a
Add to cache when calling set
2024-02-09 17:28:59 -05:00
Ajay
02a640d857
Use broadcast mode for redis
2024-02-09 15:34:36 -05:00
Ajay
17b002649e
Add logging when too many active connections
2024-02-09 14:54:14 -05:00
Ajay
a74189b287
Fix cache invalidation with compression enabled
2024-02-09 14:19:56 -05:00
Ajay
09997d82ed
Fix chrome extension user fetcher
2024-02-09 13:47:59 -05:00
Ajay
bf644d6899
Don't use broadcast mode for redis
2024-02-09 12:09:03 -05:00
Ajay
5929460239
Remove weighted randomness and change weight calculation
2024-02-09 12:08:52 -05:00
Ajay
09dd10ad6f
Fix memory cache invalidation not invalidating every item
2024-02-09 00:34:12 -05:00
Ajay
af5e8cd68d
Fix uncached misses tracking
2024-02-08 22:15:28 -05:00
Ajay
bd766ab430
Remove unused import
2024-02-08 22:12:53 -05:00
Ajay
bf1fe1ff61
Allow toggling redis compression and disable by default
2024-02-08 21:58:10 -05:00
Ajay
db225f8a84
Reuse running redis connections and handle redis race condition
2024-02-08 21:30:27 -05:00
Ajay
9364a7e654
Show general last invalidation message
2024-02-08 21:15:28 -05:00
Ajay
f3fffa56c9
Don't allow downvoting locked segments
2024-02-08 15:47:25 -05:00
Ajay
c478546128
Count invalidation only on successful delete
2024-02-08 15:12:48 -05:00
Ajay
e61f964d17
Add ttl to in memory cache cache
2024-02-08 14:37:01 -05:00
Ajay
5f8ef25d88
Use broadcast mode for client tracking and add new memory cache stat
2024-02-08 14:30:32 -05:00
Ajay
b76cfdf798
Allow more things to be cached
2024-02-08 03:40:41 -05:00
Ajay
3c6000f2da
Rename config for clientCacheSize
2024-02-08 03:26:06 -05:00
Ajay
9944d70f6b
Use size for lru limit instead of length
2024-02-08 03:23:55 -05:00
Ajay
27069cb5c2
Change what gets saved in memory cache
2024-02-08 03:08:02 -05:00
Ajay
8aa03c81a7
Improve cache miss calculation
2024-02-08 03:06:30 -05:00
Ajay
e8879f66b1
Add redis in memory cache stats
2024-02-08 02:58:51 -05:00
Ajay
acdbd3787b
More specific on what should be client cached
2024-02-08 01:04:48 -05:00
Ajay
1f7156eb29
Don't crash if redis message invalid
2024-02-08 00:34:37 -05:00
Ajay
7405053b44
Reuse running reputation requests
2024-02-07 23:40:59 -05:00
Ajay
a929f69452
Fix same ip being fetched multiple times from postgres
2024-02-07 23:36:45 -05:00
Ajay
8574ec3a0c
Fix is number check
2024-02-07 22:28:28 -05:00
Ajay
1475c91327
Clear cache again after setting up client tracking
2024-02-06 15:32:40 -05:00
Ajay
5b1b362bf0
Handle reconnects with client-side caching
...
Also upgrades redis to fix a library bug
2024-02-06 00:52:42 -05:00
Ajay
14da10bd8a
Add client-side caching
2024-02-05 13:11:44 -05:00
Ajay
547632341a
Add back redis compression optionally
2024-02-04 23:17:28 -05:00
Ajay
c54c25c73b
Disable query cache for segment groups
2024-02-04 22:53:12 -05:00
Ajay
121cc7f481
Fix duplicate behavior with submitting full video labels
2024-01-31 13:05:47 -05:00
Ajay
e041b9c930
Don't throw 409 if only one segment was successfully submitted
2024-01-31 12:59:01 -05:00
Ajay
59d9ed390f
Fix titles and thumbnails being unlocked
2024-01-28 22:05:04 -05:00
Ajay
4477ab7ca6
Remove bad test
2024-01-21 19:55:16 -05:00
Ajay
25ec9b0291
Revert adding redis compression
...
This reverts commit fce311377f and 2ad51842cc
2024-01-21 19:49:36 -05:00
Ajay
c3e00ac8b1
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2024-01-21 19:46:18 -05:00
Ajay
2c9079f565
No more verification through sb submissions
2024-01-21 19:46:16 -05:00
Ajay Ramachandran
aee84a4b6e
Merge pull request #572 from SashaXser/master
...
Promise.resolve and Using "forEach" instead of "map"
2024-01-20 00:08:55 -05:00
SashaXser
a8010b553d
Merge branch 'master' into master
2024-01-20 07:07:03 +04:00
SashaXser
5b95aa8aba
Resolve conflicts
2024-01-20 06:59:12 +04:00
Ajay
fce311377f
Switch to lz4 compression
2024-01-19 15:16:50 -05:00
Ajay
dcb479f3d2
Fallback to allowing taking a lock if redis fails
2024-01-19 14:35:32 -05:00
Ajay
2ad51842cc
Compress redis values
2024-01-19 14:34:18 -05:00
SashaXser
ea60947092
format fix
2024-01-19 14:31:03 +04:00
SashaXser
14b6f84f94
2 things
...
Consider using "forEach" instead of "map" as its return value is not being used here.
Replace this trivial promise with "Promise.resolve".
2024-01-19 08:50:45 +04:00
Ajay
8e13ec60d6
Fix other get missing throw
2024-01-18 11:57:50 -05:00
Ajay
c9f7275942
Only use redis timeout when db not under load
2024-01-18 09:22:00 -05:00
Ajay
d607d8b179
Don't fallback to db when too many redis connections
2024-01-15 14:07:34 -05:00
dependabot[bot]
5974b51391
Bump follow-redirects from 1.15.1 to 1.15.4
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.15.1 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.1...v1.15.4 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-10 02:08:26 +00:00
Ajay
7aaf000d99
Fix index for hashed video id dearrow fetching
2024-01-09 15:31:56 -05:00
Ajay
0edf0b9e1c
Don't handle shadowhide on high load
2024-01-03 11:37:58 -05:00
Ajay
84fd7c170f
Add test for VIP downvote without removing
2024-01-03 01:18:57 -05:00
Ajay
b04e0dcd97
DeArrow downvotes
2024-01-03 01:13:35 -05:00
Ajay
33dad0a5e4
Add option to submit without locking
...
Also fixes voting for an existing thumbnail not unlocking other thumbnails
2024-01-02 19:12:55 -05:00
Ajay
ad439fd368
Make sure latest dump is not deleted
2023-12-28 19:10:12 -05:00
Ajay
21bb893a47
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2023-12-28 18:23:45 -05:00
Ajay
211ecf700b
Reject on dump failure to trigger a retry
2023-12-28 18:23:41 -05:00
Ajay Ramachandran
951d678640
Merge pull request #569 from mchangrh/fix-shadowban
...
clean up shadowban code, exclude long running categories query
2023-12-21 20:36:28 -05:00
Michael C
15f19df8a4
clean up shadowban code, exclude long running categories query when possible
2023-12-21 18:37:24 -05:00
Ajay Ramachandran
4a4d5776a1
Merge pull request #568 from ajayyy/revert-566-dependabot/npm_and_yarn/axios-1.6.0
...
Revert "Bump axios from 1.1.3 to 1.6.0"
2023-12-06 00:17:05 -05:00
Ajay Ramachandran
b3a28f7df3
Revert "Bump axios from 1.1.3 to 1.6.0"
2023-12-06 00:16:55 -05:00
Ajay Ramachandran
f763139664
Merge pull request #566 from ajayyy/dependabot/npm_and_yarn/axios-1.6.0
...
Bump axios from 1.1.3 to 1.6.0
2023-11-11 10:50:35 -05:00
dependabot[bot]
da482054a4
Bump axios from 1.1.3 to 1.6.0
...
Bumps [axios](https://github.com/axios/axios ) from 1.1.3 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases )
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md )
- [Commits](https://github.com/axios/axios/compare/v1.1.3...v1.6.0 )
---
updated-dependencies:
- dependency-name: axios
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-11 08:17:36 +00:00
Ajay
134e89af00
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2023-11-06 16:07:46 -05:00
Ajay
5cc80f9066
Use dearrow thumbnails in webhooks
2023-11-06 16:07:44 -05:00
Ajay Ramachandran
e1043aba05
Merge pull request #565 from mchangrh/ajay-has-good-tests
...
non-blocking coverage tests
2023-11-04 18:18:35 -04:00
Michael C
c0abedf67f
non-blocking coverage tests
2023-11-04 18:03:05 -04:00
Ajay Ramachandran
d99b7dc2c6
Merge pull request #563 from ajayyy/dependabot/npm_and_yarn/babel/traverse-7.23.2
...
Bump @babel/traverse from 7.18.6 to 7.23.2
2023-11-02 15:31:11 -04:00
Ajay
579e2b90a3
Make chapters easier to submit
2023-10-29 10:51:37 -04:00
Ajay
3708d293dc
Add warning when locked title probably outdated
2023-10-27 00:39:36 -04:00
dependabot[bot]
077a9ecc50
Bump @babel/traverse from 7.18.6 to 7.23.2
...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse ) from 7.18.6 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse )
---
updated-dependencies:
- dependency-name: "@babel/traverse"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-18 05:31:40 +00:00
Ajay Ramachandran
5714f51ac0
Merge pull request #561 from mchangrh/test-helpers
...
long overdue test helpers (partial)
2023-10-15 02:18:31 -04:00
Michael C
68bb39c409
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into test-helpers
2023-10-15 00:31:09 -04:00
Ajay
9dd8b28812
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2023-10-02 19:56:12 -04:00
Ajay
a659048afe
Hide downvotes titles
2023-10-02 19:56:08 -04:00
Michael C
3c6803fb62
getViewsForUser
2023-09-30 21:20:42 -04:00
Michael C
467443a03f
fix typings for getSubmissionUUID, update getStatus
2023-09-30 19:08:23 -04:00
Michael C
d8b93dec00
getLockCategories sort categories
2023-09-29 00:45:43 -04:00
Michael C
26b3ea6a50
use partialDeepEquals for getLockCategories
2023-09-29 00:40:20 -04:00
Michael C
f72b1abf41
getLockCategories
...
- add insertLock
2023-09-28 23:44:14 -04:00
Michael C
53e5dcb2f0
addUserAsVIP
...
- add genAnonUser
2023-09-28 20:45:02 -04:00
Michael C
73e5ade529
generate random title
2023-09-28 03:57:06 -04:00
Michael C
31e1f5bc3c
original as bool not string
2023-09-28 03:51:15 -04:00
Michael C
df40047a4b
getUserInfo
...
- add info property to User
- add insertWarning, Ban
- add insertTitle, TitleVote, Thumbnail, ThumbnailVote
- simplified insertSegments with destructuring
2023-09-28 03:45:28 -04:00
Michael C
ad9344c92f
getChapterNames fix length
2023-09-27 23:57:53 -04:00
Michael C
726983bb9b
getChapterNames
...
- remove identifier from segmentGen
- add multiGenRandomValue
- add videoInfo query
2023-09-27 23:53:18 -04:00
Michael C
7364499f11
lockCategoriesHTTP
...
- highLoad
- compact getUserID
- add genRandomValue method
2023-09-27 23:19:25 -04:00
Michael C
5e3ec895d8
add videoID for segment inserter
2023-09-27 22:25:18 -04:00
Michael C
a9ef3815e2
add segment generator
...
- getIsUserVIP
- postClearCache
- update boilerplate
2023-09-27 22:21:42 -04:00
Michael C
964634dc51
update addFeatures
...
- add case_boilerplate
- add grantFeature query
2023-09-27 21:03:53 -04:00
Ajay Ramachandran
1e8970859f
Merge pull request #559 from mini-bomba/ ✝️ ℹ️ 🅿️
...
Replace "warning" with "tip" in responses from postWarning.ts
2023-09-27 20:40:34 -04:00
Michael C
4438ce7db6
add genUser frameworks, start fixing tests
...
transformative:
- getUserID
- redisTest
- reputation
mocha test reconfig:
- etag
- getIP
- userCounter
- validateVideoIDs
2023-09-27 20:18:35 -04:00
Ajay
86ea0f582b
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2023-09-27 20:09:16 -04:00
Ajay
e329bccca5
Remove shuffling for thumbnails
2023-09-27 20:09:15 -04:00
Ajay Ramachandran
1275afa25b
Merge pull request #560 from mchangrh/no-empty-warnings
...
disallow empty new warnings
2023-09-27 15:17:25 -04:00
Michael C
1b5a079bbd
disallow empty new warnings
2023-09-27 15:09:35 -04:00
Ajay
ad666ff487
Don't allow random time after 90% of video if no endcard submitted
2023-09-24 16:53:55 -04:00
mini-bomba
7196155d3a
Replace "Warning reason" with "Tip message"
2023-09-16 10:00:33 +02:00
mini-bomba
934ce79728
Replace "warning" with "tip" in responses from postWarning.ts
2023-09-12 23:40:39 +02:00
Ajay
65e7d24b7d
Fix get branding by hash rong query
2023-09-09 19:07:50 -04:00
Ajay
d08c423c6a
Verify old submissions when adding dearrow feature
2023-09-06 10:53:14 -04:00
Ajay
8361f602c7
Less arm
2023-09-04 02:52:04 -04:00
Ajay Ramachandran
1e3a50b884
Merge pull request #558 from mini-bomba/dearrow-bans
...
Fix Dearrow bans + some bug fixes
2023-09-04 02:43:39 -04:00
mini-bomba
55150cb301
do user & IP queries asynchronously in checkbanStatus()
...
Co-authored-by: Kendell R <KTibow@users.noreply.github.com >
2023-08-31 14:59:22 +02:00
mini-bomba
2015cf1488
DB migration: Hide any visible dearrow submissions from banned users
2023-08-29 16:38:41 +02:00
mini-bomba
141f105b79
fix dearrow bans
2023-08-29 16:38:41 +02:00
mini-bomba
c2a3630d49
create an isUserBanned utility function
2023-08-29 16:38:41 +02:00
mini-bomba
c77e71e66a
it's called a ✝️ ℹ️ 🅿️ , not warning
2023-08-29 13:48:50 +02:00
Ajay
345c740fdc
Fix local key regex
2023-08-22 12:00:59 -04:00
Ajay
d84276a86a
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2023-08-21 17:48:17 -04:00
Ajay
16c7ad5531
Return 404 for non existent feature flag
2023-08-21 17:48:13 -04:00
Ajay Ramachandran
7cb0a0705c
Merge pull request #555 from mchangrh/shadowban-stats
...
show stats to shadowhidden users
2023-08-15 20:00:09 -04:00
Michael C
4600b8a599
show stats to shadowhidden users
2023-08-15 19:45:17 -04:00
Ajay
e9e1fd5228
Require time when generating key
2023-08-06 13:42:33 -04:00
Ajay
48fa55cc7a
Add feature flag endpoint
2023-08-05 23:01:24 -04:00
Ajay
ecfc2c14c8
Remove minimum submission duration for mutes
2023-08-05 13:59:02 -04:00
Ajay
f58da275eb
Fix group by not working on postgres
2023-08-04 14:36:08 -04:00
Ajay
0723503a98
Add DeArrow submitter feature
2023-08-04 14:17:41 -04:00
Ajay
9d1af3bdff
Verify old submissions when you become verified
2023-08-04 14:15:46 -04:00
Ajay
b3cec20215
Better handling of verification for self downvotes
2023-08-04 13:53:23 -04:00
Ajay
b02134c016
Don't send angle brackets
2023-08-04 13:15:43 -04:00
Ajay
c3c8f38423
Rename var to be more clear
2023-08-03 01:50:50 -04:00
Ajay
1dbb393e4d
Fix type error in tests
2023-08-03 01:16:57 -04:00
Ajay
dfa4578d28
Better token generation
2023-08-03 00:58:01 -04:00
Ajay
99cb22a5e6
Also clear branding cache when clearing segment cache
2023-07-29 18:44:52 -04:00
Ajay
665b91eb65
Revert distinct selection change as it seems to be misbehaving
2023-07-27 03:04:46 -04:00
Ajay Ramachandran
e942ac5e22
Merge pull request #549 from mini-bomba/voting-requirements
...
Make voting requirements more strict
2023-07-26 16:06:18 -04:00
Ajay Ramachandran
83b561d943
Merge pull request #548 from mchangrh/restic-update
...
change container to do chmod in builder
2023-07-26 16:03:49 -04:00
Ajay
f0b0217c78
Fix distinct query on postgres
2023-07-26 16:02:21 -04:00
Ajay
d23e9b9940
Only show one title/thumbnail per userID
2023-07-26 15:19:22 -04:00
Ajay
4b214767a0
Add buildx
2023-07-25 11:49:33 -04:00
Ajay
8c687934c2
build arm images
2023-07-25 11:36:59 -04:00
Ajay
f63fa09605
Handle exceptions, and prevent crashing from unhandled exceptions
2023-07-24 21:25:18 -04:00
Ajay
4e93a007c2
Remove unnecessary call in userInfo
2023-07-24 14:55:31 -04:00
Ajay
2fc31655ff
Add different max for private db connection
2023-07-24 13:56:09 -04:00
Ajay
79515ccc8b
Add unlocking to long title error
2023-07-23 23:45:02 -04:00
Ajay
b6f29b8b6d
Fix shadow ban test
2023-07-23 23:35:50 -04:00
Ajay
a52ecf2d37
Add more unlock calls
2023-07-23 23:32:38 -04:00
Ajay
8d518b184b
Change default lock timeout
2023-07-23 23:30:17 -04:00
Ajay
3924a65e02
Don't use locks when redis disabled
2023-07-23 23:28:41 -04:00
Ajay
a4de94bede
Remove leftover timeout
2023-07-23 23:28:26 -04:00
Ajay
8bcc781da7
Add locks to different write operations
2023-07-23 23:21:50 -04:00
Ajay
b2081fe155
Add unique constraint for titles
2023-07-23 22:53:14 -04:00
Ajay
ea80a413ba
Add postgres private db stats
2023-07-23 14:26:25 -04:00
Ajay
528f24a431
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2023-07-23 14:01:50 -04:00
Ajay
0463165f1a
Add timing trace to set username
2023-07-23 14:01:49 -04:00
Ajay Ramachandran
38b7ddfd07
Merge pull request #553 from ajayyy/dependabot/npm_and_yarn/word-wrap-1.2.4
...
Bump word-wrap from 1.2.3 to 1.2.4
2023-07-19 01:08:16 -04:00
dependabot[bot]
79bac69c41
Bump word-wrap from 1.2.3 to 1.2.4
...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap ) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases )
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4 )
---
updated-dependencies:
- dependency-name: word-wrap
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-19 03:10:24 +00:00
Ajay
85fc0477ad
Fix type check for warning duplicate
2023-07-17 23:38:52 -04:00
Ajay
a5501b9655
Fix user info not checking warning type
2023-07-17 22:53:12 -04:00
Ajay
e9fcf6b445
Add seperate type for dearrow warning
...
Also add dearrow warning reason as option for user info
2023-07-17 22:42:29 -04:00
Ajay
808066a5ed
Look at -1 votes for branding sb segments
2023-07-17 19:36:58 -04:00
Ajay
93f4cfd82d
Add option to return userID in branding call
2023-07-16 15:35:22 -04:00
Ajay
d030de83bd
Add leaderboard for dearrow
2023-07-07 14:32:45 -04:00
Ajay
d1d2b011f8
Add max title length
2023-07-06 16:36:37 -04:00
Ajay
d2f8e3aee4
Fix shadow hide video branding logic
2023-07-06 14:53:48 -04:00
Ajay
2e29666781
Remove mysql code
2023-07-05 01:25:38 -04:00
Ajay
8b418c8851
Add hiding dearrow submissions in ban code
2023-07-05 01:23:48 -04:00
Ajay
5f80562772
Make dearrow verification easier to get
2023-06-28 22:12:32 -04:00
Ajay
69db87f5e1
Fix 0 second submissions not allowed
2023-06-23 23:05:52 -04:00
Ajay
fa6919a1d0
Add branding stats
2023-06-14 19:50:26 -04:00
Ajay
633f128e90
Fix voting on an existing submission not working.
2023-06-13 00:12:16 -04:00
Ajay
9f7fa53b14
Fix sort order
2023-06-12 11:51:17 -04:00
Ajay
bbb7102e37
Derank original submissions
2023-06-12 11:41:57 -04:00
Ajay
3bb8d5b58b
Add verification where new users start with lower votes
2023-06-10 12:35:43 -04:00
Ajay
1cacb2dd69
Fix random time calculator for starting empty segment
2023-06-08 18:22:26 -04:00
Ajay
fe185234cf
Add fallback video duration when finding random timestamp
2023-06-08 18:05:40 -04:00
Ajay
ef3e48ec24
Send video duration if known
2023-06-08 15:28:37 -04:00
mini-bomba
777944665d
Make voting requirements more strict
...
This aims to reduce the amount of false votes by users with no valid segments of the category they're voting for.
New tests included, one modified to work under new requirements.
Also merged userAbleToVote and ableToVote in voteOnSponsorTime.ts to skip unnecessary queries for VIPs.
2023-06-08 16:50:31 +02:00
Ajay
0932f63398
Await in post branding test case
2023-06-08 04:01:23 -04:00
Ajay
5834643ba0
Add random timestamp generation to get branding
2023-06-08 03:39:44 -04:00
Ajay
8e5be402e1
Fix VIP title and thumbnail unlock unlocking everything
2023-05-31 14:28:01 -04:00
Michael C
e253c7bb47
change container to do chmod in builder
2023-05-23 19:39:16 -04:00
Ajay
9129cee9f0
Fix tests
2023-05-21 20:12:17 -04:00
Ajay
39fcdb1d95
Allow more chapter names to appear in suggestions
2023-05-21 20:03:53 -04:00
Ajay
8d1025e17d
Add title and thumbnails to user stats
2023-05-09 23:53:18 -04:00
Ajay
6f0abddd3e
Reenable locks
2023-04-28 14:15:18 -04:00
Ajay
a1b5c38e5a
Disable lock tests for now
2023-04-17 19:38:31 -04:00
Ajay
8db898fab5
Add pool status to branding header
2023-04-10 18:21:52 -04:00
Ajay
940cacfb0a
Add pool details to postgres stats
2023-04-07 15:55:29 -04:00
Ajay
69a54f64b4
More specific redis error
2023-04-07 14:39:38 -04:00
Ajay
9600f56830
Fix 500 in tracing
2023-04-07 14:38:57 -04:00
Ajay
4e59526b4d
Add missing semicolon
2023-04-07 14:31:15 -04:00
Ajay
42f2eb5eae
Add traces to branding endpoint
2023-04-07 14:31:08 -04:00
Ajay
e1a607ba39
Add sb server host as response header
2023-04-07 12:47:08 -04:00
Ajay
8a236d66ed
Fix video labels hash key error
2023-04-05 18:02:47 -04:00
Ajay
4a10faaea3
Add cb tables to db dump
2023-03-31 17:57:56 -04:00
Ajay
589b7d4e3e
Disable branding locks for now
2023-03-31 15:08:28 -04:00
Ajay
a52feee25e
Fix unlocking all submissions
2023-03-31 15:07:34 -04:00
Ajay Ramachandran
d6a12a5e99
Merge pull request #545 from ajayyy/clickbait
...
Clear query cache for branding
2023-03-29 00:33:27 -04:00
Ajay
4696ce8d01
Clear query cache for branding
2023-03-29 00:32:29 -04:00
Ajay Ramachandran
bffc10e38f
Merge pull request #534 from ajayyy/clickbait
...
Clickbait
2023-03-27 00:54:52 -04:00
Ajay
dde12bcc43
Fix wrong branch for github workflow
2023-03-19 00:41:29 -04:00
Ajay
7921bc4582
Remove chapters free test
2023-03-19 00:25:59 -04:00
Ajay
0b830610e9
Fix chapters duplicate check
2023-03-19 00:25:22 -04:00
Ajay
b6e9f92da8
Free chapters
2023-03-18 19:15:50 -04:00
Ajay
d4c4dbffcc
Change video label cache to 3 chars
2023-03-18 00:36:05 -04:00
Ajay Ramachandran
5c549b5295
Merge pull request #544 from mchangrh/token-test
...
increase coverage for tokenUtils
2023-03-12 18:50:11 -04:00
Michael C
acae9da06c
increase coverage for tokenUtils
2023-03-12 16:30:08 -04:00
Ajay Ramachandran
1f939116a4
Merge pull request #543 from mchangrh/unban-fix
...
fix unban query hitting limit, use number as type
2023-02-25 14:11:17 -05:00
Michael C
8495a9d6c0
fix unban query hitting limit, use number as type
2023-02-25 00:04:15 -05:00
Ajay Ramachandran
d76ee7cd22
Merge pull request #541 from mchangrh/etagTest
...
add etag and other tests
2023-02-22 01:38:41 -05:00
Michael C
436e75e3e6
add explicit test checks in reset
2023-02-22 01:15:49 -05:00
Michael C
7ba654e476
remove tests for maxNumberOfActiveWarnings
2023-02-22 00:35:58 -05:00
Ajay Ramachandran
f4286b15a1
Merge pull request #542 from mchangrh/warning-webhook
...
add warning webhook
2023-02-22 00:12:30 -05:00
Michael C
76ce1017ea
add warning webhook
2023-02-22 00:08:27 -05:00
Michael C
780555e9df
add ignores for getTotalStats
2023-02-21 20:16:25 -05:00
Michael C
79b7b6ea4c
add highLoad tests
2023-02-21 20:10:01 -05:00
Michael C
80de71a68f
add misc 400 tests
2023-02-21 20:09:57 -05:00
Michael C
4b8bc418ba
clean up getCWSUsers
2023-02-21 20:09:38 -05:00
Michael C
f4537160de
split postSkipSegments into stubbed 400
2023-02-21 20:09:13 -05:00
Michael C
900fa9f64e
add test ignores
2023-02-21 17:00:53 -05:00
Michael C
e6f54f11f0
decompose postSkipSegments more
2023-02-21 17:00:23 -05:00
Michael C
6296761fe4
postSkipSegments improvements
...
- fix 80% check from same user
- split test cases into multiple files for easier viewing
2023-02-21 03:25:46 -05:00
Michael C
820a7eb02f
simplify postWarning
2023-02-21 03:25:02 -05:00
Michael C
c6795a783d
fix getCWS util
2023-02-21 03:24:32 -05:00
Michael C
37a1c7e88d
used shared random gen for tests
2023-02-21 03:24:07 -05:00
Michael C
31a460e750
fix countcontributingusers
2023-02-20 22:56:38 -05:00
Michael C
1bda331b0c
add new CWS user parsing method
2023-02-20 22:22:33 -05:00
Michael C
72fb4eb6ec
add more tests for coverage
2023-02-20 22:22:33 -05:00
Michael C
d04230a1c4
reset postgres and redis between test runs
2023-02-20 22:22:33 -05:00
Michael C
f70a26009c
add ignore clauses to tests
2023-02-20 22:22:33 -05:00
Michael C
c84eb839a0
clean up immediate cache after every run
...
run after codecov
confirm cache deletion
remove cache cleanup
2023-02-20 22:22:32 -05:00
Ajay Ramachandran
df279cf48a
Adjust ip logging fix threshold
2023-02-20 18:57:19 -05:00
Michael C
cdc080b58b
skip etag tests if no redis
2023-02-20 16:03:46 -05:00
Michael C
c586c9a7e7
add etag tests
...
- add shadowban self test
- add init and -it to docker runs
2023-02-20 15:56:08 -05:00
Ajay Ramachandran
81b0c27180
Merge pull request #540 from mchangrh/workflow
...
simplify workflows, use cache
2023-02-18 22:33:00 -05:00
Michael C
bff05dccaa
simplify workflows, use cache
2023-02-18 03:12:50 -05:00
Ajay Ramachandran
9c438602f8
Add codecov config
2023-02-18 02:42:08 -05:00
Ajay
19ebca86c9
Fix video branding not being awaited
2023-02-18 02:33:22 -05:00
Ajay Ramachandran
f48fb6c3f6
Merge pull request #539 from mchangrh/nyc
...
run nyc for codecov
2023-02-18 00:48:39 -05:00
Michael C
4a90ba8992
run sqlite and postgres coverage
2023-02-18 00:36:45 -05:00
Michael C
efc911a229
fix codecov
2023-02-18 00:30:21 -05:00
Ajay Ramachandran
2e3f4f8c70
Add codecov
2023-02-18 00:16:18 -05:00
Ajay Ramachandran
b95b6d8efe
Merge pull request #538 from mchangrh/less-tempvip-perms
...
give less permissions to tempVIPs
2023-02-18 00:10:04 -05:00
Ajay Ramachandran
7985d131ef
Merge pull request #537 from mchangrh/lenientSetUsername
...
make privateIDUsername check more lenient #532
2023-02-18 00:09:37 -05:00
Michael C
a384079562
more lenient privateIDUsername checks
...
- disallow username = privateID
- disallow username = other privateID on username table if length > minLength
2023-02-17 22:28:23 -05:00
Ajay
46c372a764
Unlock other segments when vip votes for new segment
2023-02-14 22:10:46 -05:00
Michael M. Chang
3281954019
Update src/routes/postSkipSegments.ts
...
Co-authored-by: mini-bomba <55105495+mini-bomba@users.noreply.github.com >
2023-02-08 12:21:58 -05:00
Michael C
aece615992
give less permissions to tempVIPs
2023-02-08 01:54:20 -05:00
Ajay
6448fbfbd8
Fix logger calls where this will be wrong
2023-02-05 13:27:18 -05:00
Ajay
c5426e5fc4
Fix reputation test
2023-02-04 18:43:08 -05:00
Ajay
3894d453a5
Improve performance of reputation query
2023-02-04 18:22:31 -05:00
Ajay
280e6684af
Fix reputation using wrong date
2023-02-04 18:22:19 -05:00
Ajay
7361c7056b
Print active db requests in redis errors
2023-02-04 15:12:22 -05:00
Ajay
2d751a0b21
Log response time limits
2023-02-04 14:13:49 -05:00
Ajay
399bda869f
Add more detailed redis error message
2023-02-04 14:07:09 -05:00
Ajay Ramachandran
663bd96130
Fix forget sh file missing
2023-02-03 20:06:14 -05:00
Ajay
5b3f4b476e
Update redis config
2023-02-03 12:31:30 -05:00
Michael C
b855eea349
make privateIDUsername check more lenient #532
2023-01-29 16:10:59 -05:00
Ajay
51d25cfc68
Ban users submitting from banned IPs
2023-01-29 13:53:08 -05:00
Ajay
f8f02d86d5
Fix shadow hidden requiring type 1
2023-01-29 13:15:05 -05:00
Ajay
cb7492628c
Names for docker compose ci
2023-01-28 14:48:20 -05:00
Ajay
e69b61fb4c
Fix shadow ban exiting early
2023-01-28 14:42:16 -05:00
Ajay
5c1b502a15
Fix ban users var not used
2023-01-28 14:04:14 -05:00
Ajay
d5c544f1ee
Allow auto banning ips
2023-01-28 14:00:12 -05:00
Ajay
5426ae826e
Add IP banning
2023-01-28 13:09:04 -05:00
Ajay Ramachandran
7911819cab
Merge pull request #536 from mchangrh/sharedParser
...
use shared parseParams helper
2023-01-28 12:20:50 -05:00
Ajay Ramachandran
d8e0eac61b
Use includes and check in sql usage
2023-01-28 12:18:34 -05:00
Michael C
74c0ba37e2
remove debug statements, fix shadowBanUser tests
2023-01-28 02:54:01 -05:00
Michael C
a64b8f99b7
use shared parseParams helper
2023-01-28 02:40:09 -05:00
Ajay
9cf2e1f0e9
Fix private db table removal and original title type
2023-01-28 02:31:49 -05:00
Ajay
10e9aef8cc
use await in get branding test
2023-01-28 02:20:16 -05:00
Ajay Ramachandran
d07aac3a33
Merge branch 'master' into clickbait
2023-01-28 02:13:42 -05:00
Ajay
b91114165e
use seperate queries
2023-01-28 02:12:33 -05:00
Ajay
36f1d15605
Add tests for get branding and fix issues
...
Also improve deep partial equals
2023-01-28 01:53:59 -05:00
dependabot[bot]
894cd48182
Bump luxon from 1.28.0 to 1.28.1 ( #535 )
...
Bumps [luxon](https://github.com/moment/luxon ) from 1.28.0 to 1.28.1.
- [Release notes](https://github.com/moment/luxon/releases )
- [Changelog](https://github.com/moment/luxon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/moment/luxon/compare/1.28.0...1.28.1 )
---
updated-dependencies:
- dependency-name: luxon
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-28 01:22:05 -05:00
Ajay Ramachandran
1641a41b00
Merge pull request #533 from mchangrh/cache-control
...
add ETag to skipSegments byHash
2023-01-28 01:16:32 -05:00
Ajay
4d8ce40ef4
Add missing import
2023-01-27 22:42:46 -05:00
Ajay
07c683e8f0
Add vote/submission for titles and thumbnails
2023-01-27 22:36:29 -05:00
Ajay
d0a9168531
remove temp server outage error
2023-01-22 18:59:51 -05:00
Ajay
2ed23d7fcb
Fix duplicate chapter issue
...
Fix https://github.com/ajayyy/SponsorBlockServer/issues/521
2023-01-21 21:52:39 -05:00
Michael C
e7a43d79ab
optimize skipSegments, add eTag
...
- moved skipSegments parameter parsing to new file
- added oldGetVideoSponsorTimes to getSkipSegments.ts
2023-01-01 04:59:57 -05:00
Michael C
b792354ffb
lock redis, postgres versions, no persistence in redis
2023-01-01 02:51:44 -05:00
Michael C
a613b68c66
add ETag to skipSegments byHash
2023-01-01 02:50:49 -05:00
Ajay
66c2be6012
remove hash and extra segment params
2022-12-30 15:39:45 -05:00
Ajay
2a7083b9ef
Remove hash from result to save bandwidth
2022-12-30 15:07:59 -05:00
Ajay Ramachandran
928eef637a
Merge pull request #532 from mchangrh/fix-privateIDUsername
...
fix privateIDUsername
2022-12-30 01:07:08 -05:00
Michael C
be03367557
fix privateIDUsername
2022-12-30 01:04:23 -05:00
Ajay Ramachandran
fd288dd330
Merge pull request #531 from ajayyy/dependabot/npm_and_yarn/json5-2.2.2
...
Bump json5 from 2.2.1 to 2.2.2
2022-12-30 00:47:01 -05:00
dependabot[bot]
0c00f7323d
Bump json5 from 2.2.1 to 2.2.2
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.2 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-30 05:45:16 +00:00
Ajay Ramachandran
5a6ba891f9
Merge pull request #530 from mchangrh/privateIDUsername
...
add privateID username check
2022-12-30 00:44:51 -05:00
Michael C
90e5446078
add privateID username check
...
- bump AGPL to package-lock
2022-12-30 00:41:45 -05:00
Ajay Ramachandran
dc0bde0e36
Merge pull request #529 from mchangrh/sanitizeVideoID
...
Sanitize videoID and minimum UserID length
2022-12-27 17:10:27 -05:00
Michael C
7c2feb80bc
videoID validation and userID min length
2022-12-27 01:45:50 -05:00
Ajay Ramachandran
fc607d0cb7
Specify only in package.json
2022-12-26 23:43:01 -05:00
Ajay Ramachandran
3fbcadc3a0
Update license in package.json
2022-12-26 23:24:46 -05:00
Ajay
7f7a3a37ec
Relicense project to AGPL
2022-12-26 23:18:43 -05:00
Ajay
cc24a4902f
Initial get branding
2022-12-23 16:56:27 -05:00
Ajay Ramachandran
d738e89f20
Merge pull request #528 from mchangrh/bumpInnertube
...
bump innertube clientVersion
2022-12-18 00:07:13 -05:00
Michael C
b591b7194e
Merge branch 'bumpInnerTube' into sanitizeVideoID
2022-12-18 00:03:33 -05:00
Michael C
fc5b5ca72c
use node 18 across all tests
2022-12-18 00:01:32 -05:00
Michael C
8d7b010a12
append missing number to version
2022-12-17 23:58:19 -05:00
Michael C
fc73f491fe
bump innertube clientVersion
2022-12-17 23:56:36 -05:00
Michael C
2683c61995
add minUserIDLength config option
2022-12-17 23:35:13 -05:00
Ajay
cff2325aef
use keep alive in disk cache and user counter
2022-12-05 17:06:00 -05:00
Ajay
d7d5618985
update sqlite
2022-12-05 17:04:08 -05:00
Ajay
4e3753d32c
Only call user counter some of the time
2022-12-05 16:47:11 -05:00
Ajay
1202c264aa
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-12-04 19:54:46 -05:00
Ajay
89e122210e
Remove extra hash
2022-12-04 19:54:44 -05:00
Ajay Ramachandran
aed0e38d2f
Merge pull request #524 from mchangrh/submitPrivateVideo
...
add innertube tests for private videos
2022-12-04 14:59:28 -05:00
Ajay Ramachandran
665ad6fe50
Merge pull request #526 from mchangrh/bump-dependencies
...
update dependencies, finally bump to node 18
2022-12-04 14:59:13 -05:00
Ajay
992c65a39d
Fix sqlite tests
2022-11-21 17:06:04 -05:00
Ajay
b6e62aa68f
Add postgres request time stats
2022-11-21 16:48:16 -05:00
Michael C
1f844bf56a
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into submitPrivateVideo
2022-11-21 14:40:46 -05:00
Michael C
fa5f3b8a50
update dependencies, finally bump to node 18
2022-11-21 14:36:11 -05:00
Ajay
30ac91c537
Don't refetch reputation if under high db load
2022-11-20 19:17:47 -05:00
Ajay
e252411fe1
No time saved for chapter
2022-11-20 17:30:13 -05:00
Ajay
91fc56f59a
Wait for redis to connect before starting server
2022-11-20 01:20:05 -05:00
Ajay
0cd808a2d9
Add high load checks to leaderboard pages
2022-11-20 00:50:32 -05:00
Ajay
87e38c8bc4
Show total stats if not under high load
2022-11-20 00:47:41 -05:00
Ajay
df76b5f053
Add max queue to redis
2022-11-20 00:23:22 -05:00
Ajay
71d30c0b51
change redis max response time default
2022-11-19 23:59:50 -05:00
Ajay
238ccc83d9
Stop writing if response time exceeds value
2022-11-19 23:58:55 -05:00
Ajay
9bd6e9df4f
Add error catching in segment by hash
2022-11-19 23:35:46 -05:00
Ajay
7bdcb10994
Fix redis set limiting
2022-11-19 23:32:09 -05:00
Ajay
849ca52ef8
Allow disabling hash cache
2022-11-19 20:05:59 -05:00
Ajay
9e2e1343da
Add timeout for all postgres requests
2022-11-15 14:19:15 -05:00
Ajay
4139bf8f8c
lower active connections on error
2022-11-13 23:21:46 -05:00
Ajay
1fffd2e6ac
Remove set limitation code
2022-11-13 17:01:32 -05:00
Ajay
a417299d3e
Only limit connections for reads
2022-11-12 15:44:09 -05:00
Ajay
d3d53d0758
Allow no max redis connections
2022-11-12 15:35:07 -05:00
Ajay
517c9512e4
Make default have no max requests
2022-11-12 15:31:21 -05:00
Ajay
ed5e3373a5
Add max active postgres requests
2022-11-12 15:29:55 -05:00
Ajay
6c18579a78
Added back mention of video to lock message
2022-11-12 12:45:35 -05:00
Ajay
e6e8c8e5a1
Added suggestion to refresh for locks
2022-11-12 12:43:16 -05:00
Ajay
50743070de
Clarify locked category error
2022-11-12 12:41:00 -05:00
Michael C
7fb68937d0
add innertube tests for private videos
2022-11-09 14:39:02 -05:00
Ajay
90e68caaf7
Add active connection limit to setEx as well
2022-11-08 22:09:03 -05:00
Ajay
0ead3892ba
Fix write process time not being used
2022-11-08 00:01:44 -05:00
Ajay
2700b5b530
Add avg read and write for redis and write requests
2022-11-07 23:51:41 -05:00
Ajay
e1a5ca64f0
Add seperate config for stopping write redis connections
2022-11-07 23:04:18 -05:00
Ajay
98f202f6a9
Add max connection check to redis set
2022-11-07 22:51:26 -05:00
Ajay
ee436d982c
Fix csv download not being blocked
2022-11-07 16:30:16 -05:00
Ajay
dc8c35695d
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-11-07 16:24:44 -05:00
Ajay
9b509e7289
Disable csv downloads
2022-11-07 16:24:43 -05:00
Ajay Ramachandran
eee44e611b
Only create blank config if it doesn't exist
2022-11-01 14:21:33 -04:00
Ajay
5139c7aaf0
Fix tests
2022-10-30 17:07:25 -04:00
Ajay
2254e7f869
Fix license validation failing
2022-10-30 17:05:10 -04:00
Ajay
68d9d3cbde
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-10-29 21:04:01 -04:00
Ajay
571230db56
Stop spamming redis if it slows down
2022-10-29 21:03:34 -04:00
Ajay Ramachandran
9c5db6a958
Merge pull request #520 from mchangrh/update-actions
...
Update Github Actions
2022-10-28 17:08:20 -04:00
Ajay Ramachandran
6b1ecbe90e
Merge pull request #463 from mchangrh/fullVideoLabels
...
Full Video Labels endpoint
2022-10-28 17:08:05 -04:00
Michael C
d83d620893
update actions
2022-10-28 17:00:01 -04:00
Michael C
db71af480d
clear full video labels
2022-10-28 16:53:04 -04:00
Michael C
80c018c9d5
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels
2022-10-28 16:49:50 -04:00
Michael C
cc6c5980a1
videoLabelsHashKey
2022-10-28 16:49:10 -04:00
Ajay Ramachandran
9d7236282c
Merge pull request #504 from mchangrh/more-coverage
...
More test coverage, more tests
2022-10-28 16:45:22 -04:00
Michael C
7f92ac961d
clear label cache
2022-10-28 16:42:56 -04:00
Ajay
96db571a5e
Fix request rate limit option not working
2022-10-27 20:00:04 -04:00
Ajay
ccd1321d24
Allow disabling redis rate limit
2022-10-27 16:50:35 -04:00
Michael C
19289a149b
test against new chapters access
2022-10-27 01:47:12 -04:00
Michael C
622511c8fd
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-coverage
2022-10-27 01:38:08 -04:00
Ajay
c2acc6227b
Don't kill program if can't connect to read server
2022-10-27 01:31:41 -04:00
Ajay
176f2ce7b9
Kill if db can't connect
2022-10-27 01:30:59 -04:00
Michael C
9286f16e7b
add ingores to tokenUtils
2022-10-27 01:19:42 -04:00
Ajay
9e3d059d10
Stop postgres retries when over a threshold
2022-10-26 22:58:35 -04:00
Ajay
13ae4681cb
Fix hashing empty value for patreon sign in
2022-10-26 12:56:40 -04:00
Ajay
ee56a8dea4
Last pool fail when timeout
2022-10-26 12:49:39 -04:00
Ajay
94eb37cb1c
Count active postgres and redis requests
2022-10-26 01:31:29 -04:00
Ajay Ramachandran
0ced78d798
Merge pull request #515 from PeterDaveHello/patch-1
...
Leave no apk cache in the Docker image
2022-10-23 11:03:13 -04:00
Peter Dave Hello
f1005fe779
Leave no apk cache in the Docker image
...
This will make the Docker image tidier
2022-10-23 20:19:06 +08:00
Ajay
1e2437b993
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-10-22 13:32:49 -04:00
Ajay
a6275b3607
Add message about server outage
2022-10-22 13:32:48 -04:00
Ajay Ramachandran
ba27a8a056
Merge pull request #514 from Choromanski/feature/getTopUsers-fix-minutesSaved-calculation
...
Fixed minutesSaved typo
2022-10-22 10:19:27 -04:00
Brian Choromanski
10397fbde2
Fixed minutesSaved typo
2022-10-21 17:27:34 -04:00
Ajay
b5434ae234
expand chapter free access
2022-10-18 16:50:21 -04:00
Ajay Ramachandran
b52ca8b2a6
Merge pull request #513 from mchangrh/tokenValidation
...
add additional token validation
2022-10-13 09:53:29 -04:00
Michael C
e799821ad9
add additional token validation
2022-10-13 00:59:34 -04:00
Ajay
415bb31e36
Revert "Add concurrent request limit"
2022-10-11 11:59:53 -04:00
Ajay Ramachandran
eb3d733a34
Merge pull request #510 from mini-bomba/misc-fixes
...
Some fixes for voteOnSponsorTime.ts
2022-10-11 00:10:41 -04:00
Ajay
9386f25f9f
Add read only redis ability
2022-10-09 16:10:46 -04:00
mini-bomba
ceaf9ec6f6
Fix linter warning
2022-10-08 09:09:19 +02:00
mini-bomba
d229003f6e
Unlock the video on duration change detected when voting
2022-10-08 09:08:40 +02:00
mini-bomba
1becebdcd5
Actually pass the ignoreCache param, as the comment suggests
2022-10-08 09:04:37 +02:00
Ajay
b417241ca0
make permission reason not optional
2022-10-07 12:05:11 -04:00
Ajay
ee3d94e7b7
Add clearer chapter permission error
2022-10-07 12:04:44 -04:00
Ajay
b6da103c3d
switch to just lower vote min
2022-10-05 23:15:01 -04:00
Ajay
52a7d7e791
allow locked to be in top list and chapter
2022-10-05 23:08:16 -04:00
Ajay
b63572ec43
Add chapter to top users
2022-10-05 22:00:12 -04:00
Ajay Ramachandran
66d5622393
Merge pull request #508 from mini-bomba/searchsegments-description
...
Make /searchSegments return the segment description
2022-10-01 09:53:29 -04:00
Ajay Ramachandran
b7fcd9ea39
Merge pull request #509 from mini-bomba/status-startTimes
...
Use different startTime variables for each processTime check
2022-10-01 09:53:07 -04:00
mini-bomba
c4af2449c3
Use different startTime variables for each processTime check
...
This should make `processTime` and `redisProcessTime` values from /api/status more accurate
2022-10-01 15:50:47 +02:00
mini-bomba
eb5458427d
Make /searchSegments return the segment description
2022-10-01 13:46:27 +02:00
Michael C
95dd36a782
getUserInfo and free chapters tests
2022-09-30 22:58:49 -04:00
Michael C
67eb165b53
getSearchSegments tests
2022-09-30 22:58:37 -04:00
Michael C
d163b1d436
shadowban tests
2022-09-30 22:58:20 -04:00
Michael C
715d41fbb2
getStatus, token tests and mocks
2022-09-30 22:58:08 -04:00
Michael C
0b9e7029c5
minor optimizations
2022-09-30 22:57:33 -04:00
Michael C
9ef0eafac1
add istanbul exclusions
2022-09-30 22:56:59 -04:00
Michael C
d80be9e7b3
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-coverage
2022-09-30 19:36:58 -04:00
Michael C
968ffe785f
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels
2022-09-30 19:21:54 -04:00
Ajay Ramachandran
847f1bbabb
Merge pull request #499 from mchangrh/getStatus-redis
...
add redis process time to getStatus
2022-09-29 16:52:16 -04:00
Ajay Ramachandran
ada32217d9
Merge pull request #503 from mchangrh/innerTubeDuration
...
add innerTube API, types and tests
2022-09-29 16:45:55 -04:00
Michael C
a8ddae131d
Merge branch 'master' of github.com:ajayyy/SponsorBlockServer into more-coverage
2022-09-29 15:39:36 -04:00
Ajay Ramachandran
54e53f098e
Merge pull request #506 from mini-bomba/userstats-chapters
...
Add Chapters to /userStats, ignore Chapters for time saved calcs
2022-09-28 12:27:11 -04:00
mini-bomba
ed251a047a
Add a test case for getUserInfo.ts ignoring chapters for time saved calc
2022-09-28 18:18:41 +02:00
mini-bomba
601a17c969
Ignore chapters for saved time calculations in getUserInfo.ts
2022-09-28 18:07:39 +02:00
mini-bomba
771fa18731
Modify getUserStats test cases to include chapter counts
2022-09-28 17:59:04 +02:00
mini-bomba
27f7b6d3c7
Add chapter category & action type to getUserStats.ts
...
This also fixes chapters not being counted in the segment counts.
2022-09-28 17:58:18 +02:00
Michael C
55aa33aa6e
add DiskCache to getPlayerData
2022-09-26 15:58:33 -04:00
Michael C
07926ada57
switch test videoID, remove useless import
2022-09-26 15:44:04 -04:00
Ajay
ea05284b1d
Allow manual dispatch of generate sqlite base
2022-09-26 15:23:01 -04:00
Ajay Ramachandran
230191ece9
Merge pull request #473 from mchangrh/gha_b2-sync
...
add b2 syncing for sqlite base
2022-09-26 15:19:07 -04:00
Ajay
28448f99d9
Lock s3cmd-sync version
2022-09-26 15:17:38 -04:00
Michael C
c34de1baa4
add 4xx tests
2022-09-25 03:31:25 -04:00
Michael C
a469f2f382
add uniform parsing and catching for arrays, remove redundant check
2022-09-25 03:30:33 -04:00
Michael C
506b6570f3
add ignore next to catch errors
2022-09-25 03:29:31 -04:00
Michael C
8562dc2240
lint fix
2022-09-25 02:05:51 -04:00
Michael C
005ae2c9fb
add ignores for impossible cases
2022-09-25 02:04:51 -04:00
Michael C
9ca087206e
add token tests
2022-09-25 02:04:30 -04:00
Michael C
c0952c15c8
fix getTotalStats userCount
2022-09-24 23:08:36 -04:00
Michael C
47616711ce
move patreon mock
2022-09-24 22:52:55 -04:00
Michael C
7457b51aa4
add getByHash tests, remove redundant check
...
- `{}` always returns true so the early exit is never taken
2022-09-24 22:51:52 -04:00
Michael C
a00048aaac
add getIP test cases, misc others
2022-09-24 22:51:20 -04:00
Michael C
6499381b4f
add coverage reports to PostgreSQL tests
2022-09-24 22:49:53 -04:00
Michael C
0a102c15fd
add lockCategory tests and typo tweak
2022-09-24 22:48:48 -04:00
Michael C
e0be4744be
fix tokenUtils tests, skip if not configured
2022-09-24 22:48:23 -04:00
Michael C
dd7656d143
add lockCategories tests, getUserInfo
2022-09-24 22:47:40 -04:00
Michael C
f683ed4f29
add userCounter mocks and rearrange webhook path
2022-09-24 22:47:18 -04:00
Michael C
3f470a72f5
add additional/missing tests
2022-09-24 22:46:35 -04:00
Michael C
f5bafa2868
add nyc output to gitignore
2022-09-24 22:46:16 -04:00
Michael C
b652102c42
move mocks to subfolder
2022-09-24 22:45:23 -04:00
Ajay Ramachandran
55db24ab74
Merge pull request #505 from mchangrh/tokenValidateRegex
...
add fast fails for local and gumroad license keys
2022-09-24 21:09:16 -04:00
Michael C
551e103158
add tregex for both patreon and gumroad
2022-09-24 20:13:35 -04:00
Michael C
8fc01ba138
add fast fails for local and gumroad license keys
2022-09-22 20:30:10 -04:00
Ajay
1c1496afbc
Change free chapter to use historical rep
2022-09-22 14:50:48 -04:00
Ajay
7007ab05e1
Handle errors from redis store in request rate limit
2022-09-22 11:12:47 -04:00
Ajay
30bac658ed
Remove old permission workaround
2022-09-21 21:52:55 -04:00
Ajay
f6f83fcbe4
Add concurrent request limit
2022-09-20 23:41:36 -04:00
Ajay
f6c68ec29c
Add another option to get chapters submitting permission
2022-09-19 11:56:55 -04:00
Michael C
62a9b0eddd
add innerTube as primary videoInfo endpoint
...
- drop videoInfo.genreUrl since it's always empty
- bump ts target to ES2021 for Promise.any
- fix mocks to return err: false
- get maxResThumbnail from static endpoint
2022-09-15 17:02:33 -04:00
Michael C
3c09033267
add innerTube API, types and tests
2022-09-14 00:33:52 -04:00
Ajay
2ecf4b3a9b
Fix category votes to use category support to judge when not allowed
2022-09-12 10:59:26 -04:00
Ajay
94ca291460
Don't cut off early if last retry
2022-09-11 12:22:57 -04:00
Michael C
0e3eeece01
return -1 for unknown dbVersion
2022-09-08 16:38:05 -04:00
Michael C
00dae6d6a1
switch to reused promiseOrTimeout
2022-09-08 16:34:39 -04:00
Ajay
e84957a2c8
commit missing file
2022-09-08 15:04:33 -04:00
Ajay
1e66a2e57a
Add option to disable fallback after failure
2022-09-08 15:02:56 -04:00
Michael C
9be9d05dbe
add redis process time and add timeout clause
2022-09-07 23:43:14 -04:00
Ajay
072324f0ab
Add permission request to image build action
2022-09-07 22:35:32 -04:00
Ajay
c1e5f0e117
Fix void being used in wrong context
2022-09-07 22:15:44 -04:00
Ajay
ae95f7e3ea
Only give up on replica for last retry
2022-09-07 22:10:48 -04:00
Ajay
bd7dfc63ff
Add eslint rules for dealing with promises
2022-09-07 20:01:11 -04:00
Ajay Ramachandran
0ca134dc8f
Merge pull request #500 from mchangrh/fix-tests
...
fix tests
2022-09-07 12:03:05 -04:00
Michael C
d1d7675a8c
test fixes
...
test fixes
- fix timeout in redis (by @ajayyy)
- allow "errors" in tempVIP test
- remove duplicate warning in postSkipSegments
- remove duplicate VIP in tempVIP
- run tests against different user once tempVIP removed
- fix typo in getHashCache fetching
syntax and wording
- use standard syntax in redisTest
- fix spacing in getLockReason
- typo in npm script name
test cases
- add getHashCache test case
- add more tests to redisTest
configuration
- update config to use redis timeout
- update docker-compose to use newest pinned version
Co-Authored-By: Ajay Ramachandran <dev@ajay.app >
2022-09-07 02:16:23 -04:00
Ajay
252e2305f2
Fix undefined redis timeout breaking redis
2022-09-07 01:39:26 -04:00
Ajay
9c72e20d1b
test for changing chapter category
2022-09-07 01:31:38 -04:00
Ajay
ec41102f07
Better chapter name error and increase min size
2022-09-04 22:36:26 -04:00
Ajay
08ab7e816d
Restrict changing chapters category
2022-09-02 17:48:47 -04:00
Ajay
f103a02a34
Don't check 80% for chapters
2022-09-02 17:24:10 -04:00
Ajay
b413795e45
Change chapter name suggestion requirements
2022-09-02 15:23:08 -04:00
Ajay
6a61747573
Allow chapter submission
2022-09-02 14:55:20 -04:00
Ajay
420317a18c
rename access to license
2022-09-02 13:54:09 -04:00
Ajay
af2ef3d6a5
Add product link
2022-09-02 02:15:22 -04:00
Ajay Ramachandran
9f2d13780c
Merge pull request #501 from ajayyy/chapter-auth
...
Chapter auth
2022-09-02 02:06:45 -04:00
Ajay
acec7e58e7
Add free chapters access
2022-09-01 03:21:14 -04:00
Ajay
7060c0ab0d
Add access token system
2022-08-31 01:55:38 -04:00
Ajay Ramachandran
ab6fcb8943
delete unused directory
2022-08-26 20:49:31 -04:00
Ajay
cbf352173a
throw error if query fails
2022-08-25 21:14:25 -04:00
Ajay
027ff694a0
Make redis timeout configurable
2022-08-25 20:44:16 -04:00
Ajay
9da1fc523a
Parse float instead of int
2022-08-25 15:08:54 -04:00
Ajay
44d541bafe
Don't use replica for is vip
2022-08-22 11:59:08 -04:00
Ajay
dad205e729
don't scan ratings dir for tests
2022-08-22 11:07:30 -04:00
Ajay
8dbfe17ee4
remove ratings tests
2022-08-22 11:04:33 -04:00
Ajay
38a418a37a
Remove ratings code
2022-08-22 10:56:22 -04:00
Ajay
6be2f96f26
Make max tries configurable
2022-08-20 17:57:40 -04:00
Ajay
47a6a13bdb
Remove unused statement timeout with pgbouncer
2022-08-20 01:56:13 -04:00
Ajay
525a23abfb
Add max connections and idle timeout
2022-08-19 18:45:02 -04:00
Ajay
4f637daeaa
best way to deal with annoyance
2022-08-19 15:48:03 -04:00
Ajay
9559628273
Fix error
2022-08-19 15:45:23 -04:00
Ajay
5a43f46ac0
Configurable expiry time
2022-08-19 15:40:32 -04:00
Ajay
c3d30b18e2
Increase postgres read timeout and make it configurable
2022-08-15 17:32:07 -04:00
Ajay
7cb58b946a
Remove submission restriction for ci.json
2022-08-15 12:03:44 -04:00
Ajay
9306729fdc
Remove submission restrictions for tests
2022-08-15 11:43:51 -04:00
Ajay
1ae4c9a349
Add hostname to status
2022-08-12 15:34:40 -04:00
Ajay
be204fe873
Lower postgres read timeout, raise statment timeout
2022-08-12 15:31:19 -04:00
Ajay
6804e7d7a8
Add logging for permission rejections
2022-08-12 15:26:20 -04:00
Ajay
f4c104215b
Lower requirements
2022-08-12 15:11:50 -04:00
Ajay
479890fc0d
Add default expiry to query cache
...
Resolves #461
2022-08-11 21:37:13 -04:00
Ajay
877c3b7107
Change submission requirements
2022-08-09 22:01:09 -04:00
Ajay
cd35a58f83
Fix typo
2022-07-31 21:08:23 -04:00
Ajay
cb1cc10278
Extend restriction to all categories
2022-07-31 21:05:39 -04:00
Ajay
6239e53091
Fix flaky test
2022-07-29 12:06:38 -04:00
Ajay
ef93c692e5
fix reputation query typo
2022-07-29 11:57:55 -04:00
Ajay
ee49689110
Ignore full in all reputation cases
...
Closes #490
2022-07-29 11:55:48 -04:00
Ajay
04eabd5141
Fix error
2022-07-29 11:49:08 -04:00
Ajay
da1ed70c66
adjust permissions and use parrallel processing
2022-07-29 11:47:28 -04:00
Ajay
186f07b20c
change filler rules
2022-07-29 11:29:39 -04:00
Ajay
5e49ce22b2
new chat link
2022-07-28 16:59:23 -04:00
Ajay
af7634b498
Fix ad feature auth logic
2022-07-28 13:55:43 -04:00
Ajay
b9354e44ae
Fix missing semicolon
2022-07-28 13:10:21 -04:00
Ajay
17a790b6d9
More accurate spam number
2022-07-28 13:00:58 -04:00
Ajay
46805f4830
Require permission for filler submissions
2022-07-28 12:22:49 -04:00
Ajay
954c3db649
Change postgres timeout values
2022-07-24 15:41:09 -04:00
Ajay
23add072f3
Wait for any successful query instead of just most recent
2022-07-24 15:40:40 -04:00
Ajay
db2f9e11f7
Remove warning about disapearing degments bug
2022-07-23 14:12:06 -04:00
Ajay
2983bdb616
Add warning about segments not appearing
2022-07-22 21:06:21 -04:00
Ajay
597b26ba7c
Clear cache when submission rejected
2022-07-22 21:05:38 -04:00
Ajay
f93c197d05
Add timeout to shadowhiddenn ip
2022-07-22 20:56:29 -04:00
Ajay
9764c01428
Add timeout for replica requests on non replica too
2022-07-22 20:00:38 -04:00
Ajay
ad7080d801
Force replica if failed using normal
...
alternates now
2022-07-22 19:03:46 -04:00
Ajay
071aae5cf7
Add timeout for write too
2022-07-22 17:31:17 -04:00
Ajay
10491da7c2
Raise timeout
2022-07-22 17:27:32 -04:00
Ajay
b616ac990b
Add statement timeout for read
2022-07-22 16:39:31 -04:00
Ajay
603bad4967
Add another warning test
2022-07-21 14:19:41 -04:00
Ajay
ddb73af515
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-07-21 00:15:42 -04:00
Ajay
c1d345441c
Pin github actions
2022-07-21 00:15:40 -04:00
Ajay Ramachandran
e050a6eec3
Merge pull request #484 from mini-bomba/fix/requiredSegments-hidden
...
Fix (shadow)hidden segments not being sent when requested via requiredSegments + test cases
2022-07-20 20:04:24 -04:00
mini-bomba
b3c05bc606
Merge branch 'master' into fix/requiredSegments-hidden
...
# Conflicts:
# src/routes/getSkipSegments.ts
2022-07-21 00:54:14 +02:00
Ajay
3203271fdf
Allow removing your own warning
2022-07-20 18:52:27 -04:00
Ajay
6e1df18c38
Allow updating warning messages
2022-07-20 17:20:19 -04:00
Ajay
96a75a8335
Add retry logic to postgres requests
...
Maybe solves https://github.com/ajayyy/SponsorBlockServer/issues/487
2022-07-20 14:42:04 -04:00
Ajay
dd47f87616
Add more things to read from replica
2022-07-20 01:21:13 -04:00
Ajay
f1ed8eff84
Fix useReplica change breaking voting
2022-07-20 00:43:59 -04:00
Ajay
1e441c3ebf
Only use read replica for shorter queries
...
Help with https://github.com/ajayyy/SponsorBlockServer/issues/487
2022-07-20 00:40:07 -04:00
Ajay
f4b66d30ec
Use pool query since this should catch idle errors
...
https://github.com/brianc/node-postgres/issues/1324#issuecomment-623311914
Helps with https://github.com/ajayyy/SponsorBlockServer/issues/487
2022-07-20 00:31:51 -04:00
Ajay
288f7d45e7
Revert "Don't cache empty arrays"
...
This reverts commit 9ab939456b .
2022-07-20 00:23:02 -04:00
mini-bomba
4ac70d2d7e
add test cases for getting (shadow)hidden segments with requiredSegments
2022-07-16 15:07:22 +02:00
mini-bomba
0f3efc6fb2
send hidden segments when requested via requiredSegments
2022-07-16 15:07:22 +02:00
Ajay
f2904da653
Fix type error
2022-07-15 00:26:22 -04:00
Ajay
b11f260377
Log error from reputation in build segment groups
...
Maybe help with #483
2022-07-15 00:23:55 -04:00
Ajay
9ab939456b
Don't cache empty arrays
...
Maybe help with #483
2022-07-15 00:21:08 -04:00
Ajay
5c089dab13
don't crash from reputation
2022-07-14 17:51:26 -04:00
Ajay Ramachandran
bba1c7f965
Merge pull request #482 from mini-bomba/misc/voteOnSponsorTime
...
Misc changes to voteOnSponsorTime
2022-07-14 17:07:25 -04:00
mini-bomba
55a8b5d514
voteOnSponsorTime: add test cases for categoryVote as warned/banned user
2022-07-14 21:31:43 +02:00
mini-bomba
9c0f0d8e4f
voteOnSponsorTime: simplify currentCategoryCount computation in categoryVote
2022-07-14 20:28:45 +02:00
mini-bomba
f24a1415da
voteOnSponsorTime: check for VIP/ownSubmission before doing math in categoryVote
2022-07-14 20:24:22 +02:00
mini-bomba
70c98e0819
voteOnSponsorTime: add ban check to categoryVote
2022-07-14 20:22:44 +02:00
mini-bomba
39ad5fb62a
voteOnSponsorTime: move warning check before call to categoryVote
2022-07-14 20:13:47 +02:00
Ajay Ramachandran
356edb1f4b
Merge pull request #481 from mchangrh/update-deps
...
update dependencies, use native redis typings
2022-07-13 12:20:03 -04:00
Michael C
5b60243b22
update packages, use native redis typings
2022-07-13 00:29:40 -04:00
Ajay Ramachandran
9f5ac2d9b9
Merge pull request #477 from mchangrh/coverage-nyc
...
add instanbul/nyc test coverage
2022-07-12 23:14:35 -04:00
Ajay Ramachandran
972cb96259
Merge pull request #476 from mchangrh/fullvideo-revive-nonvip
...
add tests for #454
2022-07-12 23:14:03 -04:00
Ajay
c2b0ecd6f6
Add ability to add manually choose who can submit chapters
2022-07-06 00:11:45 -04:00
Ajay
47f460bb2c
Fix non-sequencial reputation in getSkipSegments
2022-07-05 20:11:30 -04:00
Ajay
adca0256a0
Fix voting insert with postgres
2022-07-05 19:30:45 -04:00
Ajay
7d396f3782
Do more things in parallel in getSkipSegments
2022-07-05 19:23:02 -04:00
Ajay
8ed695bcdc
Fix canSubmitChapter being filtered out
2022-07-04 23:45:52 -04:00
Ajay
f8c297ddfb
Add canSubmitChapter and fix all userInfo functions running
2022-07-04 23:44:50 -04:00
Ajay
0f3df8db1b
make temp vip as powerful as vip for submitting
2022-07-04 16:21:02 -04:00
Ajay
f9de547b95
Add malicious vote type for chapters
2022-07-04 16:18:58 -04:00
Ajay
cc953884d9
Don't count chapter for time saved
2022-07-04 01:10:52 -04:00
Ajay
ebee00322a
remove client error listener completely
2022-06-30 18:11:02 -04:00
Ajay
a99da61039
Fetch user count right away
2022-06-30 17:56:06 -04:00
Ajay
edff48d258
Don't release client on client error
2022-06-30 17:50:15 -04:00
Ajay
3844404637
ctch client connection errors
2022-06-30 02:00:59 -04:00
Ajay
5057c86707
Fix read only db used by default
2022-06-30 01:38:58 -04:00
Ajay
b1b40d410f
Prevent errors from double calling release
2022-06-30 01:37:50 -04:00
Ajay
de60415f55
more generous reputation
2022-06-28 18:14:12 -04:00
Michael C
931e3b8b11
add instanbul/nyc test coverage
2022-06-28 15:19:42 -04:00
Michael C
8560c3f673
add tests for #454
2022-06-28 15:02:09 -04:00
Ajay
54db2c8c10
Release client on error
2022-06-27 19:47:29 -04:00
Ajay
c6868fa839
Disable ssl
2022-06-27 19:35:50 -04:00
Ajay
86e61c778c
Fix fail calculation
2022-06-25 12:30:16 -04:00
Ajay
e615d7c032
Fix warnings
2022-06-25 12:03:30 -04:00
Ajay
08003bc2f2
Switch postgres instances if there is a failure
2022-06-25 12:02:01 -04:00
Ajay
1a232600a1
Add option to cycle between multiple postgres instances
2022-06-25 01:41:45 -04:00
Ajay
a8d0336cae
Don't crash on postgres errors
2022-06-24 17:20:48 -04:00
Ajay
e1d6fdfefb
Remove service from index
2022-06-24 02:21:37 -04:00
Ajay
f8ef145bb8
fix collation index
2022-06-24 01:29:07 -04:00
Ajay
a187180388
Add new index
2022-06-24 01:24:55 -04:00
Ajay
749fa4bb95
Fix not all db config vars being used
2022-06-14 16:22:59 -04:00
Ajay
5c43750835
Allow ssl
2022-06-10 16:40:48 -04:00
Ajay Ramachandran
8ec44aff1a
more cache time
2022-06-01 14:24:58 -04:00
Ajay Ramachandran
046a535ebc
less server
2022-06-01 13:53:10 -04:00
Ajay
0260b4889d
safe navigate in user vip
2022-05-27 19:07:44 -04:00
Ajay
6621ae3730
Fix upgrade crash
2022-05-26 22:49:21 -04:00
Ajay
d273095525
Add improved hashed ip index
2022-05-26 22:47:07 -04:00
Ajay Ramachandran
5e4773afdd
Merge pull request #472 from mchangrh/addl_poi_tests
...
add additional poi_highlight tests
2022-05-26 21:25:11 -04:00
Michael C
b7995832bc
add b2 syncing for sqlite base
2022-05-26 21:19:27 -04:00
Michael C
cbdd852566
add additional poi_highlight tests
2022-05-26 21:17:58 -04:00
Ajay
043c8b771e
Lower redis timeout
2022-05-23 20:15:44 -04:00
Ajay
55ff3230ed
Catch redis exceptions
2022-05-23 18:32:40 -04:00
Ajay
ed221c8599
Don't log 404 errors for disk cache
2022-05-21 00:39:39 -04:00
Ajay
29660d998b
Don't count users for options requests
2022-05-20 16:59:21 -04:00
Ajay
f520e00ed4
Fix null values messing with env import
2022-05-20 04:53:31 -04:00
Ajay
21f7d5d938
Don't add primary keys with sqlite
2022-05-17 12:53:48 -04:00
Ajay
c9a0fb7bc3
Add disk cache service
...
Fixes #471
2022-05-17 02:29:36 -04:00
Ajay
e79a8417f4
Don't always build backup db image
2022-05-17 01:51:11 -04:00
Ajay
dfbc32617b
Create an image for db backups
2022-05-17 01:29:49 -04:00
Ajay
901a42d1b4
update docs with index
2022-05-14 15:49:08 -04:00
Ajay
634d5d083a
Better indexes
2022-05-14 15:43:38 -04:00
Ajay
d67b9cdcc5
lots of anomolies
2022-05-10 14:34:22 -04:00
Ajay
78acb4a76a
am wrong again
2022-05-10 14:27:43 -04:00
Ajay
5889e9e557
another id
2022-05-10 14:25:47 -04:00
Ajay
3931328b60
more duplicates
2022-05-10 14:24:34 -04:00
Ajay
f56fbbd2c7
still impossible
2022-05-10 14:22:42 -04:00
Ajay
dbfc685bf9
fix another impossible key
2022-05-10 14:21:44 -04:00
Ajay
34771e96fe
change primary key for category votes
2022-05-10 14:20:07 -04:00
Ajay
bcb9e33a01
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-05-10 14:06:26 -04:00
Ajay
72de520781
Add primary keys to tables
2022-05-10 14:06:24 -04:00
Ajay Ramachandran
3c34077056
Add missing link
2022-05-10 14:05:30 -04:00
Ajay Ramachandran
2eb53015bc
fix table name
2022-05-10 14:04:25 -04:00
Ajay Ramachandran
4bbaf11502
Move username logs to private
2022-05-10 13:50:41 -04:00
Michael C
6a826b63c9
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels
2022-05-09 02:42:18 -04:00
Ajay
60a3c017e5
Make missing folder
2022-05-06 16:21:49 -04:00
Ajay
a89abd5dd8
Rsync should also run node
2022-05-06 16:06:56 -04:00
Ajay
fc99c42e02
Run rsync build after sb server
2022-05-06 15:27:44 -04:00
Ajay
1146aac3c2
Run docker build as two jobs
2022-05-06 15:25:24 -04:00
Ajay
3341500fdf
Fix docker building workflow
2022-05-06 14:42:52 -04:00
Ajay
81ad0dd640
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-05-06 14:34:26 -04:00
Ajay
ff197d2985
Add rsync docker image
2022-05-06 14:34:11 -04:00
Ajay Ramachandran
8fbb1bb79b
Merge pull request #469 from mchangrh/docker-faster-build
...
docker build without platforms + bumped actions
2022-05-06 14:29:59 -04:00
Michael C
c0dc174f42
docker build without platforms + bumped actions
2022-05-06 13:01:53 -04:00
Ajay
d8395163b9
fix newleafurls
2022-05-06 01:53:44 -04:00
Ajay
b4b7ccec20
remove old volume
2022-05-06 00:03:01 -04:00
Ajay
d75226bde5
better db dump system
2022-05-05 22:50:07 -04:00
Ajay
db700cd7e8
Allow single newleaf url
2022-05-05 20:52:44 -04:00
Ajay Ramachandran
591e3a0051
another server
2022-05-05 09:12:12 -04:00
Ajay
b0bcf2b684
don't specify tablespace
2022-05-04 16:03:56 -04:00
Ajay
2e4b7a0c9c
Don't force encoding
2022-05-04 15:36:51 -04:00
Ajay
c5f163e41e
rename container
2022-05-04 02:25:29 -04:00
Ajay
c5d2cacae2
Fix postgres tests
2022-05-04 02:07:22 -04:00
Ajay
5e3e02c674
Fix context
2022-05-04 01:54:32 -04:00
Ajay
0fe85b9760
Auto build container
2022-05-04 01:51:38 -04:00
Ajay
5f53859c94
Fix docker container
2022-05-04 01:46:41 -04:00
Ajay
5b177a3e53
Prepare dockerfile for use, allow configuring via env vars
2022-05-03 22:08:44 -04:00
Ajay
a66588619a
Fix rep hurting negatively voted segments
2022-05-03 15:27:23 -04:00
Ajay Ramachandran
98494aec4a
more server
2022-04-27 14:19:14 -04:00
Ajay Ramachandran
e74b985304
more writes
2022-04-14 01:57:23 -04:00
Ajay
fb414ed6db
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-04-14 01:54:28 -04:00
Ajay
c7905d4062
Don't break for no response
2022-04-14 01:54:26 -04:00
Ajay Ramachandran
8a9c7c869b
new server
2022-04-14 01:18:48 -04:00
Ajay Ramachandran
002298648c
Merge pull request #468 from ajayyy/redis-backed-ratelimit
...
Back rate limit by redis and upgrade node-redis
2022-04-13 17:51:04 -04:00
Ajay
929856fd3f
No ugly json access
2022-04-13 17:45:41 -04:00
Ajay
1df8117105
Fix warnings and errors
2022-04-13 17:43:38 -04:00
Ajay
146ba4ff93
Migrate breaking config changes
2022-04-13 17:41:57 -04:00
Ajay
8dc87da462
Back rate limit by redia and upgrade node-redis
2022-04-13 17:36:07 -04:00
Ajay
41c92da37e
Upgrade express-rate-limit
2022-04-13 13:50:30 -04:00
Ajay
2d6be12062
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-04-11 23:48:54 -04:00
Ajay
14ef6682df
Log locked downvoted segment
2022-04-11 23:48:52 -04:00
Ajay Ramachandran
10298efc08
Merge pull request #464 from mchangrh/postSkipSegment
...
update postSkipSegments
2022-04-11 01:56:22 -04:00
Michael M. Chang
b09ed1cbe2
Update src/routes/postSkipSegments.ts
...
Co-authored-by: Ajay Ramachandran <dev@ajay.app >
2022-04-11 01:54:28 -04:00
dependabot[bot]
d5611fb023
Bump moment from 2.29.1 to 2.29.2
...
Bumps [moment](https://github.com/moment/moment ) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases )
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2 )
---
updated-dependencies:
- dependency-name: moment
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-09 11:54:05 -04:00
Michael C
f67c0b5762
merged changes by @mini-bomba
2022-03-31 18:03:42 -04:00
Ajay Ramachandran
468ce25858
Merge pull request #465 from mini-bomba/optimize/voteOnSponsorTime
...
voteOnSponsorTime.ts: don't do database queries for vote eligibility on locked segments
2022-03-31 16:52:30 -04:00
Michael C
d392b1c8fc
remove outdated comments & unnecessary space
2022-03-31 16:52:05 -04:00
Michael C
d02d78f325
add 80% tempVIP
...
- move isUserTempVIP to own file
- reduce allSegmentDuration instead of forEach
- don't return decreaseVotes from autoModerator
- completely skip autoModCheck if VIP
2022-03-31 16:43:10 -04:00
mini-bomba
6b5dc54cc7
voteOnSponsorTime.ts: don't do database queries for vote eligibility on locked segments
2022-03-31 22:41:09 +02:00
Michael C
76cc603a3f
update auotmod check
...
- remove NB code
- reduce complexity + unnecessary iterations
- use client duration if given
2022-03-31 16:02:50 -04:00
Michael C
65a661ca4d
fix naming regression, simplify findCategory
2022-03-31 14:19:06 -04:00
Michael M. Chang
2fb7f4faa6
consistent function naming
...
Co-authored-by: Ajay Ramachandran <dev@ajay.app >
2022-03-31 14:05:52 -04:00
Michael C
ed560425a0
removed logging, fixed labelByHash test cases
2022-03-31 14:05:07 -04:00
Michael C
267320bc56
add filler and exclusive_access to category enum
2022-03-31 03:47:25 -04:00
Michael C
e6bf20937d
endpoint + tests for getVideoLabels
2022-03-31 03:47:06 -04:00
Ajay
fe0afd58bc
Save userid with votes
2022-03-30 16:02:30 -04:00
Ajay
9bcf7ed199
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-03-30 15:43:54 -04:00
Ajay
fafcbe0b25
Move new user down
2022-03-30 15:43:53 -04:00
Ajay Ramachandran
4c2b258038
new server
2022-03-30 14:15:44 -04:00
Ajay Ramachandran
bd059c3a68
another get query
2022-03-29 14:14:53 -04:00
Ajay Ramachandran
70a507818f
move post server again
2022-03-29 13:08:12 -04:00
Ajay Ramachandran
5f4f45056e
Increase max memory
2022-03-28 12:18:15 -04:00
Ajay Ramachandran
7ead3ddc63
reenable redis snapshots
2022-03-28 12:17:37 -04:00
Ajay Ramachandran
a536e4aeb8
remove 10s cache
2022-03-28 12:07:46 -04:00
Ajay Ramachandran
2b237a4a8b
Move server
2022-03-28 11:58:59 -04:00
Ajay Ramachandran
03542ebcac
Merge pull request #460 from ajayyy/dependabot/npm_and_yarn/minimist-1.2.6
...
Bump minimist from 1.2.5 to 1.2.6
2022-03-24 11:38:59 -04:00
dependabot[bot]
b3c2b2c15d
Bump minimist from 1.2.5 to 1.2.6
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-24 07:12:26 +00:00
Ajay Ramachandran
80e3a55cfe
Change url for test
2022-03-17 12:31:09 -04:00
Ajay Ramachandran
9224960dea
Fix wiki redirect
2022-03-17 12:30:00 -04:00
Ajay
84ea08d6d0
Fix crash when categories array is broken
2022-03-11 10:19:55 -05:00
Ajay Ramachandran
e9c43a22f5
Don't redirect to different port
2022-03-08 13:28:59 -05:00
Ajay Ramachandran
fe6d2e88bd
Increase read timeout
2022-03-07 16:45:31 -05:00
Ajay Ramachandran
0bb6d29932
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-03-07 18:40:17 +01:00
Ajay Ramachandran
e9ebf08984
proxy protocol
2022-03-07 18:39:38 +01:00
Ajay
f156a5fbe9
Don't count low viewed downvoted segments
2022-03-06 18:42:24 -05:00
Ajay
b182945274
Clear redis timeouts
2022-03-04 19:22:01 -05:00
Ajay
6507a3a68d
Add timeout to redis calls
2022-03-04 19:19:15 -05:00
Ajay Ramachandran
e8b8b87190
lower timeout
2022-03-04 02:29:52 -05:00
Ajay
c602285102
Fix wrong timeout variable being used
2022-03-03 20:09:30 -05:00
Ajay
744b5ea4f6
Increase max fails, lower timeout
2022-03-03 19:58:03 -05:00
Ajay Ramachandran
68b2fba24c
Update nginx config
2022-03-04 01:53:31 +01:00
Ajay
dbb8128a3a
Improve useragent parsing
2022-02-22 00:51:45 -05:00
Ajay
22b4135d62
Fix flaky test
2022-02-21 22:58:23 -05:00
Ajay
4029b15233
Add query cache for shadowban
2022-02-21 22:46:13 -05:00
Ajay
90fc02e340
Better private db index
2022-02-21 21:57:57 -05:00
Ajay
6b1fa7f5d0
15 second timeout for requests
2022-02-19 16:02:05 -05:00
Ajay Ramachandran
0e8b6eb506
Update nginx config
2022-02-16 02:27:04 +01:00
Ajay Ramachandran
50d8c5f105
Merge pull request #457 from mchangrh/highlight_poi
...
force poi_highlight to be type POI
2022-02-13 16:40:20 -05:00
Michael C
4da3c2d049
force poi_highlight to be type POI
2022-02-13 16:13:03 -05:00
Ajay
a3ddbef38e
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-02-12 13:11:47 -05:00
Ajay
77a1799a7f
Filter input
2022-02-12 13:11:46 -05:00
Ajay Ramachandran
0dbd081063
Update nginx config
2022-02-12 06:49:21 +01:00
Ajay
c9b18a4938
Don't fail if no latest submission with video duration
2022-02-12 00:06:46 -05:00
Ajay
155c5a9b97
Don't allow upvoting dead locked category segment
...
for full video
2022-02-12 00:05:01 -05:00
Ajay
1bc9a69b79
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-02-11 12:06:33 -05:00
Ajay
fb6e98f93f
Don't allow changing highlight category
2022-02-11 12:05:04 -05:00
Ajay Ramachandran
61eb2e665b
Merge pull request #451 from mchangrh/voteOnSponsorTime
...
rewrite voteOnSponsorTimes
2022-02-10 23:02:35 -05:00
Ajay Ramachandran
de7b985535
Merge branch 'master' into voteOnSponsorTime
2022-02-10 23:00:51 -05:00
Ajay Ramachandran
bbcbd3783a
Merge pull request #449 from mchangrh/fixFullLocks
...
add full video and exclusive_access support
2022-02-10 22:13:14 -05:00
Ajay Ramachandran
6db9404e1c
Merge pull request #456 from ajayyy/dependabot/npm_and_yarn/follow-redirects-1.14.8
...
Bump follow-redirects from 1.14.5 to 1.14.8
2022-02-10 20:22:12 -05:00
dependabot[bot]
857ee04c3c
Bump follow-redirects from 1.14.5 to 1.14.8
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.5 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.5...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-11 01:21:14 +00:00
Ajay Ramachandran
8b58d52b12
Merge pull request #450 from ajayyy/dependabot/npm_and_yarn/simple-get-4.0.1
...
Bump simple-get from 4.0.0 to 4.0.1
2022-02-10 20:20:34 -05:00
Ajay
50fab971e0
Temp vip fix
2022-02-10 19:42:08 -05:00
Michael C
df6c76ede9
quote for postgres
2022-02-04 00:43:20 -05:00
Michael C
0ff38b918b
fix tests, add add actionType tests
2022-02-04 00:40:13 -05:00
Michael C
5713b96d13
add test for downvote videoDuration change
2022-02-04 00:21:15 -05:00
Michael C
f3d10bd19f
don't leak adminID on tempVIP
2022-02-03 21:31:43 -05:00
Michael C
a2f2cf9c0d
update lockCategories
...
- migration to remove invalid locks
- lockCategories poi_highlight is now actionType poi
- deleteLockCategories now takes actionType
- update postLockCategories response, serverside filtering for accepted categories
- fix tests accordingly
2022-02-03 17:44:29 -05:00
Michael C
2b8944bf15
correct tempVIP test
2022-02-03 13:51:15 -05:00
Michael C
db5922e4b7
fix tempvip cases
2022-02-03 13:49:13 -05:00
Michael C
0854ad1f65
rewrite voteOnSponsorTimes
2022-02-03 06:06:54 -05:00
dependabot[bot]
75cf14a960
Bump simple-get from 4.0.0 to 4.0.1
...
Bumps [simple-get](https://github.com/feross/simple-get ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/feross/simple-get/releases )
- [Commits](https://github.com/feross/simple-get/compare/v4.0.0...v4.0.1 )
---
updated-dependencies:
- dependency-name: simple-get
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-29 00:04:08 +00:00
Ajay
985039a86b
Fix segments always coming back as skip
2022-01-20 19:07:34 -05:00
Ajay
acc983b829
Downgrade redis
2022-01-20 15:57:31 -05:00
Ajay
ae6255cc69
Add timeout to newleaf
2022-01-20 15:36:38 -05:00
Michael C
830fdff3be
add full video and exclusive_access support
2022-01-19 21:53:40 -05:00
Ajay Ramachandran
c2516461ad
Merge pull request #448 from ajayyy/poi-highlight
...
Highlight category now has it's own action type
2022-01-19 19:34:35 -05:00
Ajay
d367998d39
Remove use of "CategoryActionType"
2022-01-19 18:11:01 -05:00
Ajay
6ece944536
Highlight category now has it's own action type
2022-01-19 17:48:09 -05:00
Ajay
5413d8dc9c
Ignore full video for reputation
2022-01-17 12:34:51 -05:00
Ajay
5aa78967de
Add nice error page to homepage
2022-01-16 18:18:46 -05:00
Ajay
50d0cbd378
Fix error conf redirecting to wrong url
2022-01-16 18:18:37 -05:00
Ajay
8759f8dbf2
Use object for merging locks
...
Co-authored-by: Nishant Arora <whizzzkid@users.noreply.github.com >
2022-01-16 15:17:36 -05:00
Ajay
acb5a9467e
Fix warning
2022-01-16 15:03:46 -05:00
Ajay
a31a4d016f
Fix lock reason test
2022-01-16 13:19:42 -05:00
Ajay Ramachandran
b39d323a22
Merge pull request #444 from mchangrh/full-tests
...
Tests for full video locks
2022-01-16 13:17:19 -05:00
Ajay Ramachandran
bfd017a66a
formatting
2022-01-16 13:16:13 -05:00
Ajay Ramachandran
72bbc79943
Fix syntax
2022-01-16 13:10:14 -05:00
Ajay Ramachandran
677e05e46c
Merge pull request #442 from mchangrh/nginx-update
...
update nginx configs
2022-01-16 13:04:35 -05:00
Ajay Ramachandran
732eeed41d
Update nginx config
2022-01-16 19:03:02 +01:00
Ajay Ramachandran
ea196e84f1
Merge pull request #439 from mchangrh/channelVipTests
...
additional tests for tempVIP
2022-01-16 12:54:22 -05:00
Ajay
df23d1510d
More friendly lock message
2022-01-15 15:41:39 -05:00
Ajay
76bfd27b33
Add exclusive access category
2022-01-14 00:23:09 -05:00
Ajay
6fe7200481
don't allow category vote for full video segment
2022-01-14 00:21:13 -05:00
Michael C
6f737ab0b6
minor typo spotted
2022-01-08 17:16:23 -05:00
Michael C
ea4adc0e14
getLockCategories + lint
2022-01-07 18:12:20 -05:00
Michael C
6ec80df8f4
update getLockReason
2022-01-07 03:04:47 -05:00
Ajay Ramachandran
762f4f6964
Merge pull request #445 from HaiDang666/substr-deprecated
...
remove deprecated method: String.substr
2022-01-07 02:19:05 -05:00
Haidang666
a1b59cba34
remove deprecated method: String.substr
2022-01-07 13:59:47 +07:00
Michael C
0584492b8c
getLockCategories
2022-01-06 23:56:27 -05:00
Michael C
77de17c810
add allow-headers content-type
2022-01-06 21:31:34 -05:00
Ajay Ramachandran
9ca01407e8
Fix typo
2022-01-06 20:26:33 -05:00
Michael C
7472af714a
missing semicolons
2022-01-06 18:49:49 -05:00
Michael C
164a9dab17
refactored nginx configs
...
- handle CORS within nginx
- remove allow-headers from CORS
- add custom dynamic error pages
- remove unused fastcgi
- removed OPTIONS backend
- remove previous custom errorDirective
- moved proxy directives to appropiate file
2022-01-06 18:42:48 -05:00
Ajay Ramachandran
b2e37804f5
Merge pull request #440 from ajayyy/full-video-labels
...
Full video labeling
2022-01-06 15:55:11 -05:00
Ajay
cb9b2ff965
Fix test data using wrong hash
2022-01-06 15:28:44 -05:00
Ajay
ad4c34ef28
Fix UUID test
2022-01-06 15:20:41 -05:00
Ajay
c0c2b365ae
Fix full video different category duplicate error
2022-01-06 15:17:21 -05:00
Ajay
77565d7eda
Fix wrong array being returned for highlight and full video segments
2022-01-06 15:17:01 -05:00
Ajay
75cad434b6
Fix unlocked segments being ignored
2022-01-06 14:58:46 -05:00
Ajay
be441a314f
Fix locked segment filtering for highlight and full video
2022-01-06 14:54:27 -05:00
Ajay
d5d73273de
Don't autohide full video segments for duration change
2022-01-06 14:45:05 -05:00
Ajay
44ffa40b6c
Should not add full segments to db from shadowbanned users
2022-01-06 14:15:50 -05:00
Ajay
b4f8bdd719
Add test for submitting full video converting to upvote
2022-01-06 14:10:41 -05:00
Ajay
68c6266139
formatting
2022-01-06 03:40:04 -05:00
Ajay
65954520d0
Treat duplicate full video submission as upvote
2022-01-06 03:39:46 -05:00
Ajay
da03958e97
Lock docker dependency versions
2022-01-06 01:45:52 -05:00
Ajay
f89bef74d6
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-01-04 20:39:53 -05:00
Ajay
6a98a215ac
Don't group different categories
2022-01-04 20:39:50 -05:00
Ajay
89ea13956a
Ensure only one full video label is served
2022-01-04 19:27:50 -05:00
Ajay Ramachandran
f86d2ab0e4
Merge pull request #441 from mchangrh/cache-getTopUsers
...
[nginx] add getTopCategoryUsers to CACHEZONE
2022-01-02 22:49:01 -05:00
Ajay
8fef35dbbc
Allow submitting full sponsors and selfpromo
2022-01-02 22:38:06 -05:00
Michael C
8a80b97e8c
add getTopCategoryUsers to CACHEZONE
2022-01-02 22:28:22 -05:00
Ajay
7f7cc3a7ca
Increase required overlap for same category and action type
2022-01-02 14:02:26 -05:00
Ajay
09eec5a4a5
Add locking by action type
2022-01-02 14:00:54 -05:00
Michael C
05516a5d7d
fix postgres quotes & fixed test.json
2021-12-31 17:12:46 -05:00
Michael C
a42f023074
add more testing, change enabled
...
- add 404 if channelID cannot be dervived
- added response message on success returning channel name
- test limits of temp VIP
- minor eslint
2021-12-31 16:54:28 -05:00
Ajay Ramachandran
aaa3179d42
Merge pull request #435 from mchangrh/categoryLeaderboards
...
add getTopCategoryUsers
2021-12-31 14:06:34 -05:00
Ajay Ramachandran
ce4270b96d
Merge branch 'master' into categoryLeaderboards
2021-12-31 14:04:20 -05:00
Ajay Ramachandran
df3d6fe9c7
Merge pull request #438 from mchangrh/tempVIP
...
channel-specific VIP
2021-12-31 14:02:05 -05:00
Ajay Ramachandran
dd900497f4
Merge pull request #437 from mchangrh/redis-track-status
...
add redis status/min
2021-12-31 14:01:20 -05:00
Michael C
a1d28fbfe1
add addUserAsTempVIP
2021-12-31 04:26:37 -05:00
Michael C
9ae16ea9b6
add tempVIP check to vote
2021-12-30 22:21:27 -05:00
Michael C
b9a620fc3b
add redis status/min
2021-12-30 16:47:11 -05:00
Michael C
42624a7782
minor eslint fixes
2021-12-30 04:09:46 -05:00
Michael C
f97af4c433
texts for getTopCategoryUsers
2021-12-30 04:07:38 -05:00
Michael C
98994cee01
add getTopUsers test
2021-12-30 04:07:21 -05:00
Michael C
90f891aee4
arr.push instead of add at index
2021-12-30 03:13:55 -05:00
Ajay Ramachandran
ceabeefe21
disable logging again
2021-12-29 23:33:00 +01:00
Ajay
00d7e1f058
Force skip segments cache clear
2021-12-29 00:22:02 -05:00
Ajay
13a4bc3ee9
Fix tests
2021-12-29 00:19:53 -05:00
Ajay
939ec61c0e
Increase threshold for category overlap
2021-12-29 00:18:07 -05:00
Michael C
0db3240f58
add getTopCategoryUsers
2021-12-27 04:58:11 -05:00
Ajay Ramachandran
11a1bbc866
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-12-22 23:26:37 +01:00
Ajay Ramachandran
3e3f7c2972
Fix database downloads
2021-12-22 23:26:04 +01:00
Ajay
95d14c0fdb
Allow overlaping non music with other categories
2021-12-21 11:21:19 -05:00
Ajay
7b2d9365a0
Fix undefined issue
2021-12-20 23:52:24 -05:00
Ajay Ramachandran
1c304b636f
Merge pull request #430 from mchangrh/filler
...
add filler to userStats and getTopUsers
2021-12-20 23:44:24 -05:00
Ajay Ramachandran
4e94cdda72
Merge pull request #432 from mchangrh/eslint-and-workflow
...
eslint + workflow formatting
2021-12-20 23:44:09 -05:00
Ajay Ramachandran
dfe669a0cd
Merge pull request #431 from ajayyy/cached-get-segments
...
Add overlapping group caching + filter out identical segments of different categories
2021-12-20 23:44:03 -05:00
Ajay
873551e1c4
formatting fix
2021-12-20 23:39:58 -05:00
Ajay
66af4f60c8
Add test for different categories at same time
2021-12-20 23:07:12 -05:00
Michael C
3dd9024cc7
eslint + workflow formatting
...
- appropriate job names
- only trigger on pushes to master branch & PRs
- conform to formatting
2021-12-20 23:04:41 -05:00
Ajay
5ebb638925
Add overlapping group caching
2021-12-20 22:51:47 -05:00
Ajay Ramachandran
7aa9524835
Merge pull request #429 from mchangrh/redis-test
...
add redis tests
2021-12-20 22:50:21 -05:00
Ajay Ramachandran
f6d68bb3f3
Merge pull request #421 from HaiDang666/392_getSearchSegments-pagination
...
add custom pagination in getSearchSegments
2021-12-20 22:36:22 -05:00
Ajay Ramachandran
7caaf833dd
Fix safe navigation
2021-12-20 22:29:48 -05:00
Ajay
a137f8a434
Add redis to ci name
2021-12-20 22:27:35 -05:00
Michael C
2ee7c82760
add test for filer
2021-12-20 00:27:38 -05:00
Michael C
b730383293
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into filler
2021-12-20 00:27:09 -05:00
Michael C
d1ed4376ef
add filler to userStats and getTopUsers
2021-12-20 00:19:14 -05:00
Ajay Ramachandran
f54b9f7ae1
Fix nginx config issues
2021-12-20 03:24:54 +01:00
Ajay Ramachandran
9d1a401e3e
Merge pull request #426 from mchangrh/tune-nginx
...
nginx tuning in lieu of http/2
2021-12-19 21:15:55 -05:00
Ajay Ramachandran
4fa4fdf1e3
Update nginx config
2021-12-20 03:13:29 +01:00
Ajay Ramachandran
5a358caedb
Merge pull request #419 from mchangrh/patch-1
...
[searchSegments] ignore if votes <= -2
2021-12-19 21:00:45 -05:00
Ajay Ramachandran
e2e4f79cec
Merge pull request #428 from mchangrh/userNameRows
...
remove empty rows from userNames
2021-12-19 21:00:27 -05:00
Michael C
ed44eaffec
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into redis-test
2021-12-19 19:38:55 -05:00
Michael C
1f9dc92074
add arrayDeepPartialEquals
2021-12-19 19:37:22 -05:00
Ajay Ramachandran
0f4b0c2f54
formatting
2021-12-19 19:13:49 -05:00
Michael C
68bc6469ce
add redis tests
2021-12-19 02:03:50 -05:00
Ajay Ramachandran
d7e86aac80
Merge pull request #427 from mchangrh/fix-test-422
...
remove extra print from test
2021-12-19 01:08:02 -05:00
Haidang666
89a83f78cc
add more test on limit, page
2021-12-19 10:13:06 +07:00
Michael C
544af7ce15
remove empty rows from userNames
2021-12-18 21:33:38 -05:00
Michael C
ba07137933
remove extra print from test
2021-12-18 20:53:17 -05:00
Michael C
e0bf2afdc9
nginx tuning
...
- whitespace formatting
- added keepalive
- buffer access_logs
friendship ended with http/2, nginx is my new best friend
2021-12-18 18:59:24 -05:00
Haidang666
ec73ae309e
add custom pagination in getSearchSegments
2021-12-17 15:08:51 +07:00
Ajay Ramachandran
caf94a7a93
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-12-12 23:35:13 -05:00
Ajay Ramachandran
4092ce2616
Fix async causing shadow banned segments to always appear
2021-12-12 23:35:10 -05:00
Ajay Ramachandran
14c2f16cb6
update nginx config
2021-12-13 01:41:16 +01:00
Ajay Ramachandran
a0720329d0
Write to private db first when rating
2021-12-12 00:55:22 -05:00
Michael C
292b05443f
ignored segments should exclude downvote
2021-12-10 16:40:34 -05:00
Michael M. Chang
98cb2b022d
[searchSegments] ignore if votes <= -2
...
the ignored parameter should also ignore segments that are downvoted
2021-12-10 07:52:47 -05:00
Ajay Ramachandran
6f3b45bdbd
Update nginx config
2021-12-05 05:06:31 +01:00
Ajay Ramachandran
4964c72e71
Serve database csv from node
2021-12-04 22:55:36 -05:00
Ajay Ramachandran
e3042f7623
Add limit to bulk hash prefix
2021-12-04 22:34:50 -05:00
Ajay Ramachandran
edd11cc99c
Merge pull request #409 from mchangrh/redisHashCache
...
getHash redis cache
2021-12-03 00:14:01 -05:00
Ajay Ramachandran
8d533d0e94
Move default hash times to var
2021-12-03 00:12:08 -05:00
Ajay Ramachandran
8f3a5a0e4d
Merge pull request #416 from mchangrh/npm-update
...
bump dependencies, npm audit fix
2021-12-03 00:02:16 -05:00
Ajay Ramachandran
bd3e38fe40
Remove extra log
2021-12-02 23:48:10 -05:00
Ajay Ramachandran
6f05b5b92d
Merge pull request #412 from mchangrh/requiredSegment/shortHash
...
get requiredSegments by partial hash
2021-12-02 23:44:29 -05:00
Ajay Ramachandran
9bc65d566a
Merge pull request #417 from ajayyy/bulk-ratings
...
Add bulk rating fetching
2021-12-02 23:44:09 -05:00
Ajay Ramachandran
0cd25f0498
Fix issues with query caching for ratings
2021-12-02 23:42:39 -05:00
Ajay Ramachandran
48ac8d1136
Add test for get bulk rating
2021-12-02 23:12:48 -05:00
Ajay Ramachandran
dd2db4bbbf
Fix wrong eslint disable
2021-12-02 01:25:26 -05:00
Ajay Ramachandran
9e86f463d8
Support regex via sqlite
2021-12-02 01:23:59 -05:00
Ajay Ramachandran
733bd338e7
Add bulk rating fetching
2021-12-02 01:10:09 -05:00
Michael C
7df9f0b054
npm audit fix
2021-12-01 16:45:11 -05:00
Michael C
91ba6948d8
engine limited by express-promise-router, dev engine is LTS 16
2021-12-01 16:26:56 -05:00
Michael C
af4b2e4624
minor changes
2021-12-01 15:43:43 -05:00
Michael C
8fe0a45435
add partial lookup
2021-11-30 18:58:37 -05:00
Ajay Ramachandran
d55a860114
Merge pull request #406 from mchangrh/searchSegments/userID
...
add userID to searchSegments
2021-11-28 11:20:14 -05:00
Ajay Ramachandran
ad23ec040b
Merge pull request #405 from mchangrh/validateVideoID
...
add check for zero length videoID
2021-11-28 11:20:04 -05:00
Michael C
5a69de730c
rename hashKey to be more generic
2021-11-27 02:47:18 -05:00
Michael C
6baa00b76d
remove newline-before-return eslint
2021-11-27 02:42:59 -05:00
Michael C
a5a90e3c84
add getHashCache where applicable=
2021-11-27 02:41:34 -05:00
Ajay Ramachandran
7e1550f3c0
Update nginx config
2021-11-21 17:40:39 +01:00
Michael C
4584dbc047
add userID to searchSegments
2021-11-20 01:15:33 -05:00
Michael C
0a869dbbd7
strict check for videoID length
2021-11-19 02:27:42 -05:00
Ajay Ramachandran
20e9a3e8b1
Fix index using non existent column
2021-11-16 22:53:59 -05:00
Ajay Ramachandran
0478491f93
Merge pull request #390 from whizzzkid/fix/general-fixes
...
General Improvements
2021-11-16 19:22:52 -05:00
Ajay Ramachandran
4797a7d938
Merge branch 'master' into fix/general-fixes
2021-11-16 19:18:16 -05:00
Ajay Ramachandran
726a081df1
Merge pull request #403 from mchangrh/ratingFix
...
Fixed issues with ratings
2021-11-16 19:17:48 -05:00
Michael C
ad7574308f
clear rating cache
2021-11-15 01:50:09 -05:00
Michael C
03c95ca158
rename clearSegmentCache
2021-11-15 01:48:14 -05:00
Michael C
b9ebd00365
fixed tests, typos and optimized code for ratings
2021-11-15 01:17:36 -05:00
Ajay Ramachandran
bc6db0d109
Add endpoints for rating endpoint (dislikes)
...
https://github.com/ajayyy/SponsorBlock/issues/1039
2021-11-14 23:09:12 -05:00
Ajay Ramachandran
7590047c6d
Merge pull request #401 from ajayyy/chapters
...
Initial Chapters
2021-11-14 16:41:51 -05:00
Ajay Ramachandran
e85a0d4f28
Fix lock reason test with filler
2021-11-08 19:28:27 -05:00
Ajay Ramachandran
16c5819f5c
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into chapters
2021-11-08 19:26:39 -05:00
Ajay Ramachandran
db48953e39
Allow mute intro, outro, preview and add filler
2021-11-08 19:24:58 -05:00
Ajay Ramachandran
1106048b37
Allow mute intro, outro, preview and add filler
2021-11-08 19:22:17 -05:00
Ajay Ramachandran
a2698fb70d
Set all videoInfo values in chapters name test
2021-11-06 23:18:28 -04:00
Ajay Ramachandran
6919b5433b
Add suggested chapter names
2021-11-06 22:43:03 -04:00
Ajay Ramachandran
c371d35e82
update db schema
2021-11-06 19:56:01 -04:00
Ajay Ramachandran
0b7904f891
Add test case for small part that is the same action type
2021-11-06 17:40:26 -04:00
Ajay Ramachandran
c0072d5c72
Add another segment to overlap test case and fix for that case
2021-11-06 17:28:58 -04:00
Ajay Ramachandran
2733cd6606
Switch to new method that splits up existing groups instead of making new ones
...
Kind of #107
2021-11-06 16:11:02 -04:00
Ajay Ramachandran
7eef74a7dc
Add new % overlap function used for chapters
...
Kind of #107
2021-11-06 16:09:55 -04:00
Ajay Ramachandran
32150e4a1d
Add submitting description for chapters
2021-11-06 00:54:28 -04:00
Ajay Ramachandran
0c16448065
Merge pull request #397 from mchangrh/base-sqlite-ci
...
add generate-sqlite-base
2021-10-30 21:50:55 -04:00
Ajay Ramachandran
991d384f11
Merge pull request #398 from mchangrh/userID-skipSegments
...
add userID to getSkipSegments
2021-10-30 21:50:32 -04:00
Ajay Ramachandran
aa40ac7777
Merge pull request #400 from mchangrh/shadowban-test
...
add tests for shadowban
2021-10-30 20:04:02 -04:00
Michael C
88a368d0b9
add tests for shadowban
2021-10-30 17:58:17 -04:00
Nishant Arora
246ec7c3c3
Merge branch 'master' into fix/general-fixes
2021-10-27 23:51:45 -06:00
Nishant Arora
70d0387356
routes/deleteLockCategories: fixed
2021-10-27 23:50:20 -06:00
Ajay Ramachandran
19f7bbcde5
Add info about using sb mirror
...
Closes #373
2021-10-27 21:25:46 -04:00
Ajay Ramachandran
dd8b2f8809
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-10-27 19:36:36 -04:00
Ajay Ramachandran
6cf268330f
Remove old auto-ban on low trust
2021-10-27 19:36:33 -04:00
Michael C
9d761815d8
add userID to getSkipSegments
2021-10-27 17:03:16 -04:00
Michael C
6adfb84c0f
add generate-sqlite-base
2021-10-27 16:04:52 -04:00
Ajay Ramachandran
d0b1608181
Merge pull request #396 from mchangrh/fix-rsync
...
fix rsync config name
2021-10-27 09:04:31 -04:00
Michael C
dc7831c31f
fix rsync file name
2021-10-26 22:38:46 -04:00
Ajay Ramachandran
06af78c770
Merge pull request #394 from mchangrh/rsync-container
...
add rsyncd config
2021-10-26 22:16:06 -04:00
Ajay Ramachandran
58de2a786d
Fix testing server getting full path
2021-10-26 22:05:51 -04:00
Ajay Ramachandran
452d8a47f5
Switch testing server ip
2021-10-26 22:02:50 -04:00
Ajay Ramachandran
6db89778a9
enable testing server
2021-10-26 22:00:32 -04:00
Michael C
65fa663a1a
add rsyncd config
2021-10-26 21:55:32 -04:00
Ajay Ramachandran
59b1d02075
Add new vps
2021-10-26 20:54:25 -04:00
Ajay Ramachandran
cfae20282f
Merge pull request #377 from mchangrh/nginx-gzip
...
Fix NGINX mime type
2021-10-26 20:52:29 -04:00
Ajay Ramachandran
d06762418e
Merge pull request #387 from mchangrh/no-console
...
[ESLint] noconsole
2021-10-26 20:39:43 -04:00
Michael C
a9adfbc06d
disable eslint for error dump
2021-10-26 20:37:49 -04:00
Michael C
5743ed5434
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into no-console
2021-10-26 20:36:53 -04:00
Ajay Ramachandran
eecb238e18
Merge pull request #389 from mchangrh/replication-mirror
...
changes for mirror mode
2021-10-26 20:34:22 -04:00
Ajay Ramachandran
3877cd580c
Merge pull request #391 from HaiDang666/388_lock-user-with-reason
...
add username in get lock reason route
2021-10-26 20:26:44 -04:00
Ajay Ramachandran
393027c1ea
Merge pull request #386 from mchangrh/more-stats
...
add loadAvg to status
2021-10-26 20:24:06 -04:00
Michael C
6be034362b
don't queue dump if generate=false
2021-10-24 16:19:40 -04:00
Felix Hoang
103280ca59
remove unuse variable
2021-10-24 16:27:12 +07:00
Felix Hoang
b715b30ae6
add username in get lock reason route
2021-10-24 16:04:18 +07:00
Michael C
6bcc4cdfa3
sturcture for init and exit
2021-10-22 11:37:32 -04:00
Michael C
a3ea732870
delete config.json.backup - thankfully no private information
2021-10-22 03:54:17 -04:00
Michael C
fd6ae8fc0e
bargaining with postgres CI
...
- fix tests with lockCategories
- new unique naming scheme for video
- super janky somehow working method for comparing arrays out of order
2021-10-22 03:53:27 -04:00
Nishant Arora
0a54b18d64
Making newline as warning
2021-10-22 00:32:43 -06:00
Nishant Arora
05072f5d22
routes/deleteLockCategories: Run Queries in Parallel
2021-10-22 00:17:43 -06:00
Nishant Arora
28dc0fb512
routes/addUserAsVIP: fixed
2021-10-21 23:59:08 -06:00
Nishant Arora
2376d88481
routes/addUnlistedVideo: Improved
2021-10-21 23:49:42 -06:00
Nishant Arora
db8543a0b4
utils/getService: Improve Functionality to run on O(n)
2021-10-21 23:49:36 -06:00
Nishant Arora
b785658db1
Fixing eslint
2021-10-21 23:48:35 -06:00
Michael C
2d10dd6c9c
add extension to db.sql
2021-10-22 01:05:08 -04:00
Michael C
c6428bf9e4
import without fs
2021-10-21 23:15:36 -04:00
Michael C
0163a52e55
if in mirror mode, import CSV files
2021-10-21 03:49:25 -04:00
Michael C
815df94db4
add eslint rule for no-console
2021-10-20 01:01:58 -04:00
Michael C
109578a3ed
remove extra console.log lines
2021-10-20 00:59:08 -04:00
Michael C
ac15686b47
add loadAvg to status
2021-10-20 00:16:27 -04:00
Ajay Ramachandran
93536976d0
Merge pull request #385 from mchangrh/384-fix
...
Implement #384
2021-10-19 23:30:09 -04:00
Michael C
6caab2ef06
don't destructure and re-structure
2021-10-19 23:23:58 -04:00
Michael C
a316403bb5
quote for postgres
2021-10-19 23:22:13 -04:00
Michael C
5cf7a61de1
restructure for postgres
2021-10-19 23:14:52 -04:00
Michael C
d0deb6fe27
finish tests and remove extra console.logs
2021-10-19 23:06:47 -04:00
Michael C
4ee35d3cd4
implementation
2021-10-19 22:05:08 -04:00
Ajay Ramachandran
ec16828497
Merge pull request #383 from mchangrh/fix-fragment
...
fix fragment in links
2021-10-19 21:33:40 -04:00
Michael C
83b8127eb2
fix fragment in links
2021-10-19 03:52:24 -04:00
Ajay Ramachandran
a42e933240
Send webhook link with required segment
2021-10-18 20:02:17 -04:00
Ajay Ramachandran
201f6cb900
update lru diskcache
2021-10-17 16:32:07 -04:00
Ajay Ramachandran
c91d04760a
Add documentation for video info db schema
2021-10-17 14:57:55 -04:00
Ajay Ramachandran
91c52c15fd
Add indexes for videoInfo
2021-10-17 14:55:55 -04:00
Ajay Ramachandran
c6944bd7cf
Fix types on videoInfo table
2021-10-17 14:54:35 -04:00
Ajay Ramachandran
450f4a2d44
Store video info from submissions
2021-10-17 14:42:48 -04:00
Ajay Ramachandran
bda2ff4d23
Merge pull request #380 from ajayyy/skipSegments-values
...
Return locked and votes in skipSegment calls
2021-10-15 00:17:10 -04:00
Ajay Ramachandran
f6d6e93847
Return locked and votes in skipSegment calls
...
#379
2021-10-15 00:14:59 -04:00
Ajay Ramachandran
9cdccbe7f0
Fix user counter not working
2021-10-12 21:19:37 -04:00
Michael C
2ad52e70bb
enforce gzip for downloads
2021-10-05 23:31:05 -04:00
Ajay Ramachandran
656e35c080
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-10-03 21:16:10 +02:00
Ajay Ramachandran
895df94493
Add redirect to shorturl for wiki
2021-10-03 21:16:05 +02:00
Ajay Ramachandran
8d07ba7f23
Merge pull request #376 from FlorianZahn/votingAbuseFixes
...
Voting abuse fixes
2021-10-03 13:21:11 -04:00
Ajay Ramachandran
7e23bc9eeb
Check for service in category vote
2021-10-03 13:12:14 -04:00
Ajay Ramachandran
658e391f50
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into pr/FlorianZahn/376
2021-10-03 13:11:25 -04:00
FlorianZahn
69e321c405
Improved formatting
2021-10-03 19:03:49 +02:00
Ajay Ramachandran
b5d9c02d9e
Merge pull request #374 from HaiDang666/355_check-service
...
add service to table only have videoID
2021-10-03 12:57:28 -04:00
Ajay Ramachandran
2388dea859
Remove extra log
2021-10-03 12:55:49 -04:00
FlorianZahn
178c4d9792
Remove comment
...
Co-authored-by: Ajay Ramachandran <dev@ajay.app >
2021-10-03 18:53:34 +02:00
FlorianZahn
0aa286442f
Vip locked segment voting, handle client side
...
Co-authored-by: Ajay Ramachandran <dev@ajay.app >
2021-10-03 18:53:06 +02:00
Ajay Ramachandran
543fb535df
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-10-03 08:56:42 +02:00
Ajay Ramachandran
9cb0b356ed
Kill dead nginx processes to avoid memory leak #372
2021-10-03 08:56:02 +02:00
FlorianZahn
7135aa3369
removing console.log() commands
2021-10-02 05:11:26 +02:00
FlorianZahn
aacd297b3b
Fixed bugs where normal users could cirumvent vip locks by changing categories
2021-10-02 05:04:18 +02:00
FlorianZahn
bb2a007ed1
first changes and timeout on 2nd test
2021-10-02 04:39:54 +02:00
Haidang666
356974b478
add service to table only have videoID
2021-09-30 13:56:55 +07:00
Ajay Ramachandran
99d72b92e4
Clear cache after purging segments
2021-09-29 16:31:44 -04:00
Ajay Ramachandran
eaaf106d7c
Another try at #372
2021-09-29 12:22:40 -04:00
Ajay Ramachandran
86e26025f4
Safe navigation
2021-09-28 09:56:32 -04:00
Ajay Ramachandran
4470f0b60b
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-09-28 09:50:26 -04:00
Ajay Ramachandran
3873aa61bc
Release client even if an error occurs
...
#372
2021-09-28 09:50:24 -04:00
Ajay Ramachandran
3335d54153
Log stack for unhandled errors
2021-09-28 09:48:24 -04:00
Ajay Ramachandran
ad3f2088ef
Merge pull request #370 from mchangrh/switch-axios
...
replace node-fetch with axios in src
2021-09-27 20:24:34 -04:00
Ajay Ramachandran
39baa4871a
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-09-27 20:17:24 -04:00
Ajay Ramachandran
9d2c5ed74e
Call connect manually to catch errors
...
Fix #372
2021-09-27 20:17:02 -04:00
Michael C
6d76bea5c5
remove node-fetch, types and @types/request
2021-09-26 18:15:24 -04:00
Michael C
82c5c70eb7
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into switch-axios
2021-09-26 18:13:27 -04:00
Ajay Ramachandran
bb448d6d55
Merge pull request #369 from mchangrh/reWriteAxios
...
rewrite tests with axios
2021-09-26 18:11:17 -04:00
Michael C
44511acd27
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into reWriteAxios
2021-09-26 18:08:30 -04:00
Michael C
5aa48cdbdf
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into switch-axios
2021-09-26 18:04:22 -04:00
Ajay Ramachandran
5f19d3ee09
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-09-26 15:02:39 -04:00
Ajay Ramachandran
598e4e2b79
Always restart db
2021-09-26 15:02:37 -04:00
Ajay Ramachandran
161091513d
Merge pull request #365 from mchangrh/updateDependencies
...
update dependencies, add shims for node-fetch v3
2021-09-26 14:41:56 -04:00
Ajay Ramachandran
9619e95283
Don't use cache when no successful submissions exist
2021-09-26 11:11:08 -04:00
Michael C
6433f50edf
replace node-fetch with axios in src
2021-09-23 01:21:10 -04:00
Michael C
28d637f620
remove extra async and extra utils
2021-09-22 23:34:46 -04:00
Michael C
4e50f0ab4b
remaining tests
2021-09-22 23:18:31 -04:00
Michael C
a028eaa41a
object-curly-spacing
2021-09-22 18:52:35 -04:00
Michael C
5dcc90b31a
fix CI errors
2021-09-22 18:46:13 -04:00
Michael C
a5c88693b8
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into reWriteAxios
2021-09-22 18:44:23 -04:00
Michael C
9b6808273b
json as any
2021-09-22 17:57:12 -04:00
Michael C
c779c2c19e
everything to postClearCache
2021-09-22 17:50:06 -04:00
Ajay Ramachandran
a23387c877
raise redis memory
2021-09-21 23:19:20 -04:00
Ajay Ramachandran
0f0d43cc17
Merge pull request #362 from mchangrh/getLockReason
...
getLockReason
2021-09-21 19:06:36 -04:00
Michael C
94e1e8c377
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into reWriteTests
2021-09-21 02:03:05 -04:00
Michael C
5758f6512d
move utils to seperate files and folder, update imports
2021-09-21 02:02:17 -04:00
Michael C
22c4468180
bump eslint, fix lint warning, made request dev
2021-09-21 00:47:35 -04:00
Michael C
1dd534cce9
update dependencies, add shims for node-fetch v3
2021-09-20 01:43:19 -04:00
Michael C
ce0073e7b0
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getLockReason
2021-09-18 23:26:49 -04:00
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
d4d9f2d4d7
remove unnecessary async await
2021-09-17 00:03:42 -04:00
Michael C
802dd50163
naming
2021-09-17 00:01:29 -04:00
Michael C
9e9fcd47c0
finished other tests
2021-09-16 23:59:19 -04:00
Michael C
e7d55d1e1b
everything after postClearCache
2021-09-16 23:05:16 -04:00
Michael C
7cef510b29
quoted
2021-09-16 20:50:59 -04:00
Michael C
870ade6fa9
postSkipSegments
2021-09-16 20:44:12 -04:00
Ajay Ramachandran
803c3f2a29
Merge pull request #357 from mchangrh/getUserStats
...
add getUserStats
2021-09-15 20:45:52 -04:00
Ajay Ramachandran
4d9e595470
Rename user stats parameters
2021-09-15 20:44:20 -04:00
Ajay Ramachandran
bcdbc5fd60
Merge pull request #360 from HaiDang666/getService_helper
...
Add getService helper function
2021-09-15 20:30:48 -04:00
Michael C
61d7103f82
create getLockReason
2021-09-13 10:57:46 -04:00
Haidang666
93c69248d9
Add getService helper function
2021-09-13 14:49:17 +07:00
Michael C
18c1735087
acceptance
2021-09-07 00:48:01 -04:00
Michael C
76fe3f1165
stage of grief - depression
2021-09-07 00:44:39 -04:00
Michael C
6b7fdb8d9e
please accept my double quotes
2021-09-07 00:38:15 -04:00
Michael C
46270cfe84
partialDeepEquals for varying orders
2021-09-07 00:32:32 -04:00
Michael C
2c2e9a2900
all columns in quotes
2021-09-07 00:18:15 -04:00
Michael C
3d30eea1cb
add categoryStats and typeStats
2021-09-07 00:13:52 -04:00
Ajay Ramachandran
1e05c04a39
Allow mute and skip segments with same times
2021-09-05 22:40:40 -04:00
Michael C
6e55f9d979
everything up to purgeAllSegments
2021-09-04 19:23:43 -04:00
Michael C
4a394dd6dd
Merge branch 'getUserStats' of github.com:mchangrh/SponsorBlockServer into getUserStats
2021-09-04 17:07:38 -04:00
Michael C
9b05ee96af
add getUserStats
2021-09-04 17:06:49 -04:00
Michael C
97214bef1b
add getUserStats
2021-09-04 17:05:23 -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
Michael C
c3f7b29d44
throw error 400 when start or endtime has colon
2021-08-24 19:12:58 -04:00
Ajay Ramachandran
954ac1eb07
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-08-24 21:11:42 +02:00
Ajay Ramachandran
b5c6b55380
Update nginx config
2021-08-24 21:10:57 +02:00
Ajay Ramachandran
28982dc84b
Fix highlight category in top users
2021-08-22 00:44:24 -04:00
Ajay Ramachandran
5d77b7b03e
Fix typo in top users query
2021-08-20 15:18:20 -04:00
Ajay Ramachandran
fa866b0677
Add highlight category to top users
2021-08-20 15:00:22 -04:00
Ajay Ramachandran
f1f5bdb2be
Fix test
2021-08-17 22:08:51 -04:00
Ajay Ramachandran
765e01cb00
Add working to gitignore
2021-08-17 22:01:23 -04:00
Ajay Ramachandran
5965879ed1
Rename highlight category to poi_highlight
2021-08-17 22:01:12 -04:00
Ajay Ramachandran
987d91f293
Hide submissions that are at -1 votes
2021-08-17 16:46:45 -04:00
Ajay Ramachandran
c869e60b04
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-08-10 23:13:59 -04:00
Ajay Ramachandran
d653f00a2d
Print when partial deep equals fails
2021-08-10 23:13:56 -04:00
Ajay Ramachandran
1cbd162a22
Support commas in timestamps
2021-08-10 23:12:20 -04:00
Ajay Ramachandran
0ec87b967d
Merge pull request #339 from ajayyy/fix-ci
...
Fix ci
2021-08-10 10:59:45 -04:00
Ajay Ramachandran
0fded0022c
Fix userCount using lower case
2021-08-10 10:58:20 -04:00
Ajay Ramachandran
fa901add35
print error in tests
2021-08-10 10:52:02 -04:00
Ajay Ramachandran
f24c962785
Catch postgres exceptions
...
Fix #338
2021-08-10 09:50:32 -04:00
Ajay Ramachandran
f3e5b360c4
Check against number for username lock
2021-08-10 00:37:43 -04:00
Ajay Ramachandran
e417dade68
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-08-09 10:03:43 -04:00
Ajay Ramachandran
54f8f67ed5
Don't allow username change for banned users
2021-08-09 10:03:40 -04:00
Ajay Ramachandran
23b9375570
Merge pull request #337 from mchangrh/getUserInfo-update
...
getUserInfo update
2021-08-06 01:20:39 -04:00
Michael C
58551ba37f
add maxRewardTime
2021-08-06 00:51:22 -04:00
Michael C
5ad7c6a3ba
catch all error in endpoint
2021-08-06 00:51:22 -04:00
Ajay Ramachandran
71c01c0f3b
add option to get ban status from user info
2021-08-05 20:11:05 -04:00
Ajay Ramachandran
326f9e6e93
Fix sqlite
2021-08-05 20:03:37 -04:00
Ajay Ramachandran
9f0f9054d1
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-08-05 16:50:41 -04:00
Ajay Ramachandran
00858b6633
Remove duplicate usernames and make unique
...
Closes #336
2021-08-05 16:50:39 -04:00
Ajay Ramachandran
0463513d5d
Merge pull request #335 from mchangrh/mchangrh/deepPartialEquals
...
use deepPartialEquals instead of multiple assert.strictEquals
2021-08-03 21:06:55 -04:00
Ajay Ramachandran
56a36f34a9
Merge pull request #334 from HaiDang666/update-query
...
Add Limit 1 when check user as vip
2021-08-03 21:06:51 -04:00
Ajay Ramachandran
73dfe2ef11
Remove casting
2021-08-03 21:05:07 -04:00
Ajay Ramachandran
94b82b6865
Fix warnings
2021-08-03 21:02:45 -04:00
Ajay Ramachandran
1678dcac82
Get all warnings
2021-08-03 13:24:23 -04:00
Ajay Ramachandran
497a509d60
Send longest warning reason
2021-08-03 13:18:38 -04:00
Ajay Ramachandran
bddadc6a9e
Change default max reward time
2021-08-03 12:48:48 -04:00
Michael C
ed0d832e08
use partialDeepEquals for tests
2021-08-03 00:19:37 -04:00
Haidang666
38a09b164d
Add Limit 1 when check user as vip
2021-08-03 09:28:28 +07:00
Michael C
b39c06a9ef
add tests, new partialDeepEquals
2021-08-02 21:59:06 -04:00
Ajay Ramachandran
09626ee6f6
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-08-02 16:25:07 -04:00
Ajay Ramachandran
3a8076fc3c
Indent switch case
2021-08-02 16:25:04 -04:00
Ajay Ramachandran
31a7838851
Merge pull request #331 from mchangrh/segmentInfo-userAgent
...
include userAgent in segmentInfo
2021-08-01 16:00:38 -04:00
Michael C
7dff254604
add userAgent to tests
2021-08-01 15:28:17 -04:00
Michael C
d4078f0f91
return all from segmentInfo
2021-08-01 15:28:17 -04:00
Ajay Ramachandran
90152240c7
Merge pull request #328 from HaiDang666/refactor
...
Use assert in test
2021-08-01 12:41:15 -04:00
Haidang666
85e78d2490
Use assert in test
2021-08-01 14:59:25 +07:00
Ajay Ramachandran
3368615a77
Add test for body user agent
2021-08-01 02:57:02 -04:00
Ajay Ramachandran
ee8d20a43d
Fix full user agent being saved
2021-08-01 02:46:21 -04:00
Ajay Ramachandran
8f0f01e6b2
Parse user agent header
2021-07-31 21:49:10 -04:00
Ajay Ramachandran
bdf0953f35
Save entire user agent
2021-07-31 21:03:47 -04:00
Ajay Ramachandran
e056c30f05
Merge pull request #327 from HaiDang666/324_user-agent
...
Store user-agent in postSkipSegment
2021-07-31 20:56:00 -04:00
Ajay Ramachandran
b07979cbc7
Merge pull request #326 from mchangrh/reenable-warning
...
re-enable warning if still within issue time
2021-07-31 20:55:00 -04:00
Haidang666
01cbf67bcb
Fix test on new warning reason format
2021-07-30 13:50:46 +07:00
Haidang666
ce193b60f7
Store user-agent in postSkipSegment
2021-07-30 13:47:21 +07:00
Ajay Ramachandran
2057b0cfa6
Change default warning mininum
2021-07-29 23:53:13 -04:00
Ajay Ramachandran
366de4955b
Send warning reason with votes and use quotes
2021-07-29 23:53:02 -04:00
Michael C
32056ab2f1
re-enable warning if still within issue time
2021-07-28 02:52:00 -04:00
Ajay Ramachandran
d4e45cc3b0
Fix newlines in lock categories error message
2021-07-27 13:03:31 -04:00
Ajay Ramachandran
48aa6d6e05
Fixed odd formatting on lock categories error
2021-07-27 12:59:35 -04:00
Ajay Ramachandran
5ca3cb18e4
Merge pull request #323 from HaiDang666/318_display-lock-reason
...
Return reason in locked categories when submission fail
2021-07-27 12:56:20 -04:00
Haidang666
c701998a35
return reason in locked categories when submission fail
2021-07-27 14:03:51 +07:00
Ajay Ramachandran
4453705938
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-07-27 00:36:09 -04:00
Ajay Ramachandran
144f3fa035
Don't strictly check for locked videos
2021-07-27 00:36:07 -04:00
Ajay Ramachandran
fd507d6657
Merge pull request #320 from HaiDang666/refactor-postSkipSegments
...
Split code in postSkipSegment
2021-07-26 23:49:08 -04:00
Ajay Ramachandran
9aa0ff6de6
Merge pull request #319 from HaiDang666/266_final
...
Update: most upvoted segments on locked videos as locked submissions
2021-07-26 23:48:58 -04:00
Ajay Ramachandran
37ea8adb73
assert fixed value
2021-07-26 23:46:26 -04:00
Felix
0d6992b80b
Merge branch 'master' into refactor-postSkipSegments
2021-07-27 10:40:38 +07:00
Ajay Ramachandran
7b15957bb8
fix tests
2021-07-25 14:34:55 -04:00
Ajay Ramachandran
b1c5c38bdb
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-07-24 16:04:42 -04:00
Ajay Ramachandran
e6b2243496
Add link to discord and matrix
2021-07-24 16:04:40 -04:00
Haidang666
0eb298a943
Update query and test
2021-07-24 15:09:30 +07:00
Haidang666
22debb4374
Split code in postSkipSegment
2021-07-23 13:54:44 +07:00
Ajay Ramachandran
ef71405143
Merge pull request #321 from mchangrh/fixci
...
fix tests and linting
2021-07-23 00:13:02 -04:00
Ajay Ramachandran
0990a9b87d
Add semicolon
2021-07-22 20:00:42 -04:00
Michael C
87727ef360
fix tests and linting
2021-07-22 17:50:39 -04:00
Ajay Ramachandran
dbc8558ec8
Log submissions for warned users
2021-07-22 11:12:22 -04:00
Ajay Ramachandran
143cdf529d
Include default message on error from warning.
...
Also show userID
2021-07-22 11:02:38 -04:00
Ajay Ramachandran
919c47c993
Fix quote error
2021-07-22 00:08:30 -04:00
Haidang666
2773c5f500
Update: most upvoted segments on locked videos as locked submissions
2021-07-21 16:16:58 +07:00
Ajay Ramachandran
c070e5f40d
Fix falsey values getting through tests
2021-07-20 17:21:22 -04:00
Ajay Ramachandran
31103faf92
Improve shadow ban check
2021-07-20 17:15:15 -04:00
Ajay Ramachandran
05ec937b06
Fix youtube api cache key
2021-07-20 13:54:30 -04:00
Ajay Ramachandran
3c5a27d9f5
fix incorrect sql
2021-07-20 13:42:31 -04:00
Ajay Ramachandran
1ad805fda3
reset video duration when vip upvotes hidden segment
2021-07-20 13:40:22 -04:00
Ajay Ramachandran
6171ba7c7a
Print times of submissions on locked categories
2021-07-20 12:41:27 -04:00
Ajay Ramachandran
c60b82d40a
Only treat video as changed duration if both submitted and api agree
2021-07-20 12:38:45 -04:00
Ajay Ramachandran
13a04a0442
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-07-19 16:14:17 -04:00
Ajay Ramachandran
db3701d76a
Don't fail for invalid userID
2021-07-19 16:13:14 -04:00
Ajay Ramachandran
a02d14e425
Merge pull request #317 from mchangrh/stricter-eslint
...
Stricter ESLint rules & linting fixes
2021-07-18 14:39:17 -04:00
Michael C
f774df972d
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into stricter-eslint
2021-07-18 14:30:27 -04:00
Ajay Ramachandran
04ed1112a4
Merge pull request #314 from mchangrh/getUserInfo/param
...
add warningReason and specify returned types
2021-07-18 11:52:13 -04:00
Michael C
2075ed46e1
added null warningReason
2021-07-18 02:39:37 -04:00
Michael C
fdb88dd401
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getUserInfo/param
2021-07-18 02:38:12 -04:00
Michael C
205958464a
new stringDeepEquals
2021-07-18 02:33:57 -04:00
Michael C
a7aaffcfe5
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into stricter-eslint
2021-07-18 02:27:48 -04:00
Ajay Ramachandran
0222b1fccd
Update package lock
2021-07-16 16:23:08 -04:00
Ajay Ramachandran
b98d6fd8ca
Ignore votes from short ids
2021-07-16 16:22:55 -04:00
Ajay Ramachandran
3f6baebd71
Add friendlier message for short userID
2021-07-16 16:19:00 -04:00
Ajay Ramachandran
ce2aa67832
Disable info logging on production
2021-07-15 16:06:04 -04:00
Ajay Ramachandran
83a77dfc74
Use strict equals
2021-07-15 14:03:30 -04:00
Ajay Ramachandran
27f406f757
Fix username existence check
2021-07-15 14:02:08 -04:00
Ajay Ramachandran
72e17b06fc
Don't break if cron schedule is missing
2021-07-15 13:55:02 -04:00
Ajay Ramachandran
49e1e38f05
Enable info logs in production
2021-07-15 13:15:52 -04:00
Ajay Ramachandran
d64a61738f
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-07-15 12:32:02 -04:00
Ajay Ramachandran
d7b8c32c10
Remove lock when undoing vote
2021-07-15 12:32:00 -04:00
Michael C
42423a86a6
forgot to return reason
2021-07-14 14:30:36 -04:00
Michael C
8ee51a1cb0
testing CI
2021-07-14 14:11:34 -04:00
Michael C
5f2bc37e96
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into stricter-eslint
2021-07-13 15:55:03 -04:00
Michael C
1ba1450e9c
string literal fixes & npm run postgres:docker
2021-07-13 15:45:24 -04:00
Ajay Ramachandran
afabf3650b
Merge pull request #307 from mchangrh/getLockCategories/reason
...
add reason to getLockCategories
2021-07-13 14:48:22 -04:00
Michael C
59bad90480
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getLockCategories/reason
2021-07-13 13:51:51 -04:00
Ajay Ramachandran
a342ad5bda
Merge pull request #316 from mchangrh/400-on-noparam
...
Return 400 if no parameters specified
2021-07-12 14:17:20 -04:00
Ajay Ramachandran
3d0b9edb9c
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-07-12 11:05:14 -04:00
Ajay Ramachandran
a23ec160c0
Make reputation take into account more recent segments
2021-07-12 11:05:12 -04:00
Michael C
b5a29675d6
fix more non-format string-concat
2021-07-12 02:48:49 -04:00
Michael C
8b3ffe5d0d
fix eslint for tests
2021-07-12 02:43:46 -04:00
Michael C
c0b1d201ad
fix non-format eslint in src/
2021-07-12 02:12:22 -04:00
Michael C
a8f7080bf2
fix typo in tests
2021-07-12 00:32:51 -04:00
Ajay Ramachandran
9445a06871
Merge pull request #312 from HaiDang666/221_archive-down-votes
...
archive down votes
2021-07-11 23:21:14 -04:00
Michael C
d9a66a5894
quote & check for db version
2021-07-12 08:59:12 +07:00
Haidang666
bbb1db014c
Add archive downvote function unit test
2021-07-12 08:59:12 +07:00
Haidang666
6b5156468c
Add archive downvote segment cron
2021-07-12 08:59:12 +07:00
Michael M. Chang
0b7ba793b4
Merge branch 'master' into 400-on-noparam
2021-07-11 14:27:32 -04:00
Ajay Ramachandran
ef86fceedd
Merge pull request #311 from mchangrh/dependency-bump
...
Update dependencies
2021-07-11 11:52:35 -04:00
Ajay Ramachandran
db6a205f43
Merge pull request #310 from mchangrh/testAssert
...
Test with assert
2021-07-11 11:51:45 -04:00
Michael C
e8d0da3ce3
add 400 conditions
2021-07-10 16:30:30 -04:00
Michael C
7e977ad811
add warningReason and specify returned types
2021-07-09 12:07:36 -04:00
Michael C
81cae514a0
Update dependencies
2021-07-09 00:31:42 -04:00
Michael C
2d38ef921e
use deepStringEqual instead of deepAssert
2021-07-08 00:59:15 -04:00
Michael C
9f05595cd6
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into testAssert
2021-07-08 00:51:56 -04:00
Michael C
178ed1e5af
replace if tests with assert
2021-07-08 00:39:57 -04:00
Ajay Ramachandran
2105cdf10b
Fix segment id test
2021-07-07 18:24:16 -04:00
Ajay Ramachandran
a471e057f5
Remove category from segment id
2021-07-07 18:21:25 -04:00
Ajay Ramachandran
ed5de984f2
Add action type when finding UUID in webhook
2021-07-07 18:16:06 -04:00
Ajay Ramachandran
301f5e7113
Include action type in UUID
2021-07-07 18:12:52 -04:00
Michael C
596dbf4ac8
404 tests
2021-07-07 17:39:16 -04:00
Michael C
9088d9fb9e
additional tests
2021-07-07 17:37:40 -04:00
Michael C
5e58efb07f
early 400 on skipSegments
2021-07-07 17:36:52 -04:00
Michael C
4a835d5306
fix typos
2021-07-07 16:44:05 -04:00
Michael C
7d62fcd8cc
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getLockCategories/reason
2021-07-07 16:31:37 -04:00
Ajay Ramachandran
42e7c23ee2
Merge pull request #304 from HaiDang666/234_lockCategories-reason
...
Lock categories reason
2021-07-07 13:05:31 -04:00
Michael C
50e7f4af8e
use .reduce from @HaiDang666
2021-07-07 00:51:08 -04:00
Michael C
3371c6a099
add reason to getLockCategories
2021-07-07 00:22:05 -04:00
Haidang666
feba2af9ed
Fix any type
2021-07-06 13:42:08 +07:00
Haidang666
6fcfeb2889
Fix deep equal fail
2021-07-06 13:36:56 +07:00
Haidang666
14f55c9ee5
Add lock category reason
2021-07-06 13:31:44 +07:00
Ajay Ramachandran
e94d1d4bae
Merge pull request #306 from mchangrh/remove-disable-eslint
...
no need for eslint-disable
2021-07-06 01:15:27 -04:00
Michael C
d48b6ea80e
no need for eslint-disable
2021-07-06 01:06:29 -04:00
Ajay Ramachandran
8ff8f9628a
Merge pull request #301 from mchangrh/eslint-gh-actions
...
Add ESLint workflow
2021-07-06 01:01:36 -04:00
Ajay Ramachandran
4272f9de99
Merge pull request #305 from ajayyy/userid-limit
...
Minimum userID size
2021-07-06 01:00:44 -04:00
Ajay Ramachandran
8e0e66d662
Merge pull request #298 from ajayyy/mute-skip
...
Silent skip type
2021-07-06 01:00:22 -04:00
Ajay Ramachandran
48349070b3
Combine action type segments when sorting overlapping
2021-07-06 00:57:57 -04:00
Ajay Ramachandran
2379899f02
Add a minimum size to userID when submitting
2021-07-06 00:49:07 -04:00
Ajay Ramachandran
35e1cf5733
Add test for submitting
2021-07-06 00:22:01 -04:00
Ajay Ramachandran
139dff97ef
Add tests for normal get segments
2021-07-06 00:19:16 -04:00
Ajay Ramachandran
be006403ed
Add tests for getting segment by hash
2021-07-06 00:11:04 -04:00
Ajay Ramachandran
f67a805c1f
Add issue assigning action
2021-07-05 20:50:22 -04:00
Ajay Ramachandran
35cfb01973
Merge pull request #303 from mchangrh/lockCategories/hashVideoID
...
add hashedVideoID to lockCategories
2021-07-05 20:33:22 -04:00
Michael C
fcea42bf38
fix typos, add upgrade_18
2021-07-05 20:05:54 -04:00
Michael C
ad3fe44418
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into eslint-gh-actions
2021-07-05 20:02:58 -04:00
Michael C
ede02eaa8c
add hashedVideoID to lockCategories
2021-07-05 20:01:10 -04:00
Ajay Ramachandran
ab27cbef07
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into mute-skip
2021-07-05 13:29:26 -04:00
Ajay Ramachandran
c2d4f2578c
Merge pull request #300 from mchangrh/appease-eslint
...
Appease eslint
2021-07-05 13:29:18 -04:00
Ajay Ramachandran
fa4c77b495
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into mute-skip
2021-07-05 13:27:25 -04:00
Ajay Ramachandran
e78c9703b8
Merge pull request #299 from mchangrh/getLockCategories
...
Get lock categories
2021-07-05 13:27:14 -04:00
Ajay Ramachandran
28e7ec0ef9
Change db upgrade to v19
2021-07-05 13:26:49 -04:00
Ajay Ramachandran
c3dcd58390
Rename type
2021-07-05 13:25:54 -04:00
Ajay Ramachandran
c77814235c
Add action type to getSkipSegments
2021-07-05 13:23:31 -04:00
Michael C
e8d5dbec3e
add eslint workflow
2021-07-05 03:18:58 -04:00
Michael C
d5204e9813
lint & fix tests
2021-07-05 03:14:05 -04:00
Michael C
d29c9613b9
type config & remove await from memoryCache
2021-07-05 02:59:01 -04:00
Michael C
351c89f235
add types from ajayyyy/lru-diskcache
...
- added existing types
- disbled no-unused-vars since there is no other way
2021-07-05 02:40:17 -04:00
Michael C
9a4cd431e8
rewrite getLockCategores to new spec
2021-07-05 02:33:32 -04:00
Michael C
cef6d5f365
fix eslint errors
2021-07-04 23:36:47 -04:00
Michael C
1c116eda3b
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getLockCategories
2021-07-04 23:33:21 -04:00
Michael C
a860e96d35
getLockCategoresByHash
2021-07-04 23:33:12 -04:00
Ajay Ramachandran
d20320e87e
Add post for actionType
...
untested
2021-07-04 18:35:15 -04:00
Ajay Ramachandran
43ae471038
Merge pull request #294 from mchangrh/fix-eslint
...
fix eslint-errors
2021-07-04 18:21:00 -04:00
Ajay Ramachandran
00ff3ecd38
Merge branch 'master' into fix-eslint
2021-07-04 18:19:52 -04:00
Ajay Ramachandran
b6d6cb4359
Merge pull request #293 from mchangrh/add-eslint
...
Add eslint
2021-07-04 18:18:50 -04:00
Ajay Ramachandran
5a09134d3f
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into pr/mchangrh/293
2021-07-04 18:17:18 -04:00
Michael C
719a0956ac
add getLockCategories
2021-07-04 17:03:28 -04:00
Michael C
3c197ec3d9
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fix-eslint
2021-07-04 15:23:00 -04:00
Ajay Ramachandran
0b27244c06
Fix audit issue
2021-07-04 14:21:28 -04:00
Ajay Ramachandran
0a60ca6468
Add repeating category for fetching by hash
...
Fixes #235
2021-07-04 14:20:54 -04:00
Ajay Ramachandran
990572ff31
Add parameter to fetch specific segments
2021-07-04 14:15:17 -04:00
Michael C
8df0c31d35
consistent return and sendStatus
2021-07-04 02:04:39 -04:00
Michael C
d89b26b77d
fix eslint-errors
2021-07-04 01:36:03 -04:00
Michael C
401be9d9fa
match sponsorblock warn rules
2021-07-03 22:51:26 -04:00
Michael C
28341fc1f3
Add eslint based off of SponsorBlock
2021-07-03 22:49:04 -04:00
Ajay Ramachandran
be277d0218
Merge pull request #284 from HaiDang666/283_show-lastest-warning
...
Show lastest warning when post segment
2021-07-03 22:46:26 -04:00
Ajay Ramachandran
a7315eaee0
Add case for default warning message
2021-07-03 22:45:13 -04:00
Ajay Ramachandran
a1bcd08658
Merge pull request #287 from mchangrh/unhide-vote
...
VIP upvote should unhide segment
2021-07-03 22:38:41 -04:00
Ajay Ramachandran
cf592554f1
Merge branch 'master' into unhide-vote
2021-07-03 22:37:23 -04:00
Ajay Ramachandran
cb950ac5d7
Merge pull request #288 from mchangrh/remove-altvote
...
remote vote types 10/11
2021-07-03 22:36:42 -04:00
Ajay Ramachandran
4f29e2c197
Merge pull request #289 from DetachHead/express-promise-router
...
express-promise-router
2021-07-03 22:36:30 -04:00
Ajay Ramachandran
c9e0acd055
Fix any issue
2021-07-03 17:50:20 -04:00
Ajay Ramachandran
63254159ca
Merge pull request #292 from DetachHead/tsc_test
...
run `tsc` in the `test` script
2021-07-03 17:47:48 -04:00
Ajay Ramachandran
c5fd4b41b6
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-07-03 17:27:00 -04:00
Ajay Ramachandran
f5cfd6bfb5
Add try catch in dump database
2021-07-03 17:26:59 -04:00
DetachHead
81c2e7b059
read test script value from package.json
2021-07-03 16:01:29 +10:00
DetachHead
eb481215e3
compile as part of the test script since ts-node doesn't typecheck everything
2021-07-03 15:46:51 +10:00
DetachHead
20335e3f27
use express-promise-router to prevent requests timing out on unhandled promise rejections
2021-07-03 14:59:57 +10:00
Michael C
931b3fdc68
disallow vote types 10/11
2021-07-02 23:07:17 -04:00
Michael C
36a5b4e1d3
VIP upvotes unhide segments
...
also added test for undo-vote
2021-07-02 22:54:54 -04:00
Michael C
107b21c463
restore hidden segments with vip upvote
2021-07-02 21:57:00 -04:00
Haidang666
24480fd18c
Revear auto clear unused code
2021-07-01 11:38:29 +07:00
Haidang666
09e50d432e
Update postSegment test with reason
2021-07-01 11:31:35 +07:00
Haidang666
402ea35971
Add postSkipSegments return lastes warning reason
2021-07-01 10:33:47 +07:00
Haidang666
7f074554c4
Fix schema md header link
2021-07-01 10:30:45 +07:00
Ajay Ramachandran
f1d22c6ca4
Merge pull request #281 from mchangrh/docker/node-14
...
multi-stage dockerfile with node:14-alpine
2021-06-30 13:46:12 -04:00
Ajay Ramachandran
7a877a9653
Merge pull request #282 from HaiDang666/276_warn-reason
...
User warning reason
2021-06-30 13:43:08 -04:00
Ajay Ramachandran
ce59d3f95f
Don't fail if row is undefined
2021-06-30 00:01:40 -04:00
Haidang666
081f2d14b7
Add test, Fix sql syntax
2021-06-30 08:59:20 +07:00
Michael C
14a97b4879
multi-stage dockerfile with node:14-alpine
2021-06-29 19:22:18 -04:00
Ajay Ramachandran
4d8526c24d
Update dockerfile to node 14
2021-06-29 17:12:04 -04:00
Ajay Ramachandran
66cd88d4c2
Update node in dockerfile
2021-06-29 16:56:26 -04:00
Ajay Ramachandran
1f4da1ab48
Merge pull request #279 from mchangrh/ci-bump
...
Bump checkout/ setup-node actions
2021-06-29 16:49:32 -04:00
Michael C
30a12a600a
bump setup-node and checkout versions
2021-06-29 16:27:35 -04:00
Ajay Ramachandran
994b68bc4c
Merge pull request #278 from mchangrh/ci-timeout
...
add 5 minute timeout to CI, added note in config
2021-06-29 16:26:21 -04:00
Michael C
d710b88c3e
add 5 minute timeout to CI, added note in config
...
- added note in config to use enable_offline_queue to avoid timeouts
- removed wait action from CI
2021-06-29 16:23:52 -04:00
Haidang666
214ddc9807
Add warning reason in postWarning
2021-06-29 14:56:57 +07:00
Ajay Ramachandran
6f18a49ba0
Switch username update to one query
2021-06-28 22:05:15 -04:00
Ajay Ramachandran
8b54e965a2
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-06-28 13:24:04 -04:00
Ajay Ramachandran
0ddde452e3
Auto-lock username when admin changes it
...
https://github.com/ajayyy/SponsorBlockServer/issues/168
2021-06-28 13:20:57 -04:00
Ajay Ramachandran
7dbd4a3150
Merge pull request #275 from HaiDang666/193_log-username-change
...
Add log when update username
2021-06-27 18:13:21 -04:00
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
Haidang666
41ba37c04e
Fix boolean comparison, Add log table to schema visual
2021-06-27 11:57:39 +07:00
Haidang666
f3542b7402
Fix column name for postgre
2021-06-27 11:51:04 +07:00
Haidang666
f5bb221ecd
Add log when update username
2021-06-27 11:45:42 +07: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
Michael C
c13bc6cfbd
added tests and route
2021-06-18 17:46:18 -04:00
Michael C
04da532962
implement #253
2021-06-18 16:38:24 -04:00
Ajay Ramachandran
fb68bd46c8
Merge pull request #256 from mchangrh/segmentInfo-error
...
made 400/404 behaviour consistent with API docs
2021-06-18 16:31:55 -04:00
Michael C
4963f4dc08
style fixes
2021-06-18 15:33:14 -04:00
Michael C
c92e44bb1d
made 400/404 behaviour consistent with API docs
2021-06-18 14:43:59 -04:00
Ajay Ramachandran
1dcb63f2cc
Fix typo in test
2021-06-17 19:09:24 -04:00
Ajay Ramachandran
b9bcc35dd2
Allow removing warnings created by anyone
2021-06-17 19:08:36 -04:00
Ajay Ramachandran
0b967b9f45
Merge pull request #252 from mchangrh/segmentInfo
...
Implementation of segmentInfo and new userInfo properties
2021-06-16 13:24:39 -04:00
Ajay Ramachandran
20ae560bb1
Add semicolons
2021-06-16 13:23:25 -04:00
Michael C
7fe787c5ab
remove extra properties
2021-06-16 00:53:34 -04:00
Ajay Ramachandran
5fe6ce6656
Merge pull request #250 from mchangrh/fix-getskipsegment-test
...
Fix Test Suite
2021-06-16 00:47:55 -04:00
Ajay Ramachandran
47ddaaad7b
Merge pull request #251 from mchangrh/getSkipSegment-400
...
skipSegments return 400 if bad categories
2021-06-16 00:46:54 -04:00
Michael C
8dcc1a4a53
add getSegmentInfo with tests
2021-06-16 00:33:51 -04:00
Michael C
0a8f7aa39d
skipSegments return 400 if bad categories
2021-06-15 23:01:26 -04:00
Michael C
31071ddb17
new test cases
2021-06-15 21:56:20 -04:00
Michael C
a003733e51
fix test suite
2021-06-15 21:29:36 -04:00
Michael C
13b105504b
remove timeSubmitted from query
2021-06-15 17:16:32 -04:00
Michael C
3b16cdb920
add last lastSegmentID
2021-06-15 17:08:17 -04:00
Michael C
607b7cbb0a
add ignored counts
2021-06-15 15:50:41 -04:00
Ajay Ramachandran
87c6dab41d
Merge pull request #248 from MRuy/feature/add-version-to-databasejson
...
Add version to database.json
2021-06-15 11:58:24 -04:00
Nanobyte
859ad6ea38
Add version to database.json
2021-06-15 17:50:18 +02:00
Ajay Ramachandran
3e73148390
Merge pull request #245 from mchangrh/reconfigure-cors
...
remove CORS from nginx, add to express
2021-06-15 01:04:26 -04:00
Ajay Ramachandran
eb2b41bc8a
Merge pull request #243 from MRuy/feature/lock-username
...
Add lock username
2021-06-15 01:04:20 -04:00
Ajay Ramachandran
75981a3e5f
Fix copy mistake
2021-06-15 01:03:37 -04:00
Michael C
062faba8d1
remove CORS from nginx, add to express
2021-06-14 20:29:02 -04:00
Ajay Ramachandran
52f61c08a5
Merge pull request #241 from MRuy/fix/webhook-default-value
...
Fix webhook default value
2021-06-14 19:51:10 -04:00
Nanobyte
34fd78961b
Add username lock
2021-06-15 00:09:37 +02:00
Nanobyte
9cf68b8903
Fix test config adminUserID
2021-06-15 00:08:55 +02:00
Ajay Ramachandran
d0526566c4
Merge pull request #242 from mchangrh/add-delete-cors
...
add delete to CORS for /api/lockCategories
2021-06-14 16:26:23 -04:00
Ajay Ramachandran
0271556c07
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-06-14 22:25:55 +02:00
Ajay Ramachandran
8cce2a5977
Update nginx config
2021-06-14 22:25:24 +02:00
Ajay Ramachandran
e06eb96fa7
Add ability to ban specific category
2021-06-14 16:23:39 -04:00
Michael C
edbbc62e5c
add delete to CORS for /api/lockCategories
2021-06-14 13:19:41 -04:00
Nanobyte
bbd478f322
Fix webhook default value
...
Added missing property and changed all defaults back to null
2021-06-14 10:47:46 +02:00
Ajay Ramachandran
17eb9604e7
Add banned username
2021-06-13 17:13:44 -04:00
Ajay Ramachandran
588e0abdd8
Fix type = 20 vote
2021-06-13 16:22:10 -04:00
Ajay Ramachandran
b08f5c8390
Don't break for incorrect votes
2021-06-13 16:00:36 -04:00
Ajay Ramachandran
344e680fe3
Fix rejections not being seperated
2021-06-09 15:14:31 -04:00
Ajay Ramachandran
4225d9b3b3
Silently reject votes
2021-06-08 20:20:05 -04:00
Ajay Ramachandran
1c8c76831e
Make redis not persist
2021-06-04 16:03:18 -04:00
Ajay Ramachandran
912f878906
Print video ID in newleaf errors
2021-06-03 14:49:01 -04:00
Ajay Ramachandran
ec081cf0c5
Support multiple newleaf urls
2021-06-03 11:38:21 -04:00
Ajay Ramachandran
1e5849f504
Prevent failing on api errors
2021-06-03 11:29:55 -04:00
Ajay Ramachandran
10fcc7885f
Raise redis memory
2021-06-03 00:50:05 -04:00
Ajay Ramachandran
29665d5a03
Merge pull request #238 from ajayyy/newleaf
...
Use newleaf instead of YouTube API
2021-06-02 22:41:06 -04:00
Ajay Ramachandran
e7337d3cb4
Add missing dependency
2021-06-02 22:40:18 -04:00
Ajay Ramachandran
0904036009
Use newleaf instead of YouTube API
2021-06-02 22:34:38 -04:00
Ajay Ramachandran
c1609a826a
Don't think duration changed when API fails
2021-06-02 19:17:29 -04:00
Ajay Ramachandran
2453c45b06
Don't use undefined lockedSum from cache
2021-06-01 22:20:42 -04:00
Ajay Ramachandran
63c8f87776
Don't deconstruct
2021-06-01 16:18:41 -04:00
Ajay Ramachandran
f20506bf43
Add back youtube api error handling
2021-06-01 16:14:21 -04:00
Ajay Ramachandran
ec51ff835a
Consider locked segments when calculating reputation
2021-05-29 20:48:41 -04:00
Ajay Ramachandran
6a58a08781
Rename user info endpoint
2021-05-24 16:05:18 -04:00
Ajay Ramachandran
3f682d467d
Fix reputation unit tests
2021-05-24 16:00:45 -04:00
Ajay Ramachandran
676fc8ea08
Add reputation to user info
2021-05-24 15:56:03 -04:00
Ajay Ramachandran
a732159a3a
Fix comment in sql upgrade file
2021-05-24 12:46:39 -04:00
Ajay Ramachandran
09fc3ca882
Raise reputation cap and don't count autovote submissions
2021-05-24 12:43:06 -04:00
Ajay Ramachandran
300ee0183e
Add a max initial boost
2021-05-24 10:51:32 -04:00
Ajay Ramachandran
d7f352d699
Revert "Don't get reputation every time"
...
This reverts commit 994dba86f6 .
2021-05-23 23:36:16 -04:00
Ajay Ramachandran
994dba86f6
Don't get reputation every time
2021-05-23 23:30:47 -04:00
Ajay Ramachandran
9990e0b807
Merge pull request #236 from ajayyy/segment-sort
...
Segment sorting
2021-05-23 23:20:42 -04:00
Ajay Ramachandran
30d0cb7590
Don't break with old cached data
2021-05-23 23:19:39 -04:00
Ajay Ramachandran
52b201ff87
Change to vary boost by votes
2021-05-23 21:43:23 -04:00
Ajay Ramachandran
eb2ffff780
Add tests for reputation
2021-05-23 18:51:23 -04:00
Ajay Ramachandran
d3210d4e27
Move files to utils
2021-05-23 18:00:20 -04:00
Ajay Ramachandran
5c2ab9087a
Use reputation when sorting segments
2021-05-23 17:54:51 -04:00
Ajay Ramachandran
194c657ba7
Clear reputation cache
2021-05-23 17:05:06 -04:00
Ajay Ramachandran
a5f9c2a022
Don't allow self votes
2021-05-23 16:57:41 -04:00
Ajay Ramachandran
0051022906
remove old user trustworthy code
2021-05-23 16:55:31 -04:00
Ajay Ramachandran
cfcb6c6b64
Add reputation system
2021-05-23 16:53:35 -04:00
Ajay Ramachandran
799aef0b65
Move redis code to middleware
2021-05-23 15:49:12 -04:00
Ajay Ramachandran
1b175d85c0
Update mocha
2021-05-23 14:56:04 -04:00
Ajay Ramachandran
9d19c59d44
Add caching for raw videoID fetching
2021-05-23 12:03:05 -04:00
Ajay Ramachandran
96ccbbe4a2
Removed unnecessary conditionals
2021-05-23 11:35:02 -04:00
Ajay Ramachandran
c7b7732092
Update lodash
2021-05-23 11:27:18 -04:00
Ajay Ramachandran
77da67ce98
Merge pull request #230 from ajayyy/dependabot/npm_and_yarn/redis-3.1.1
...
Bump redis from 3.0.2 to 3.1.1
2021-05-23 11:26:21 -04:00
Ajay Ramachandran
38360f379f
Merge pull request #224 from ajayyy/export
...
Add highlight category
2021-05-23 11:22:02 -04:00
Ajay Ramachandran
5a60dfa988
Uncomment webhook
2021-05-23 11:19:40 -04:00
Ajay Ramachandran
590ed037dd
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into export
2021-05-23 11:17:10 -04:00
Ajay Ramachandran
e71399f5af
Add banned user
2021-05-13 21:24:53 -04:00
Ajay Ramachandran
34aadda47a
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-05-13 14:59:14 -04:00
Ajay Ramachandran
0c64f4b006
Check for array in non hash prefix method
2021-05-13 14:59:12 -04:00
Ajay Ramachandran
72aff3a695
Block username change
2021-05-12 18:57:36 -04:00
Nanobyte
1122681c4f
Fix prepare statements and inconsistencies
2021-05-07 02:01:49 +02:00
Nanobyte
78a7f8a207
Fix test case prepare statements
2021-05-07 01:51:11 +02:00
Ajay Ramachandran
60a118f391
Add object src to csp
2021-05-06 16:14:11 -04:00
Ajay Ramachandran
cd66399049
Add csp for API
2021-05-06 16:03:26 -04:00
Ajay Ramachandran
b0a4b6ebed
Update indexes file table name
2021-05-06 15:53:31 -04:00
Ajay Ramachandran
99a4ed9e84
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-05-05 17:02:05 -04:00
Ajay Ramachandran
e93c08f33a
disable database by default
2021-05-05 17:01:52 -04:00
dependabot[bot]
a47906cac9
Bump redis from 3.0.2 to 3.1.1
...
Bumps [redis](https://github.com/NodeRedis/node-redis ) from 3.0.2 to 3.1.1.
- [Release notes](https://github.com/NodeRedis/node-redis/releases )
- [Changelog](https://github.com/NodeRedis/node-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/NodeRedis/node-redis/compare/v3.0.2...v3.1.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-29 22:27:42 +00:00
Ajay Ramachandran
423ea9cbc6
Merge pull request #231 from MRuy/fix/run-tests-in-memory-db
...
Use in memory database for tests
2021-04-29 18:26:15 -04:00
Nanobyte
35714d4f2d
Use in memory database for tests
2021-04-29 21:49:25 +02:00
Ajay Ramachandran
129cf8d02d
Merge pull request #229 from MRuy/fix/rename-no-segments
...
Rename noSegments to lockCategories
2021-04-23 21:34:04 -04:00
Nanobyte
f561388a1f
Rename noSegments to lockCategories
2021-04-24 01:54:42 +02:00
Ajay Ramachandran
a587247c0d
Don't hold connections open in getTopUsers
2021-04-23 18:21:08 -04:00
Ajay Ramachandran
72121f98de
Revert "Lower redis memory"
...
This reverts commit fe3420a512 .
2021-04-22 23:12:44 -04:00
Ajay Ramachandran
0a66dcc0d6
Redirect to cdn
2021-04-23 04:59:36 +02:00
Ajay Ramachandran
a7605d5699
Don't crash for redis errors
2021-04-21 20:17:46 -04:00
Ajay Ramachandran
fe3420a512
Lower redis memory
2021-04-21 20:05:41 -04:00
Ajay Ramachandran
c7e78c21c9
Restart docker containers always
2021-04-21 19:43:32 -04:00
Ajay Ramachandran
228a9a8807
Don't update lastUpdate until the update is complete
2021-04-21 18:49:00 -04:00
Ajay Ramachandran
61b64fa904
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-04-21 18:25:44 -04:00
Ajay Ramachandran
6bcd6e2d80
Don't update multiple times
2021-04-21 18:25:38 -04:00
Ajay Ramachandran
d60e079e50
Merge pull request #227 from MRuy/fix/filter-usernames
...
Remove unicode control characters from username
2021-04-19 21:06:26 -04:00
Ajay Ramachandran
ecfd9da7a1
Update dump when using redirect urls
2021-04-19 21:03:58 -04:00
Ajay Ramachandran
697f1f47dd
Use .csv in dump urls
2021-04-19 20:59:01 -04:00
Ajay Ramachandran
19058d3760
Add redirects
2021-04-19 20:54:52 -04:00
Nanobyte
3a60b6fff7
Remove unicode control characters from username
2021-04-19 03:14:31 +02:00
Ajay Ramachandran
dad4fbca75
Merge pull request #226 from MRuy/fix/getUserInfo
...
Fix/get user info
2021-04-18 15:55:18 -04:00
Ajay Ramachandran
d56121fdec
Merge pull request #210 from MRuy/feat/limit-reward-time-per-segment
...
Limit reward time per segment
2021-04-18 15:53:34 -04:00
Ajay Ramachandran
a3db0a005a
Formatting plus count(*)
...
https://www.citusdata.com/blog/2016/10/12/count-performance/
2021-04-18 15:53:19 -04:00
Ajay Ramachandran
ddf1fdc89c
Merge branch 'master' into feat/limit-reward-time-per-segment
2021-04-18 15:47:42 -04:00
Ajay Ramachandran
e70ae12f2a
Fix quote issues
2021-04-18 15:46:46 -04:00
Ajay Ramachandran
b6660d656f
Add cdn redirect
2021-04-18 21:10:43 +02:00
Ajay Ramachandran
2814ce7b7f
Change dump deletion logic
2021-04-18 12:28:47 -04:00
Ajay Ramachandran
911ebddd69
Fix example config
2021-04-17 23:09:21 -04:00
Ajay Ramachandran
5eacfff7ae
Merge pull request #217 from MRuy/feature/configurable-database-dump
2021-04-17 23:07:08 -04:00
Ajay Ramachandran
a06ab724ad
Fix file locations + formatting
2021-04-17 23:06:39 -04:00
Ajay Ramachandran
d8e7bf130f
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-04-18 04:50:30 +02:00
Ajay Ramachandran
058c05a1f7
Fix permission issues
2021-04-18 04:49:05 +02:00
Ajay Ramachandran
9d06bda4f8
Don't allow downvoting dead submissions
2021-04-17 16:37:39 -04:00
Ajay Ramachandran
346485da8c
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
...
# Conflicts:
# src/routes/voteOnSponsorTime.ts
2021-04-17 16:25:10 -04:00
Ajay Ramachandran
5b2f05741e
Fix no segments votes being allowed
2021-04-17 16:23:45 -04:00
Nanobyte
cb4ecea830
Add vip info to getUserInfo
2021-04-15 23:05:18 +02:00
Nanobyte
112b232f9e
Fix UserID types
2021-04-15 23:03:50 +02:00
Nanobyte
9b0ba9031e
Optimize code
2021-04-15 01:22:25 +02:00
Nanobyte
389885893c
Only get enabled warnings
2021-04-15 01:22:01 +02:00
Ajay Ramachandran
77a4c2fe34
Update nginx config
2021-04-13 03:04:02 +02:00
Ajay Ramachandran
f6f5570d0c
Improve auto mod reject message
2021-04-11 13:15:42 -04:00
Ajay Ramachandran
6a9b218e22
Don't always use YouTube API cache
2021-04-08 20:37:19 -04:00
Ajay Ramachandran
8088f37632
Only return one segment for highlight category
2021-04-05 23:48:51 -04:00
Ajay Ramachandran
7bf09906d3
Prevent voting for highlight category
2021-04-05 22:33:28 -04:00
Ajay Ramachandran
6554e142cc
Add highlight category
2021-04-04 23:12:26 -04:00
Ajay Ramachandran
bf2d033ac3
Merge pull request #223 from ajayyy/export
...
Improvements
2021-04-02 16:43:40 -04:00
Ajay Ramachandran
bc688a3d8d
FIx duration issue
2021-04-02 16:40:51 -04:00
Ajay Ramachandran
5bcfe9f192
Merge pull request #222 from ajayyy/dependabot/npm_and_yarn/y18n-4.0.1
...
Bump y18n from 4.0.0 to 4.0.1
2021-04-02 12:25:14 -04:00
Ajay Ramachandran
cfbf8a47d7
Fix hashing function
2021-04-02 12:03:21 -04:00
dependabot[bot]
1eca55d96c
Bump y18n from 4.0.0 to 4.0.1
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-31 21:52:03 +00:00
Ajay Ramachandran
93d7242021
Add preview category
2021-03-30 22:50:09 -04:00
Ajay Ramachandran
612463165a
Merge pull request #220 from ajayyy/export
...
Unlock videos and hide segments if duration changed
2021-03-30 18:28:44 -04:00
Ajay Ramachandran
c9a8dc21b1
Unlock videos and hide segments if duration changed
2021-03-29 19:16:18 -04:00
Ajay Ramachandran
c17f0b1e6e
Add invite link
2021-03-29 18:39:55 -04:00
Ajay Ramachandran
e5e63efffe
Merge pull request #218 from ajayyy/export
...
Apply indexes after upgrades
2021-03-26 21:28:26 -04:00
Ajay Ramachandran
5152d7e649
Fixed tests
2021-03-26 19:13:52 -04:00
Ajay Ramachandran
37a07ace72
Cache data for getting hash-prefix segments
2021-03-26 19:03:30 -04:00
Ajay Ramachandran
46524e4298
Fix indexes
2021-03-26 19:02:32 -04:00
Ajay Ramachandran
c7eb5fed35
Fix video duration precision and use submitted one when possible
2021-03-26 18:35:25 -04:00
Ajay Ramachandran
5c827baa1a
Update db link
2021-03-25 18:48:44 -04:00
Ajay Ramachandran
27c2562a7f
Add more indexes
2021-03-23 23:46:46 -04:00
Nanobyte
2c3dde0d2e
Timestamp based dump filenames and garbage collection
2021-03-22 22:18:23 +01:00
Nanobyte
8219b0398e
Fix invalid json in example config
2021-03-22 01:35:45 +01:00
Ajay Ramachandran
11b4f642a6
Apply indexes after upgrades
2021-03-21 19:16:56 -04:00
Nanobyte
514ea03655
Add TS for dumpDatabase config
2021-03-21 22:59:16 +01:00
Nanobyte
84b86bb6a1
Make dumpDatabase configurable
2021-03-21 22:40:57 +01:00
Ajay Ramachandran
fcd7be632c
Merge pull request #215 from ajayyy/export
...
Add new "Service" option
2021-03-20 12:26:08 -04:00
Ajay Ramachandran
cbf043ac7e
Add twitch
2021-03-20 11:54:50 -04:00
Ajay Ramachandran
180d9bfb73
Add explanation to database page
2021-03-20 11:46:37 -04:00
Ajay Ramachandran
8423165df4
Add json page for database export
2021-03-20 01:13:16 -04:00
Ajay Ramachandran
02e628f533
Setup csv exports and html status page
2021-03-20 01:08:33 -04:00
Ajay Ramachandran
3c89e9c015
Send back duration in getSkipSegments request
2021-03-19 22:52:23 -04:00
Ajay Ramachandran
5544491728
Add duration option when submitting and save duration in DB
2021-03-19 22:45:30 -04:00
Ajay Ramachandran
29d2c9c25e
Add new "Service" option
2021-03-19 21:31:16 -04:00
Nanobyte
e883f76e54
Fix quote inconsistency
2021-03-20 01:17:50 +01:00
Ajay Ramachandran
10d445badb
Merge branch 'master' into feat/limit-reward-time-per-segment
2021-03-19 20:07:22 -04:00
Ajay Ramachandran
8f2ea30da0
Fix rejecting downvotes
2021-03-19 18:19:45 -04:00
Ajay Ramachandran
a27adffec0
Update README.MD
2021-03-19 18:09:53 -04:00
Ajay Ramachandran
14489e3b4b
Merge pull request #214 from ajayyy/export
...
Send moderator rejected votes to discord anyway
2021-03-19 18:09:01 -04:00
Ajay Ramachandran
3503024fd7
Merge pull request #212 from MRuy/feat/postskipsegments-response-with-new-segments
...
Return new created segments on success
2021-03-19 18:08:43 -04:00
Ajay Ramachandran
1f01c004ae
Send moderator rejected votes to discord anyway
2021-03-19 18:05:33 -04:00
Ajay Ramachandran
cfdb0f4466
Remove index creation from upgraders
2021-03-11 18:55:27 -05:00
Ajay Ramachandran
4168733825
Only count users when asked
2021-03-11 18:40:09 -05:00
Ajay Ramachandran
0c4e4af228
Support uppercase hashes
2021-03-11 18:18:55 -05:00
Ajay Ramachandran
f4cf646f80
Add checks for empty categories after filtering
2021-03-08 22:06:18 -05:00
Ajay Ramachandran
b641a0b0b3
Merge pull request #211 from ajayyy/redis
...
Postgres
2021-03-08 19:28:05 -05:00
Ajay Ramachandran
a4bbc9f2ba
Add pg load file
2021-03-08 19:25:20 -05:00
Ajay Ramachandran
b0c7a6c537
Partially fix getTopUsers
2021-03-08 18:28:41 -05:00
Ajay Ramachandran
eacd9cb6e8
Secure docker containers to local network
2021-03-07 00:37:47 -05:00
Ajay Ramachandran
8729796e87
Make tests pass running with postgres
2021-03-07 00:21:56 -05:00
Ajay Ramachandran
3fe7501802
Support private db with postgres
2021-03-06 19:29:03 -05:00
Ajay Ramachandran
54e69b266d
Fix tests
2021-03-06 00:25:18 -05:00
Ajay Ramachandran
44f10b9ff9
Removed some unused logs
2021-03-04 23:30:30 -05:00
Ajay Ramachandran
e9b7eac289
Finish up conversion to use case-sensitive column names
2021-03-04 23:29:01 -05:00
Ajay Ramachandran
2772a9dcc6
Switch to case sensitive and get submitting + getting working
2021-03-04 20:23:05 -05:00
Ajay Ramachandran
1a66be8665
Make schemas work with postgres
2021-03-04 19:44:54 -05:00
Ajay Ramachandran
2c211d4730
Fix preprocessor not being used for initial schema
2021-03-01 22:40:13 -05:00
Ajay Ramachandran
88855ab695
Support schema upgrading with postgres
2021-03-01 22:20:44 -05:00
Ajay Ramachandran
46b42da5bd
Update tests to use promises
2021-03-01 21:37:35 -05:00
Nanobyte
da3a5fe787
Return new created segments on success
2021-03-02 02:44:51 +01:00
Ajay Ramachandran
ff4af3786e
Switch to postgres + promises
2021-03-01 20:40:31 -05:00
Nanobyte
ac945254d6
Limit reward time for getSavedTimeForUser endpoint
2021-03-02 01:22:02 +01:00
Ajay Ramachandran
9a9038d5e0
Update gitignore
2021-03-01 19:21:59 -05:00
Ajay Ramachandran
fa759ae7b2
Add docker compose for deps
2021-03-01 19:21:27 -05:00
Ajay Ramachandran
f358605f70
Merge pull request #209 from MRuy/fix/valid-json-for-categories-param
...
Fix getSkipSegmentsByHash requires valid json
2021-02-25 21:56:30 -05:00
Nanobyte
d6ba5684e0
Limit reward time per segment
2021-02-26 01:57:45 +01: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
e86f442249
Add YouTube terms info
2021-02-21 21:28:29 -05:00
Ajay Ramachandran
e51ebdcad6
Merge pull request #208 from ajayyy/redis
...
Remove logging and fix voting error
2021-02-20 22:06:27 -05:00
Ajay Ramachandran
eeaa1614fa
Remove logging and fix voting error
2021-02-20 22:06:00 -05:00
Ajay Ramachandran
ef79439557
Merge pull request #207 from ajayyy/redis
...
Only cache for all categories
2021-02-20 22:03:15 -05:00
Ajay Ramachandran
8c910b67b4
Only cache for all categories
2021-02-20 22:02:57 -05:00
Ajay Ramachandran
993f75d014
Merge pull request #206 from ajayyy/redis
...
Add redis caching for 404s
2021-02-20 21:18:33 -05:00
Ajay Ramachandran
01d318d902
Add redis caching for 404s
2021-02-20 21:13:46 -05:00
Ajay Ramachandran
157a7743a3
Merge pull request #205 from ajayyy/segment-locking
...
Unlock segment if VIP downvotes
2021-02-18 22:12:58 -05:00
Ajay Ramachandran
597dff7ac3
Unlock segment if VIP downvotes
2021-02-18 22:09:57 -05:00
Ajay Ramachandran
c4c596bbf4
Merge pull request #204 from ajayyy/segment-locking
...
Replace VIP starting with 1000 votes with locked submissions
2021-02-18 20:50:13 -05:00
Ajay Ramachandran
e21ebd18a6
Don't ratelimit VIPs
2021-02-18 20:47:26 -05:00
Ajay Ramachandran
57adcd3c65
Replace VIP starting with 1000 votes with locked submissions
2021-02-18 20:24:04 -05:00
Ajay Ramachandran
ae57bfeb89
Merge pull request #203 from ajayyy/segment-locking
...
Add segment locking
2021-02-18 19:54:29 -05:00
Ajay Ramachandran
ef21ceb332
Add segment locking
2021-02-18 19:48:36 -05:00
Ajay Ramachandran
53ae826186
Allow upvotes on locked videos and update message
2021-02-09 19:53:39 -05:00
Ajay Ramachandran
b040db24d4
Fix /news redirect
2021-01-30 11:35:03 -05:00
Ajay Ramachandran
f9f7870c0d
Add /viewer redirect
2021-01-30 11:32:37 -05:00
Ajay Ramachandran
51a5e97e11
nginx config update
2021-01-28 19:34:35 -05:00
Ajay Ramachandran
69f95e6398
Fix vote rejection and update warning message
2021-01-26 20:44:32 -05:00
Ajay Ramachandran
10fa36ccf0
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-01-24 12:45:20 -05:00
Ajay Ramachandran
3b24dfd4c5
Fix unwarn not working
2021-01-24 12:45:13 -05:00
Ajay Ramachandran
21673c1ee9
fix broken invidious proxy
2021-01-23 12:58:11 -05:00
Ajay Ramachandran
8d15166931
Fix invidious
2021-01-23 12:52:54 -05:00
Ajay Ramachandran
ebc580ea76
Add nignx config file
2021-01-23 12:48:22 -05:00
Ajay Ramachandran
4561148ab2
Fix headers when using node-fetch
2021-01-17 21:18:22 -05:00
Ajay Ramachandran
acc9537bb7
Merge pull request #201 from MRuy/remove-dependency-request
...
#177 Replace request with node-fetch
2021-01-17 21:05:10 -05:00
Ajay Ramachandran
0bb4ff8417
Merge pull request #200 from ajayyy/improve-types
...
Improve Types
2021-01-17 15:15:37 -05:00
Nanobyte
314a7b9c56
Remove dependency request
2021-01-06 01:43:52 +01:00
Nanobyte
797e0b4641
Fix test cases
2021-01-06 01:43:28 +01:00
Nanobyte
87d2827f0f
Fix errors
2021-01-05 01:22:02 +01:00
Nanobyte
aabeb5f493
Replace request with node-fetch
2021-01-05 01:18:34 +01:00
Ajay Ramachandran
7f0a35c88a
Fix type issues
2020-12-29 15:12:18 -05:00
Ajay Ramachandran
29ef770759
Add type safety to getSkipSegments
2020-12-29 14:16:11 -05:00
Ajay Ramachandran
5927a24f16
Merge pull request #199 from ajayyy/delete-warnings
...
Warning fixes
2020-12-29 13:54:32 -05:00
Ajay Ramachandran
432cc42cba
Don't allow duplicate warnings
2020-12-29 13:31:15 -05:00
Ajay Ramachandran
baa4e73ba5
Don't remove all warnings
2020-12-29 13:27:54 -05:00
Ajay Ramachandran
eac6856c1d
Merge pull request #198 from ajayyy/delete-warnings
...
Add remove feature to warnUser
2020-12-29 00:33:14 -05:00
Ajay Ramachandran
78ef129634
Add remove feature to warnUser
2020-12-29 00:18:50 -05:00
Ajay Ramachandran
2769acecc0
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2020-12-28 23:40:51 -05:00
Ajay Ramachandran
7beb521d68
Warning should not hash the reported userID
2020-12-28 19:01:23 -05:00
Ajay Ramachandran
30823b752d
Add shadowHidden type
2020-12-28 18:57:57 -05:00
Ajay Ramachandran
e3e9c89a80
Better fix for cache type error
2020-12-28 18:50:47 -05:00
Ajay Ramachandran
bb7cc60118
fix crash when variable missing from cache
2020-12-28 18:47:51 -05:00
Ajay Ramachandran
63c3b1f56b
Updated warning message
2020-12-28 17:39:16 -05:00
Ajay Ramachandran
561d7bcc42
Merge pull request #188 from opl-/feat/faster-segments
...
Improve performance of segment querying endpoints
2020-12-24 21:50:57 -05:00
Ajay Ramachandran
e1a9004ed5
Commit missing type file
2020-12-24 21:38:15 -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
5c4980ed2f
Merge pull request #197 from ajayyy/work
...
Don't hide submissions from locked videos when banning
2020-12-23 00:24:35 -05:00
Ajay Ramachandran
229da1f62d
Don't hide submissions from locked videos when banning
2020-12-23 00:22:52 -05:00
Ajay Ramachandran
cb0906a52d
Remove minimum sponsor duration for VIP
2020-12-20 13:52:22 -05:00
Ajay Ramachandran
5f4cb63324
Merge pull request #196 from ajayyy/testing
...
Fix redis type issues
2020-12-17 00:38:21 -05:00
Ajay Ramachandran
8cf3caa77e
Only pass error if it exists
2020-12-17 00:28:31 -05:00
Ajay Ramachandran
475c8c594a
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into testing
2020-12-17 00:25:55 -05:00
Ajay Ramachandran
c8d5cec338
Fix redis type issues
2020-12-17 00:25:33 -05:00
Ajay Ramachandran
f5bd1c1eb9
Merge pull request #195 from ajayyy/no-segments-fix
...
Voting fixes
2020-12-17 00:02:32 -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
9797d7450c
Fix issues caused by YouTube API upgrade
2020-12-16 22:53:25 -05:00
Ajay Ramachandran
f8be719dc1
Merge pull request #194 from ajayyy/dependabot/npm_and_yarn/ini-1.3.7
...
Bump ini from 1.3.5 to 1.3.7
2020-12-14 01:00:57 -05:00
dependabot[bot]
122efc00fc
Bump ini from 1.3.5 to 1.3.7
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-12-11 15:59:18 +00:00
Ajay Ramachandran
1f699ac1d1
Merge pull request #174 from Dainius14/master
...
migrate to typescript
2020-12-07 17:41:14 -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
Dainius Dauksevicius
7da9de9991
fix nodemon to watch .ts files
2020-11-01 17:29:57 +02: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
62b008e693
remove TODO comments
2020-10-26 19:13:30 +02:00
Dainius Daukševičius
08d27265fc
migrate to typescript
2020-10-26 19:13:30 +02:00