Add SponsorBlock support (#1013)

This commit is contained in:
Charlignon 2024-04-28 23:13:25 +02:00 committed by GitHub
parent 8e08919206
commit a27598c50a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 379 additions and 344 deletions

View file

@ -99,6 +99,11 @@ services:
By default, Muse limits the total cache size to around 2 GB. If you want to change this, set the environment variable `CACHE_LIMIT`. For example, `CACHE_LIMIT=512MB` or `CACHE_LIMIT=10GB`.
### SponsorBlock
Muse can skip non-music segments at the beginning or end of a Youtube music video (Using [SponsorBlock](https://sponsor.ajay.app/)). It is disabled by default. If you want to enable it, set the environment variable `ENABLE_SPONSORBLOCK=true` or uncomment it in your .env.
Being a community project, the server may be down or overloaded. When it happen, Muse will skip requests to SponsorBlock for a few minutes. You can change the skip duration by setting the value of `SPONSORBLOCK_TIMEOUT`.
### Custom Bot Status
In the default state, Muse has the status "Online" and the text "Listening to Music". You can change the status through environment variables: