Commit graph

884 commits

Author SHA1 Message Date
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
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