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 thecloudron
user. 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 said in Import YouTube:
--cookies-from-browser
did you try this?
Yes, I also tried--cookies-from-browser
, but I uploaded acookies.txt
file into PeerTube.
I added the path to the file in the import section ofproduction.yaml
and 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.