Import YouTube
-
Hi,
I’m running PeerTube on Cloudron and I’m trying to get YouTube imports working, but they now require login (yt-dlp error: Sign in to confirm you’re not a bot).What I tried:
Exported cookies.txt from my browser (Netscape format, starts with # Netscape HTTP Cookie File).
Placed the file at /app/data/storage/cookies.txt.
Edited /app/data/config/production.yaml and added:
import: youtube_dl: args: "--cookies /app/data/storage/cookies.txt"Has anyone tried to set this up?
Maybe I’m doing something wrong. Any advice would be appreciated. -
@robi Thanks for the reply

All files are owned by thecloudronuser. I also restarted the app, but the problem still persists. -
@robi In the logs I always see this:
ERROR: [youtube] ***: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp -
@robi In the logs I always see this:
ERROR: [youtube] ***: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp -
@robi said in Import YouTube:
--cookies-from-browserdid you try this?
Yes, I also tried
--cookies-from-browser, but I uploaded acookies.txtfile into PeerTube.
I added the path to the file in the import section ofproduction.yamland restarted the instance.
Maybe I’m doing something wrong, but I have no idea how else to do it. -
You seem to be doing it right.
I'd suggest running the command from the terminal manually to test if the issue is with yt-dlp or with how Peertube uses it.
Also visit Peertube's Github issues and see what other users are experiencing.
-
Has anything new been added to this issue? I came across this guide: https://github.com/Chocobozzz/PeerTube/issues/6522#issuecomment-3698599168
However, I was unable to implement it (I suppose I lack knowledge of CLI and skills).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login