Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
403 Permission Denied on Digital Trends YouTube channel videos if logged in #18841
Comments
|
Works for me. Are you banned from their channel or something? |
|
No, not banned. I just commented on a video. |
|
Oh, it's not only the Digital Trends channel. Just got the same on this video: |
|
Same here, on https://www.youtube.com/watch?v=cXUkvswgOMs I don't think there is any relation to being connected or not: This is a public video, and the link is the same when connected or not to my account on the browser Nevermind, I just retried and now it works.. no 403 Forbidden.. weird FWIW, the only log I have when it didn't work is (not very helpful I'm sorry..):
Then when I tried with some verbose (and it worked) I got some
I don't think this can help, but hey you never know :) |
|
Me too I'm getting |
|
Failing on https://www.youtube.com/watch?v=fAqcVIZDvyM and several other videos. Seems related to disabling embeds, but it also seems that if you've downloaded or possibly watched too many videos, YouTube will give 403. (And this could be tied to your account.) I tried testing a video I had previously downloaded a few hours earlier and got 403; tried it again some time after that and it succeeded. But for 'embed disabled' videos, it's different. Verbose output, though I don't think it's relevant:
This video is available in qualities up to 480p, mp4 only for DASH. youtube-dl fails for all, it seems; at least 135 (480p), 134 (360p), 43 (vp8 360p), 140 (m4a), and 18 (baseline h264 mp4 360p). I think many or most downloading sites are based off of youtube-dl, but they have more success. On https://qdownloader.net/download?video=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfAqcVIZDvyM, https://www.vidpaw.com/download/fAqcVIZDvyM/, https://keepvid.works/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfAqcVIZDvyM, and https://savemedia.website/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfAqcVIZDvyM, 480p and 360p are both listed, but only 360p has a detected size and works. (In Firefox, you can just click on the link and Firefox will play the video without sound.) This is format 134 as confirmed in the URL. Format 135 is working if you watch the video on YouTube and look at 'Stats for nerds', or look at the traffic in the network analyzer in a browser (Ctrl-shift-E in Firefox). It shows chunks being retrieved. But these chunks aren't playable by ffplay if you download them individually. In a 1080p video that has the same symptoms, 720p and 480p give HTTP 403 and aren't downloadable with the links provided by these sites or youtube-dl, but 1080p and 360p are. The link detected by the browser add-on Video DownloadHelper also doesn't work. It detects a video link if you try to play the video at 480p, but this URL only results in ~800 bytes and no video data so the output file only has sound. I think what may be happening is that the 'complete' file isn't included on YouTube's servers, it only has the chunks, but for some reason youtube-dl thinks the complete file is there. There are other videos where the video URL given by 'youtube-dl -g <video ID>' doesn't work with, say, ffmpeg, but youtube-dl can still download the chunks of video and combine them. So I think it should be possible for youtube-dl to do this with these formats if a browser can retrieve and play them. Edit: I'm no longer sure my comment is relevant, because I'm getting HTTP Error 403 on every video. If this isn't happening to other people, I might be blacklisted by YouTube. (Edit: youtube-dl can download a URL obtained through the following method, so maybe YouTube has updated its system.) However, I figured out how to access these formats. View source for the page on YouTube, search for the itag you want such as itag=135, and copy the URL there. I found it's easier with the one that has lots of I used bash: Or, more simply, For some undiagnosed reason, the URL given by youtube-dl doesn't work here. |
|
the issue is replicable by me, for encrypted videos. also fails on above given video, when logged in with one of my account (only which gives error):
Pull request #18927 fixes the issue. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.01.10. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Seems to affect any video from the Digital Trends channel: https://www.youtube.com/user/DigitalTrends/videos
and happens with the
--netrccommand line option or--usernameand--password. i.e. It seems I get permission denied on their videos when I'm logged in with my account credentials. Download works as normal without credentials. I can play those videos in a browser when logged in. Have not seen this problem on any other channels.