-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No results were found for Youtube links #239
Comments
Hi,
If you're not hosting this music bot via a Residential Connection this is bound to happen; YouTube themself has been cracking down on request made from Datacenter / Non-residential line.
The workaround for this is host lavalink part @ your home, if you have a dynamic IP that would be even better.
…-Darren N
***@***.***
On Dec 8, 2024 at 3:03 PM -0600, Dave187420 ***@***.***>, wrote:
Please describe the problem you are having in as much detail as possible:
Lavalink fails to load YouTube tracks. When attempting to play a YouTube link, the Lavalink server logs indicate "No matches found." The issue persists despite the correct plugin configuration in the application.yml. Other functionalities like establishing connections and handling volume changes work as expected.
All Docker containers are in the same network, and communication works as expected.
No errors are logged regarding the plugin loading. However, YouTube playback fails.
This issue seems specific to YouTube track loading; other functionalities are unaffected.
// Place your code here
This is me application.yml with the newst youtube-plugin:1.10.2 =
Server: # REST and WS server
port: 2333
address: 0.0.0.0
plugins:
# name: # Name of the plugin
# some_key: some_value # Some key-value pair for the plugin
# another_key: another_value
lavalink:
plugins:
- dependency: "dev.lavalink.youtube:youtube-plugin:1.10.2"
repository: "https://maven.lavalink.dev/releases"
pluginsDir: "./plugins"
server:
password: "youshallnotpass"
sources:
youtube: true
bandcamp: true
soundcloud: true
twitch: true
vimeo: true
http: true
local: false
filters: # All filters are enabled by default
volume: true
equalizer: true
karaoke: true
timescale: true
tremolo: true
vibrato: true
distortion: true
rotation: true
channelMix: true
lowPass: true
bufferDurationMs: 400 # The duration of the NAS buffer. Higher values fare better against longer GC pauses. Duration <= 0 to disable JDA-NAS. Minimum of 40ms, lower values may introduce pauses.
frameBufferDurationMs: 5000 # How many milliseconds of audio to keep buffered
opusEncodingQuality: 10 # Opus encoder quality. Valid values range from 0 to 10, where 10 is best quality but is the most expensive on the CPU.
resamplingQuality: LOW # Quality of resampling operations. Valid values are LOW, MEDIUM and HIGH, where HIGH uses the most CPU.
trackStuckThresholdMs: 10000 # The threshold for how long a track can be stuck. A track is stuck if does not return any audio data.
useSeekGhosting: true # Seek ghosting is the effect where whilst a seek is in progress, the audio buffer is read from until empty, or until seek is ready.
youtubePlaylistLoadLimit: 6 # Number of pages at 100 each
playerUpdateInterval: 5 # 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
youtubeConfig: # Required for avoiding all age restrictions by YouTube, some restricted videos still can be played without.
email: "*******" # Email of Google account
password: "******" # Password of Google account
#httpConfig: # Useful for blocking bad-actors from ip-grabbing your music node and attacking it, this way only the http proxy will be attacked
#proxyHost: "localhost" # Hostname of the proxy, (ip or domain)
#proxyPort: 3128 # Proxy port, 3128 is the default for squidProxy
#proxyUser: "" # Optional user for basic authentication fields, leave blank if you don't use basic auth
#proxyPassword: "" # Password for basic authentication
metrics:
prometheus:
enabled: false
endpoint: /metrics
sentry:
dsn: ""
environment: ""
# tags:
# some_key: some_value
# another_key: another_value
logging:
file:
path: ./logs/
level:
root: INFO
lavalink: INFO
request:
enabled: true
includeClientInfo: true
includeHeaders: false
includeQueryString: true
includePayload: true
maxPayloadLength: 10000
logback:
rollingpolicy:
max-file-size: 1GB
max-history: 30
LAVALINK LOG=
lavalink | 2024-12-08 20:46:16.854 INFO 1 --- [ XNIO-1 I/O-4] lavalink.server.io.SocketServer : {"op":"volume","guildId":"44 0489717256028160","volume":100}
lavalink | 2024-12-08 20:46:17.018 INFO 1 --- [ XNIO-1 I/O-4] lavalink.server.io.SocketServer : {"op":"voiceUpdate","guildId ":"440489717256028160","sessionId":"54cecac29864b06d8b4b0d912301a4a8","event":{"token":"f98a27f943608371","guild_id":"440489717256028160", "endpoint":"us-east8455.discord.media:443"}}
lavalink | 2024-12-08 20:46:17.527 INFO 1 --- [ XNIO-1 task-1] l.server.player.AudioLoaderRestHandler : Got request to load for iden tifier "https://www.youtube.com/watch?v=DXv0z-p_sUo"
lavalink | 2024-12-08 20:46:17.590 INFO 1 --- [ader-2-thread-1] lavalink.server.player.AudioLoader : No matches found
lavalink | 2024-12-08 20:46:17.592 INFO 1 --- [ XNIO-1 task-1] lavalink.server.io.RequestLoggingFilter : GET /loadtracks?identifier=h ttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDXv0z-p_sUo, client=172.22.0.4
lavalink | 2024-12-08 20:46:17.593 INFO 1 --- [ XNIO-1 I/O-4] lavalink.server.io.SocketServer : {"op":"destroy","guildId":"4 40489717256028160"}
If you have your own setup, without the original docker configuration, please provide:
Further details:
Discord.js Version: 14.11.0
Node.js Version: 20.18.1
Docker Version: 24.0.6
Operating System: Ubuntu 22.04 (Dockerized environment)
Relevant client options:
• partials: none
• gateway intents: none
• other: none
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thank you for your response. I am hosting the Lavalink server on a residential connection. Please let me know if there's anything else I should configure to address this issue. |
I am new here have i understand that right that i just need to copy pasta your code in me application.yml //
plugins:
youtube:
enabled: true
allowSearch: true
allowDirectVideoIds: true
allowDirectPlaylistIds: true
clients:
- ANDROID_MUSIC
- MUSIC
- TVHTML5EMBEDDED
- WEB
- WEBEMBEDDED
oauth:
enabled: true
skipInitialization: true
refreshToken: "your_token"
clientOptions:
ANDROID_MUSIC:
playback: false
playlistLoading: false
searching: false
videoLoading: true
MUSIC:
playback: false
playlistLoading: false
searching: true
videoLoading: false
TVHTML5EMBEDDED:
playback: true
playlistLoading: false
searching: false
videoLoading: true
WEB:
playback: false
playlistLoading: true
searching: true
videoLoading: false
WEBEMBEDDED:
playback: false
playlistLoading: false
searching: false
videoLoading: false |
@DarrenOfficial yeah, that should work. also i recommend u to check out this new music bot: https://github.com/appujet/lavamusic. |
okay yeah thank i will try it, someday lavalink v3 is going to be discontinued and quick update here is a problem with lavalink-devs youtube-source at the moment everthing should work if there fixing it |
Please describe the problem you are having in as much detail as possible:
Lavalink fails to load YouTube tracks. When attempting to play a YouTube link, the Lavalink server logs indicate "No matches found." The issue persists despite the correct plugin configuration in the application.yml. Other functionalities like establishing connections and handling volume changes work as expected.
All Docker containers are in the same network, and communication works as expected.
No errors are logged regarding the plugin loading. However, YouTube playback fails.
This issue seems specific to YouTube track loading; other functionalities are unaffected.
If you have your own setup, without the original docker configuration, please provide:
Further details:
Discord.js Version: 14.11.0
Node.js Version: 20.18.1
Docker Version: 24.0.6
Operating System: Ubuntu 22.04 (Dockerized environment)
Relevant client options:
The text was updated successfully, but these errors were encountered: