Skip to content

YT DLP 403 errors #102

Description

@DrewScatterday

Love this bot thanks for your hardwork!

Description

When doing youtube queries I would get a yt dlp error in the logs that looked something like this

https://rr4---sn-5hnekn7z.googlevideo.com/videoplayback?expire=....
403 Unauthorized

and the bot would not play the song

Expected result

Bot plays the song

Actual result

Bot does not play the song due to a yt dlp error

Reproduction Steps

do /play with a longer youtube video

The fix

Changing the ytdlp in the toml seemed to fix it more info here yt-dlp/yt-dlp#14680. I think the newer versions of yt dlp require the install to include the [default] option https://github.com/yt-dlp/yt-dlp/wiki/Installation which I believe installs a javascript runtime to help get around 403 errors with dlp

yt-dlp = {version = "^2025.6.30", extras = ["default"]}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is neededinvestigateInvestigate on a bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions