-
Notifications
You must be signed in to change notification settings - Fork 865
Fix for flagged videos #1010
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
Fix for flagged videos #1010
Conversation
|
I can't verify whether this works or not right now, but I've been getting 410 on literally every video since I woke up today. My code is deployed in a EU region on Heroku. |
|
Damn I'm so waiting for this bug to be fixed :(( |
|
tried it just now. doesnt work unfortunately. idk why. it should though. if you add "&bpctr=9999999999&has_verified=1" to the URL inside your browser it works. but when trying to request it through ytdl it doesnt work somehow Edit: yes i tried it with the pull-request as node-package |
|
oops miss click |
I tested this video out and it also needs a cookie to be able to download since it is an age-restricted video @KAAquilla |
Yea i specifically wanted to test a video that is flagged and restricted. I am passing cookies btw. Just restricted videos work. |
huh really now, I'm getting all my restricted and flagged videos to download. You have any different code or videos that I can test? |
|
Hmm interesting, ytdl-core just started working on restricted videos even without this fix, I just had to add proper cookies to the request. To get the cookie I used this chrome addon: https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid?hl=en. After export add '=' in proper places and ';' after every line. So you get something like: 'CONSENT=YES..; VISITORINFO1_LIVE=0_Sha..; PREF=tz=Europe...; ...' etc. |
This is the code i am using now. I am passing cookies and the id_token which are defined in a const at the start of the code. sent in every request (getInfo and ytdl). as i said, it works when the video is only age-restricted. idk just strange. also playlists just stopped working for me since 2 days. using another package though EDIT: tested it just now again. now age-restricted videos dont work anymore as well. wtf. i will try getting a fresh cookie |
This fix isn't for age-restricted video, it's for videos that are flagged "The following content has been identified by the YouTube community as inappropriate or offensive to some audiences." |
no need for a stupid addon that requires you to re-format everything. Just do CTRL+SHIFT+I inside Chrome/Firefox go to console and enter "document.cookie" -> voila cookies get! |
any update on this @KAAquilla? |
|
The same issue, any solution? |
Nope still not working. I feel like its not passing my cookies correctly. |
try only using the cookie "__Secure-3PSID" |
try without "x-youtube-identity-token" |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
should be fixed with #1022 |





I'm pretty sure you only need to put it here but i'm not 100% sure, everything works for me after putting this here.