Commit Graph

105 Commits

Author SHA1 Message Date
Ajay
30ac91c537 Don't refetch reputation if under high db load 2022-11-20 19:17:47 -05:00
Michael C
506b6570f3 add ignore next to catch errors 2022-09-25 03:29:31 -04:00
Ajay
da1ed70c66 adjust permissions and use parrallel processing 2022-07-29 11:47:28 -04:00
Ajay
23add072f3 Wait for any successful query instead of just most recent 2022-07-24 15:40:40 -04:00
Ajay
f93c197d05 Add timeout to shadowhiddenn ip 2022-07-22 20:56:29 -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
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
288f7d45e7 Revert "Don't cache empty arrays"
This reverts commit 9ab939456b.
2022-07-20 00:23:02 -04: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
47f460bb2c Fix non-sequencial reputation in getSkipSegments 2022-07-05 20:11:30 -04:00
Ajay
7d396f3782 Do more things in parallel in getSkipSegments 2022-07-05 19:23:02 -04:00
Ajay
a66588619a Fix rep hurting negatively voted segments 2022-05-03 15:27:23 -04:00
Ajay
4029b15233 Add query cache for shadowban 2022-02-21 22:46:13 -05:00
Ajay
985039a86b Fix segments always coming back as skip 2022-01-20 19:07:34 -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 Ramachandran
b2e37804f5 Merge pull request #440 from ajayyy/full-video-labels
Full video labeling
2022-01-06 15:55:11 -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
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
7f7cc3a7ca Increase required overlap for same category and action type 2022-01-02 14:02:26 -05:00
Ajay Ramachandran
ce4270b96d Merge branch 'master' into categoryLeaderboards 2021-12-31 14:04:20 -05:00
Michael C
42624a7782 minor eslint fixes 2021-12-30 04:09:46 -05:00
Ajay
939ec61c0e Increase threshold for category overlap 2021-12-29 00:18:07 -05: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
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
Ajay
5ebb638925 Add overlapping group caching 2021-12-20 22:51:47 -05:00
Ajay Ramachandran
4092ce2616 Fix async causing shadow banned segments to always appear 2021-12-12 23:35:10 -05:00
Ajay Ramachandran
edd11cc99c Merge pull request #409 from mchangrh/redisHashCache
getHash redis cache
2021-12-03 00:14:01 -05:00
Michael C
8fe0a45435 add partial lookup 2021-11-30 18:58:37 -05:00
Michael C
a5a90e3c84 add getHashCache where applicable= 2021-11-27 02:41:34 -05: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
Michael C
9d761815d8 add userID to getSkipSegments 2021-10-27 17:03:16 -04:00
Ajay Ramachandran
f6d6e93847 Return locked and votes in skipSegment calls
#379
2021-10-15 00:14:59 -04:00
Haidang666
356974b478 add service to table only have videoID 2021-09-30 13:56:55 +07:00
Michael C
a028eaa41a object-curly-spacing 2021-09-22 18:52:35 -04:00
Haidang666
93c69248d9 Add getService helper function 2021-09-13 14:49:17 +07: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
13480fe96c Merge pull request #346 from mchangrh/update-dependencies
Update dependencies & eslint
2021-08-31 12:23:48 -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
5310205911 catch and throw error outside of if 2021-08-28 01:54:50 -04:00