Skip to content

YouTube Cookies

Kieran edited this page Mar 25, 2024 · 9 revisions

You can optionally pass along your YouTube cookies to download private playlists or age-restricted content. I don't know if this presents any risk of your account getting banned - perform at your own risk.

Here's how to set it up:

  1. Set up Pinchflat and start the app at least once so all the required directories are created
  2. Get your login cookies using this guide. In my case, this comment helped.
    • Do NOT share your cookie file with anyone and do NOT include it in bug reports
  3. Locate your config directory for Pinchflat (either on the host or in the container) and look for the /extras/cookies.txt file. This file should be empty.
    • If you're decent in the CLI, open the container's console and run nano /config/extras/cookies.txt
  4. Paste your cookies from step 1 in the cookies.txt file
  5. That's it! You don't need to reboot the app.

If you're having trouble, check your Docker container logs. If you see something like YouTube said: The playlist does not exist, there's a very high chance the problem is how you've acquired or formatted your cookies which is a concern of yt-dlp, not Pinchflat. Feel free to open an issue, but you'll have more luck checking out the yt-dlp issue tracker/Discord.

Clone this wiki locally