Update application.yml + remove mixer support. (#5013)

This commit is contained in:
Draper 2021-05-19 20:17:37 +01:00 committed by GitHub
parent d5fbc0b01c
commit f3231682b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 12 deletions

View File

@ -578,8 +578,6 @@ class Query:
returning["single"] = True returning["single"] = True
elif url_domain == "vimeo.com": elif url_domain == "vimeo.com":
returning["vimeo"] = True returning["vimeo"] = True
elif url_domain in ["mixer.com", "beam.pro"]:
returning["mixer"] = True
elif url_domain == "twitch.tv": elif url_domain == "twitch.tv":
returning["twitch"] = True returning["twitch"] = True
if "?t=" in track: if "?t=" in track:

View File

@ -923,7 +923,7 @@ class AudioSetCommands(MixinMeta, metaclass=CompositeMetaClass):
"""Toggle the domain restriction on Audio. """Toggle the domain restriction on Audio.
When toggled off, users will be able to play songs from non-commercial websites and links. When toggled off, users will be able to play songs from non-commercial websites and links.
When toggled on, users are restricted to YouTube, SoundCloud, Mixer, Vimeo, Twitch, and When toggled on, users are restricted to YouTube, SoundCloud, Vimeo, Twitch, and
Bandcamp links. Bandcamp links.
""" """
restrict = await self.config.restrict() restrict = await self.config.restrict()

View File

@ -40,8 +40,6 @@ class ValidationUtilities(MixinMeta, metaclass=CompositeMetaClass):
"soundcloud.com", "soundcloud.com",
"bandcamp.com", "bandcamp.com",
"vimeo.com", "vimeo.com",
"beam.pro",
"mixer.com",
"twitch.tv", "twitch.tv",
"spotify.com", "spotify.com",
"localtracks", "localtracks",

View File

@ -1,6 +1,6 @@
server: server: # REST and WS server
host: "localhost" port: 2333
port: 2333 # WS port address: "localhost"
lavalink: lavalink:
server: server:
password: "youshallnotpass" password: "youshallnotpass"
@ -10,17 +10,39 @@ lavalink:
soundcloud: true soundcloud: true
twitch: true twitch: true
vimeo: true vimeo: true
mixer: true
http: true http: true
local: true local: true
sentryDsn: "" bufferDurationMs: 1000 # Length of track to buffer into memory in miliseconds.
bufferDurationMs: 1000 youtubePlaylistLoadLimit: 10000 # Number of pages at 100 each
youtubePlaylistLoadLimit: 10000 playerUpdateInterval: 1 # How frequently to send player updates to clients, in seconds
youtubeSearchEnabled: true
soundcloudSearchEnabled: true
gc-warnings: true
#ratelimit:
#ipBlocks: ["1.0.0.0/8", "..."] # list of ip blocks
#excludedIps: ["...", "..."] # ips which should be explicit excluded from usage by lavalink
#strategy: "RotateOnBan" # RotateOnBan | LoadBalance | NanoSwitch | RotatingNanoSwitch
#searchTriggersFail: true # Whether a search 429 should trigger marking the ip as failing
#retryLimit: -1 # -1 = use default lavaplayer value | 0 = infinity | >0 = retry will happen this numbers times
metrics:
prometheus:
enabled: false
endpoint: /metrics
sentry:
dsn: ""
environment: ""
# tags:
# some_key: some_value
# another_key: another_value
logging: logging:
file: file:
max-history: 7 max-history: 7
max-size: 1GB max-size: 1GB
path: ./logs/ path: ./logs/
level: level:
root: INFO root: INFO
lavalink: INFO lavalink: INFO