Skip to content
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

Sign in to confirm you’re not a bot. This helps protect our community. Learn more #717

Open
randomscumbag opened this issue Sep 26, 2024 · 3 comments

Comments

@randomscumbag
Copy link

First time seeing this. I am logged into my youtube and to my spotify, is their something else I need to log into? Sources for the tracks are their, just not going through with the downloads.

• [01 Deepest Truth ‒ Morgin Madison]
| ➤ Collating sources...
| ➤ [•] YouTube Music...(failed: [Response code 404 (Not Found)])
➤ [•] YouTube...[success, found 2 sources]
| ➤ Awaiting audiofeeds...(failed: [ERROR: [youtube] laJjJDtF-TE: Sign in to confirm you’re not a bot. This helps protect our community. Learn more])

@miraclx
Copy link
Owner

miraclx commented Nov 18, 2024

Hi @randomscumbag, do you still encounter this?

I'd expect it to be a one-off, but from our side, there's not much we can do.

One option is to allow you to attach your YouTube cookies, but I'm not a fan of that approach as it *may* associate your account with bot-like behavior, and risk getting banned.

@Treytcg
Copy link

Treytcg commented Dec 27, 2024

Hi there,

I’ve been trying to implement the feature using tough-cookie and editing the youtube.js file to use cookies from a fake YouTube account, but I’m having trouble getting it to work. Is there a way I can implement this on my end? I'm pretty new to this, so any help would be greatly appreciated.

Thanks in advance!

@miraclx
Copy link
Owner

miraclx commented Jan 6, 2025

So this particular issue is from youtube-dl, you can add the appropriate flags here:

youtubedl(null, {
'--': [url],
socketTimeout: 20,
cacheDir: false,
dumpSingleJson: true,
noWarnings: true,
});

Youtube-dl has the following cookie-args:

    --cookies FILE                  Netscape formatted file to read cookies from
                                    and dump cookie jar in
    --no-cookies                    Do not read/dump cookies from/to file
                                    (default)
    --cookies-from-browser BROWSER[+KEYRING][:PROFILE][::CONTAINER]
                                    The name of the browser to load cookies
                                    from. Currently supported browsers are:
                                    brave, chrome, chromium, edge, firefox,
                                    opera, safari, vivaldi, whale. Optionally,
                                    the KEYRING used for decrypting Chromium
                                    cookies on Linux, the name/path of the
                                    PROFILE to load cookies from, and the
                                    CONTAINER name (if Firefox) ("none" for no
                                    container) can be given with their
                                    respective separators. By default, all
                                    containers of the most recently accessed
                                    profile are used. Currently supported
                                    keyrings are: basictext, gnomekeyring,
                                    kwallet, kwallet5, kwallet6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants