Skip YouTube video sponsors (server side portion)
Find a file
2021-07-06 13:31:44 +07:00
.github/workflows Merge pull request #301 from mchangrh/eslint-gh-actions 2021-07-06 01:01:36 -04:00
databases Add lock category reason 2021-07-06 13:31:44 +07:00
docker update CI names and path 2021-06-23 15:48:02 -04:00
nginx Merge pull request #245 from mchangrh/reconfigure-cors 2021-06-15 01:04:26 -04:00
src Add lock category reason 2021-07-06 13:31:44 +07:00
test Add lock category reason 2021-07-06 13:31:44 +07:00
.editorconfig migrate to typescript 2020-10-26 19:13:30 +02:00
.eslintrc.js Merge branch 'master' into fix-eslint 2021-07-04 18:19:52 -04:00
.gitignore Add disk caching for youtube api calls 2021-06-26 23:21:51 -04:00
ci.json set up postgres CI route 2021-06-23 15:35:08 -04:00
config.json.example add 5 minute timeout to CI, added note in config 2021-06-29 16:23:52 -04:00
DatabaseSchema.md Add lock category reason 2021-07-06 13:31:44 +07:00
Dockerfile multi-stage dockerfile with node:14-alpine 2021-06-29 19:22:18 -04:00
entrypoint.sh multi-stage dockerfile with node:14-alpine 2021-06-29 19:22:18 -04:00
LICENSE Create LICENSE 2019-08-19 20:59:10 -04:00
nodemon.json fix nodemon to watch .ts files 2020-11-01 17:29:57 +02:00
package-lock.json Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into pr/mchangrh/293 2021-07-04 18:17:18 -04:00
package.json lint & fix tests 2021-07-05 03:14:05 -04:00
README.MD Use newleaf instead of YouTube API 2021-06-02 22:34:38 -04:00
test.json Fix test config adminUserID 2021-06-15 00:08:55 +02:00
tsconfig.json read test script value from package.json 2021-07-03 16:01:29 +10:00

SponsorBlock Server

SponsorBlock is an extension that will skip over sponsored segments of YouTube videos. SponsorBlock is a crowdsourced browser extension that let's anyone submit the start and end time's of sponsored segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment.

This is the server backend for it

Server

This uses a Postgres or Sqlite database to hold all the timing data.

To make sure that this project doesn't die, I have made the database publicly downloadable at https://sponsor.ajay.app/database. You can download a backup or get archive.org to take a backup if you do desire. The database is under this license unless you get explicit permission from me.

Hopefully this project can be combined with projects like this and use this data to create a neural network to predict when sponsored segments happen. That project is sadly abandoned now, so I have decided to attempt to revive this idea.

Client

The client web browser extension is available here: https://github.com/ajayyy/SponsorBlock

Build Yourself

This is a node.js server, so clone this repo and run npm install to install all dependencies.

Make sure to put the database files in the ./databases folder if you want to use a pre-existing database. Otherwise, a fresh database will be created.

Rename config.json.example to config.json and fill the parameters inside. Make sure to remove the comments as comments are not supported in JSON.

Ensure all the tests pass with npm test

Run the server with npm start.

Developing

If you want to make changes, run npm run dev to automatically reload the server and run tests whenever a file is saved.

API Docs

Available here