On the website, maybe. With the git command line tool, GitHub first asks me for a username/password (didn't use to before), then I get 403/Forbidden:
~/git/youtube-dl $ git pull
Username for 'https://github.com': *****
Password for 'https://*****@github.com':
remote: Repository unavailable due to DMCA takedown.
remote: See the takedown notice for more details:
remote: https://github.com/github/dmca/blob/master/2020/10/2020-10-23-RIAA.md.
fatal: unable to access 'https://github.com/ytdl-org/youtube-dl.git/': The requested URL returned error: 403
Last pull was on Sept 28, so I'm somewhat out of date, but not too much.
(Click on the green 'Code' drop down menu above the file list to the right side, and select 'Download Zip'.)
As a last resort (if the above two get taken down), if you have it installed, you can just make a backup copy of its currently installed files. Since it's a Python program, its installed files include the entire source code.
If you are on Linux, this can be pretty easy to do with the help of your package manager. First, look up the command to list files owned by a given package for your package manager (For example, on ArchLinux, it'd be pacman -Qlq youtube-dl), then you can back them up like this:
Which backs up all of the packages' files into a directory called youtube-dl in the current directory. (You will need to install rsync for this method if it's not already on your system.)
Edit: For Windows users, I took a look at the contents of the Windows .exe file (from the Wayback Machine repo), and it looks like its contents are all compiled files (with .pyo and .pyd extensions) - no source code.
If the source code becomes inaccessible from the above links, it may still be possible to obtain it from Linux distro repositories. A few quick links:
https://packages.debian.org/bullseye/youtube-dl (Download link is at the bottom; it's called "all" under the "Architecture" column. After clicking it, select one of the mirrors to download.)
Unfortunately, as a longtime youtube-dl user I can say that the snapshots of this repo won't be very useful. Youtube is typically constantly implementing various countermeasures against youtube-dl, which the devs are in turn defeating in various ways. Now that the repo has been taken down, I fear it's just a matter of time until the code breaks.
FWIW, it'll likely be back up. This claim is obviously false; DMCA claims may only be made by the copyright holder or their agent, and I'd bet the farm that no code in this repo belonged to the RIAA or those they represent. The fact that someone could theoretically use it to download copyrighted content is meaningless, otherwise they could copyright strike torrent clients or even Chrome/Firefox/etc. (See also: https://old.reddit.com/r/programming/comments/jgub36/youtubedl_just_received_a_dmca_takedown_from_riaa/g9u6v4f/)
Also, just use JDownloader. Works perfectly for YouTube vids.
That's not what it's trying to say. Read the full letter.
Anticircumvention Violation. We also note that the provision or trafficking of the source code violates 17 USC §§1201(a)(2) and 1201(b)(1). The source code is a technology primarily designed or produced for the purpose of, and marketed for, circumventing a technological measure that effectively controls access to copyrighted sound recordings on YouTube, including copyrighted sound recordings owned by our members.
George W made sure that these assholes can sue anyone selling a hammer whenever a hammer was used to break open someone's window.
We also note that the provision or trafficking of the source code violates 17 USC §§1201(a)(2) and 1201(b)(1). The source code is a technology primarily designed or produced for the purpose of, and marketed for, circumventing a technological measure that effectively controls access to copyrighted sound recordings on YouTube, including copyrighted sound recordings owned by our members.
If that were true, this would mean that a) ytdl is now capable of processing DRM’d streams (is it?) and b) this was its primary purpose. a) would be a great contribution to all of mankind but even if it were the case, claim b) remains just as absurd. ytdl was around before there even was a something like EME [0] so the claim it was designing primarily to “circumvent” it is completely baseless.
a) ytdl is now capable of processing DRM’d streams (is it?)
Well... not really. In these sort of legal decisions they usually decide that any token effort to protect the stream "effectively controls access", even if it's ROT13 with a hardcoded key. Basically, rather than having to put real technical skill into the problem the MPAA just lobbied themselves a law that said they can fuck up their copy protection as badly as they want and just sue anyone who works around it.
The takedown notice actually refers to YouTube's "rolling cipher" technology, which is as far as I could see from the web player, not an actual content encryption cipher but simply a time-limited key the player needs to refresh in regular intervals to access the CDN servers. So it's more like the good ol' CSS encryption on DVDs: not really something that stops anyone from accessing or decoding the content, but enough to pass the term "technological measure" in most copyright laws, enabling the content industry to DMCA the hell out of anyone reimplementing the key exchange on their own. YouTube added this new "measure" about three months ago, possibly due to pressure from the RIAA.
I would like to add that the message of that commit is "Create initial preview version of the new youtube-dl". That suggests that there was an older version as well.
I mean... depends on how good your lawyer is, I think. If you ask me these laws are written pretty dumb with little technical understanding, so you can basically make them do whatever dumb shit that goes against any common sense you want as long as you can convince some judge who only knows how to use the internet when his interns print it out for him.
Don't know if you're joking, so no, obviously not. The relevant section specifies applications of code specifically designed to circumvent copyright protections.
The fact that someone could theoretically use it to download copyrighted content is meaningless, otherwise they could copyright strike torrent clients
Are you too young to remember when they shut down Napster, KaZaA, and LimeWire? They have and they won. Theoretically being able to use a piece of software to download copyrighted content is enough.
I think the only reason browsers get away with it is because normies know what a web browser is, and Google already has contracts with record agencies anyways
JDownloader is huge and unwieldy (300 MB, over 6000 files), it always takes a while to start and update, and it cannot be scripted from Python like youtube-dl
View all comments
Show parent comment
278
u/MotleyHatch Oct 23 '20
On the website, maybe. With the
gitcommand line tool, GitHub first asks me for a username/password (didn't use to before), then I get 403/Forbidden:Last pull was on Sept 28, so I'm somewhat out of date, but not too much.