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 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
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
Ajay
2ecf4b3a9b
Fix category votes to use category support to judge when not allowed
2022-09-12 10:59:26 -04:00
Ajay
bd7dfc63ff
Add eslint rules for dealing with promises
2022-09-07 20:01:11 -04:00
Ajay
08ab7e816d
Restrict changing chapters category
2022-09-02 17:48:47 -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
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
adca0256a0
Fix voting insert with postgres
2022-07-05 19:30:45 -04:00
Ajay
f9de547b95
Add malicious vote type for chapters
2022-07-04 16:18:58 -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 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
Ajay
fe0afd58bc
Save userid with votes
2022-03-30 16:02:30 -04: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
de7b985535
Merge branch 'master' into voteOnSponsorTime
2022-02-10 23:00:51 -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
5713b96d13
add test for downvote videoDuration change
2022-02-04 00:21:15 -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
0854ad1f65
rewrite voteOnSponsorTimes
2022-02-03 06:06:54 -05:00
Ajay
d367998d39
Remove use of "CategoryActionType"
2022-01-19 18:11:01 -05:00
Ajay
acb5a9467e
Fix warning
2022-01-16 15:03:46 -05:00
Ajay
6fe7200481
don't allow category vote for full video segment
2022-01-14 00:21:13 -05:00
Ajay
65954520d0
Treat duplicate full video submission as upvote
2022-01-06 03:39:46 -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
a5a90e3c84
add getHashCache where applicable=
2021-11-27 02:41:34 -05:00
Michael C
03c95ca158
rename clearSegmentCache
2021-11-15 01:48:14 -05: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
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
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