Skip to content

FIX for: youtube: youtube-dl failed to load the resource. #1059

Open
@Windows200000

Description

@Windows200000

Make a new file and edit it: (I named it cytdlp for ytdlp with cookies)

#!/bin/bash
./yt-dlp_linux --cookies cookies.txt "$@"

Make it executable chmod +x cytdlp

Edit ts3audiobot.toml to include:

[tools]
#Path to the youtube-dl binary or local git repository.
youtube-dl = { path = "./cytdlp" }

Get the cookies and move them to the bots directory (probably from your PC at home) by running:
yt-dlp --cookies-from-browser firefox --cookies cookies.txt
link to ytdlp article for more details

restart the bot

If it doesn't work:

Make sure you have the latest ytdlp
Confirm ./cytdlp https://www.youtube.com/watch?v=dQw4w9WgXcQ works, so you know you set everything up correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions