Commit Graph

63 Commits

Author SHA1 Message Date
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
Michael C
9f7abf1865 Revert "fix error with errors"
This reverts commit 7601a1d4bf.
2021-08-28 01:53:53 -04:00
Michael C
7601a1d4bf fix error with errors 2021-08-28 01:48:48 -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
Ajay Ramachandran
919c47c993 Fix quote error 2021-07-22 00:08:30 -04:00
Ajay Ramachandran
31103faf92 Improve shadow ban check 2021-07-20 17:15:15 -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
b5a29675d6 fix more non-format string-concat 2021-07-12 02:48:49 -04:00
Michael C
c0b1d201ad fix non-format eslint in src/ 2021-07-12 02:12:22 -04:00
Michael C
5e58efb07f early 400 on skipSegments 2021-07-07 17:36:52 -04:00
Michael C
d48b6ea80e no need for eslint-disable 2021-07-06 01:06:29 -04:00
Ajay Ramachandran
48349070b3 Combine action type segments when sorting overlapping 2021-07-06 00:57:57 -04:00
Ajay Ramachandran
c77814235c Add action type to getSkipSegments 2021-07-05 13:23:31 -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
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
Ajay Ramachandran
a7cb0959e2 Merge pull request #262 from mchangrh/repeated-param
parse repeated parameters
2021-06-21 14:21:17 -04:00
Michael C
dd74dd3b1b parse repeated parameters 2021-06-21 00:33:48 -04:00
Ajay Ramachandran
96015d402b Make reputation take into account self downvotes 2021-06-20 12:57:32 -04:00
Michael C
0a8f7aa39d skipSegments return 400 if bad categories 2021-06-15 23:01:26 -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
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
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
799aef0b65 Move redis code to middleware 2021-05-23 15:49:12 -04:00
Ajay Ramachandran
9d19c59d44 Add caching for raw videoID fetching 2021-05-23 12:03:05 -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
0c64f4b006 Check for array in non hash prefix method 2021-05-13 14:59:12 -04:00
Ajay Ramachandran
8088f37632 Only return one segment for highlight category 2021-04-05 23:48:51 -04:00
Ajay Ramachandran
c9a8dc21b1 Unlock videos and hide segments if duration changed 2021-03-29 19:16:18 -04:00
Ajay Ramachandran
37a07ace72 Cache data for getting hash-prefix segments 2021-03-26 19:03:30 -04:00
Ajay Ramachandran
3c89e9c015 Send back duration in getSkipSegments request 2021-03-19 22:52:23 -04:00
Ajay Ramachandran
29d2c9c25e Add new "Service" option 2021-03-19 21:31:16 -04:00
Ajay Ramachandran
f4cf646f80 Add checks for empty categories after filtering 2021-03-08 22:06:18 -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
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
ff4af3786e Switch to postgres + promises 2021-03-01 20:40:31 -05:00