r/programming • • Oct 23 '20

[deleted by user]

[removed]

7.0k Upvotes

1.4k comments sorted by

View all comments

0

u/[deleted] Oct 23 '20

[deleted] — view deleted comment

278

u/MotleyHatch Oct 23 '20

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.

112

u/Holobrine Oct 24 '20

Please tell me there is another place to find this code, because I only just learned of its existence and I would hate it if I'm already too late.

201

u/SpaceshipOperations Oct 24 '20 edited Oct 26 '20

You can download the latest release source code from PyPI:

https://pypi.org/project/youtube_dl/#files

The latest master branch snapshot is also downloadable from the Internet Wayback Machine:

https://web.archive.org/web/20201018144703/https://github.com/ytdl-org/youtube-dl

(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:

pacman -Qlq youtube-dl \
    | grep -v '/$' \
    | rsync -av --mkpath --files-from=- / youtube-dl

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://www.archlinux.org/packages/community/any/youtube-dl/ (Click "Download from mirror" to the right)

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.)

https://packages.ubuntu.com/focal/youtube-dl (Same as Debian)

→ More replies (12)

168

u/[deleted] Oct 24 '20 edited Oct 24 '20

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.

128

u/darkslide3000 Oct 24 '20

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.

17

u/the_gnarts Oct 24 '20

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.

[0] The date on commit 4fa74b5.. is 2008.

14

u/darkslide3000 Oct 24 '20

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.

11

u/codav Oct 24 '20

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.

→ More replies (4)
→ More replies (48)

71

u/09f911029d7 Oct 24 '20 edited Oct 24 '20

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

→ More replies (16)
→ More replies (7)
→ More replies (4)
→ More replies (3)

366

u/well___duh Oct 23 '20 edited Oct 23 '20

I feel like code 451 should've been reserved for when the govt requests something be taken down, a-la Fahrenheit 451.

EDIT: I'm guessing none of you actually read the book to understand why I specifically said when the government requests a takedown.

245

u/northrupthebandgeek Oct 23 '20

Considering the RIAA (among others) has the US government by the balls, I'd say the status code is very much appropriate.

0

u/[deleted] Oct 23 '20

[deleted] — view deleted comment

66

u/iczero4 Oct 24 '20

They do a hilarious amount of lobbying. Remember SOPA/PIPA?

→ More replies (1)
→ More replies (4)

78

u/AnAge_OldProb Oct 24 '20

Umm that’s exactly why they choose 451 the code for “unavailable for legal reasons”, ie but the one entity that sets laws: government.

Acknowledgements

Thanks to Terence Eden, who observed that the existing status code 403 was not really suitable for this situation, and suggested the creation of a new status code.

Thanks also to Ray Bradbury.

https://tools.ietf.org/html/rfc7725#page-5 emphasis mine.

→ More replies (1)

32

u/AustinYQM Oct 24 '20 edited Jul 24 '24

grab continue deserted terrific somber saw fall fuel chubby plucky

This post was mass deleted and anonymized with Redact

→ More replies (1)

36

u/redwall_hp Oct 23 '20

Beatty goes on a whole spiel, in the middle of the book, about the burnings being a result of democracy. The masses don't like x of y, so you get rid of them, in a slow spiral down to "don't make me think."

It is the government doing the burnings, but it's not an authoritarian situation so much as tyranny of the majority.

→ More replies (1)

62

u/Nchi Oct 23 '20

"legal reasons" isnt close enough?

62

u/gurg2k1 Oct 23 '20

Yeah the government is the law so how are 'legal reasons' not related to government intervention?

→ More replies (8)
→ More replies (3)

87

u/icefall5 Oct 23 '20

I think that's getting a little too segmented. I appreciate that there's a status code for this purpose, but I don't think it makes sense to have one code for "unavailable for government-related legal reasons" and a separate code for "unavailable for non-government-related legal reasons".

38

u/one-joule Oct 24 '20

Just because a governmental entity is not a party to the case doesn't mean the government isn't involved. The legal system exists as a function of government. All "legal reasons" are government-related.

39

u/HorseRadish98 Oct 23 '20

Isn't that exactly what happened?

→ More replies (17)

6

u/KevinCarbonara Oct 24 '20

Why would it have to be the government? Have you even read the book?

→ More replies (12)
→ More replies (5)