yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
82.05k stars 6.4k forks source link

Incorporate "Simple YouTube Age Restriction Bypass" #2808

Closed AdKiller closed 2 years ago

AdKiller commented 2 years ago

Checklist

Description

This addon can view age restricted videos even without logging in to Youtube. Would be great if you could incorporate it with yt-dlp.

https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass

Lesmiscore commented 2 years ago

https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/blob/main/src/components/unlocker.js

    // Strategy 1: Retrieve the video info by using a age-gate bypass for the innertube API
    // Source: https://github.com/yt-dlp/yt-dlp/issues/574#issuecomment-887171136
MinePlayersPE commented 2 years ago

Judging from https://github.com/yt-dlp/yt-dlp/issues/2770#issuecomment-1039151314, this won't be implemented on the core program I'm pretty sure you can hackily make extractor plugins implementing it tho

october262 commented 2 years ago

while this works for viewing age restricted videos, you will still need to be signed in & use a cookies file to download the video.

pukkandan commented 2 years ago

It uses multiple tricks to view the restricted video. We already implement most of them. The only one we don't implement is passing the request through a proxy with a logged in account. I will neither maintain such a proxy nor implement any third party proxy for this in yt-dlp. So this won't be implemented directly

pukkandan commented 2 years ago

Here's an extractor plugin to do this: https://gist.github.com/pukkandan/fcf5ca1785c80f64e471f0ee14f990fb

Related: #3182

AdKiller commented 2 years ago

Thanks a lot for the plugin!

I read "Plugins are loaded from /ytdlp_plugins//init.py"

What type is this?

pukkandan commented 2 years ago

It's an extractor

bjkeli commented 2 years ago

It's an extractor

how to use it ?