News for hackers. Stuff that matters.
Re:YouTube-dl has received a DMCA takedown from RIAA by jordigh on Friday October 23, 2020 @03:44PM (#24873123)
I'm very scared by this. youtube-dl needs somewhat frequent updates as Google moves the youtube codebase around. I'm worried that the RIAA's next move, now that it's starting to get inconvenient to get youtube-dl, will be to make Youtube change in some way to make existing copies of youtube-dl no longer work.

youtube-dl has been my primary way of getting videos since I learned about it. If the RIAA manages to kill it, my ability to partake in culture will be severely limited.

Re:YouTube-dl has received a DMCA takedown from RIAA by Drdrdrq on Friday October 23, 2020 @05:10PM (#24874208)
I think you have it backwards. Google is very much on the same side as RIAA in this case. Youtube-dl is simply too convenient for avoiding the ads.
Re:YouTube-dl has received a DMCA takedown from RIAA by iameli on Friday October 23, 2020 @06:13PM (#24874846)
I dunno. Every Youtuber I know makes use of Youtube-dl (or related projects) extensively because many of them don't maintain archives of their own content and Youtube's built-in tools for downloading stuff back from them are terrible.
Re:YouTube-dl has received a DMCA takedown from RIAA by tracerbulletx on Friday October 23, 2020 @06:25PM (#24874959)
All the better for Youtube to control their content creators more.
Re:YouTube-dl has received a DMCA takedown from RIAA by intricatedetail on Friday October 23, 2020 @06:37PM (#24875063)
You do subject request under GDPR and they have to give you all your data.
Re:YouTube-dl has received a DMCA takedown from RIAA by iameli on Friday October 23, 2020 @07:42PM (#24875595)
I doubt that includes every transcoded rendition of every one of your videos. And I don't think they probably store source videos in the original format in most cases? Hard to say for sure.
Re:YouTube-dl has received a DMCA takedown from RIAA by gundmc on Saturday October 24, 2020 @01:12AM (#24877112)
Youtube used to store original files without even checking that it was a video. This allowed some enterprising individuals to create a YouTube file system. I'm sure that has changed by now.
Re:YouTube-dl has received a DMCA takedown from RIAA by jlokier on Saturday October 24, 2020 @10:38AM (#24879448)
Under GDPR I believe they only have to give you "Personally Identifiable Information" (PII), aka "any piece of information that relates to an identifiable person".

It seems likely that some YouTube content does not fall under that category.

Re:YouTube-dl has received a DMCA takedown from RIAA by jdashg on Friday October 23, 2020 @05:14PM (#24874251)
Does your ad blocker not already remove the ads?
Re:YouTube-dl has received a DMCA takedown from RIAA by _jjkk on Friday October 23, 2020 @09:55PM (#24876282)
If google et al. could spin a legal case against adblockers, they would. The strategy here is just to use the legal bludgeon whenever it's possible.
Re:YouTube-dl has received a DMCA takedown from RIAA by pipythonmc on Saturday October 24, 2020 @12:31AM (#24876951)
uBlock Origin blocks youtube ads and is still on the chrome web store. Is it really that hard for google to take it down?
Re:YouTube-dl has received a DMCA takedown from RIAA by _jjkk on Saturday October 24, 2020 @01:50AM (#24877252)
IMO there's a risk of upsetting the Chrome monopoly and driving users away if they do it in such a heavy handed way.

Also, they would either have to completely neuter their Extensions, or else constantly battle people submitting new adblockers in the same spirit as uBlock.

But if every browser slowly adopts Chromium engine (the worrying trend), then they can make a move against adblockers and competing browsers would have to scramble to remake a competing browser engine to do anything about it.

Re:YouTube-dl has received a DMCA takedown from RIAA by Drdrdrq on Saturday October 24, 2020 @04:30PM (#24881756)
It won't be able to once Youtube embeds ads in the videos (which is step 2).
Re:YouTube-dl has received a DMCA takedown from RIAA by crazygringo on Friday October 23, 2020 @04:07PM (#24873441)
I'm actually curious, when you run "youtube-dl --update" where does it update from? What domain?

Trying it now results in:

  ERROR: can't find the current version. Please try again later.
I'm unclear if it had always updated itself from GitHub or elsewhere.
Re:YouTube-dl has received a DMCA takedown from RIAA by oefrha on Friday October 23, 2020 @04:15PM (#24873543)

  $ rg 'UPDATE_URL|VERSION_URL'
  youtube_dl/update.py
  35:    UPDATE_URL = 'https://yt-dl.org/update/'
  36:    VERSION_URL = UPDATE_URL + 'LATEST_VERSION'
  37:    JSON_URL = UPDATE_URL + 'versions.json'
  46:        newversion =  opener.open(VERSION_URL).read().decode('utf-8').strip()

  $ curl -IL https://yt-dl.org/update/LATEST_VERSION
  HTTP/1.1 302 Found
  Date: Fri, 23 Oct 2020 20:15:04 GMT
  Server: Apache/2.2.15 (CentOS)
  Location: https://ytdl-org.github.io/youtube-dl/update/LATEST_VERSION
  Connection: close
  Content-Type: text/html; charset=iso-8859-1

  HTTP/2 404
  content-type: text/html; charset=utf-8
  server: GitHub.com
  etag: "5f777b31-239b"
  content-security-policy: default-src 'none'; style-src 'unsafe-inline'; img-src data:; connect-src 'self'
  x-github-request-id: 170E:2B71:1A0B5DC:1B8177E:5F933973
  accept-ranges: bytes
  date: Fri, 23 Oct 2020 20:15:04 GMT
  via: 1.1 varnish
  age: 85
  x-served-by: cache-hnd18722-HND
  x-cache: HIT
  x-cache-hits: 1
  x-timer: S1603484104.479172,VS0,VE0
  vary: Accept-Encoding
  x-fastly-request-id: a7128dab84232184052e51f07eb6263f5c88ab7e
  content-length: 9115
Re:YouTube-dl has received a DMCA takedown from RIAA by crazygringo on Friday October 23, 2020 @04:32PM (#24873764)
Thank you!

Well at least if they can hold onto their domain, and then host development somewhere, they'll maintain the ability to redirect updates to a new location without people having to manually reinstall.

Re:YouTube-dl has received a DMCA takedown from RIAA by ss64 on Friday October 23, 2020 @06:33PM (#24875032)
Re:YouTube-dl has received a DMCA takedown from RIAA by Macha on Friday October 23, 2020 @07:19PM (#24875423)
Right, but the client is loading "https://yt-dl.org", which currently does a 302 to https://ytdl-org.github.io but could be updated to point elsewhere even if github is uncooperative.
Re:YouTube-dl has received a DMCA takedown from RIAA by junon on Friday October 23, 2020 @06:50PM (#24875185)
What is `rg`? I like its output better than grep's.
Re:YouTube-dl has received a DMCA takedown from RIAA by ivanche on Friday October 23, 2020 @07:17PM (#24875409)
Re:YouTube-dl has received a DMCA takedown from RIAA by petdance on Monday October 26, 2020 @03:59PM (#24900641)
It's one of a number of greplike tools out there. Here's a comparison chart:

https://beyondgrep.com/feature-comparison/

If you're looking for other alternative shell tools, take a look at https://altbox.dev/

Re:YouTube-dl has received a DMCA takedown from RIAA by stalled on Friday October 23, 2020 @07:07PM (#24875333)
Re:YouTube-dl has received a DMCA takedown from RIAA by Asooka on Friday October 23, 2020 @07:24PM (#24875467)
ripgrep. It's a bit faster and automatically ignores files in .gitignore etc. Very handy.
Re:YouTube-dl has received a DMCA takedown from RIAA by akalsz on Friday October 23, 2020 @07:18PM (#24875419)
Re:YouTube-dl has received a DMCA takedown from RIAA by backspace_ on Friday October 23, 2020 @08:29PM (#24875854)
Thank you
Re:YouTube-dl has received a DMCA takedown from RIAA by aeyes on Friday October 23, 2020 @05:27PM (#24874387)
To restore your ability to partake in culture, you can use JDownloader.

It is universal and can download from almost any media site.

Re:YouTube-dl has received a DMCA takedown from RIAA by Wowfunhappy on Friday October 23, 2020 @06:40PM (#24875095)
Can it download from Youtube over the command line?
Re:YouTube-dl has received a DMCA takedown from RIAA by aeyes on Friday October 23, 2020 @08:13PM (#24875753)
No, it's a GUI tool. Afaik you can also run it as a daemon with a web interface.
Re:YouTube-dl has received a DMCA takedown from RIAA by glenneroo on Saturday October 24, 2020 @12:39PM (#24880255)
jdownloader.org or .com? The former throws a FILE_NOT_FOUND exception for the Windows version and can't access the SVN, the latter looks a bit sketchy and has no code available, not that it's a prerequisite, just figured HNers would offer up the open-source version first ;)
Re:YouTube-dl has received a DMCA takedown from RIAA by aeyes on Tuesday October 27, 2020 @02:55PM (#24910587)
jdownloader.org

It's open source but they use SVN so you need an SVN client to actually see the code because they have no browsable repo tool.

You can find some mirrors of the code on GitHub, for example: https://github.com/mirror/jdownloader

Re:YouTube-dl has received a DMCA takedown from RIAA by glenneroo on Tuesday October 27, 2020 @03:54PM (#24911114)
Cheers! For anyone else looking for the Windows build, here is the link to jDownloader2 builds (which I was only able to find via the forums): https://jdownloader.org/jdownloader2
Re:YouTube-dl has received a DMCA takedown from RIAA by nsgi on Friday October 23, 2020 @04:32PM (#24873759)
Do you have some sort of RMS-style setup? If so, I'm curious about your reasons for that and why mainstream browsers aren't an option for you
Re:YouTube-dl has received a DMCA takedown from RIAA by agency on Friday October 23, 2020 @04:38PM (#24873843)
Not the OP but I’m a heavy youtube-dl user. I live in a rural area where my only internet option is satellite (HughesNet) which is basically unusable for any kind of streaming media. I rent an office in town to do software work and use youtube-dl to download videos for later viewing at home.
Re:YouTube-dl has received a DMCA takedown from RIAA by falsaberN1 on Friday October 23, 2020 @04:51PM (#24874010)
This is similar to my use case as well. I just cannot watch a video from Youtube itself, the connection would be lost so many times it'd stop trying after 1% or less. The only solution is to painfully and slowly download it to my system, over time, and hope there aren't cases that destroy the 60% you downloaded over the last 2 days.

If nothing happens to replace or reinstate youtube-dl, a lot of people like you and me are simply cut off from video content. This is pretty much terrible.

Re:YouTube-dl has received a DMCA takedown from RIAA by wilsonnb3 on Friday October 23, 2020 @08:35PM (#24875882)
Or you guys can just pay for a youtube premium subscription, which lets you download videos to view offline
Re:YouTube-dl has received a DMCA takedown from RIAA by pmoriarty on Friday October 23, 2020 @08:00PM (#24875699)
Compared to youtube-dl and an offline media player like mpv, youtube's web interface is absolute garbage for consuming content. The only thing it's half-good for is discovery because it shows thumbnails of the videos and links to related videos.

Useful things that I can't do on through youtube's web interface:

1 - archive videos (so many videos have been taken down and would be lost forever to me had I not had an offline archive of them)

2 - quickly play through a ton of videos on demand, offline, without waiting to load the video (and the ads) -- skimming through dozens of offline videos takes seconds, but I'd have to stare at my browser loading forever to accomplish the same thing through a web browser

3 - make use of many useful features of powerful media players like mpv... just yesterday I needed to invert the colors on a screencast because I was watching it at night and the video's white window background was blinding me.. I could do this instantly in mpv, but absolutely impossible on youtube

4 - remix the video or otherwise alter it to my needs using powerful offline video editors.. youtube's offerings here are again a sad joke in comparison (as are most web tools compared to offline tools)

5 - not have to sit through a single stinking ad

If youtube could have just offered simple download links for their videos this would not be a problem.

But, no, they need you to be glued to their website and bound hand and foot to their service for as many hours of the day as they can bleed out of you.

Re:YouTube-dl has received a DMCA takedown from RIAA by jlokier on Saturday October 24, 2020 @10:43AM (#24879485)
I'd like to add the one that bothers me most:

6 - listen to public talks, presentations and soundscapes while doing something else with my mobile device, or letting the screen sleep in my pocket. YouTube requires the video to be on-screen or it stops playing, which makes it completely useless for listening to things. Other video sites are much better for this.

(I don't need advice on how to get around this thanks, I already know how to. But that's another of YouTube's crappy standard behaviours.)

Re:YouTube-dl has received a DMCA takedown from RIAA by nsgi on Saturday October 24, 2020 @11:23AM (#24879737)
You have a point to some extent, it could be valuable to offer download buttons on a lot of videos. However, YouTube is only as valuable as the content it serves, and the content creators are the ones putting ads in their videos and who would be unhappy if there were download buttons on everything
Re:YouTube-dl has received a DMCA takedown from RIAA by pmoriarty on Saturday October 24, 2020 @11:44AM (#24879868)
I'm a content creator myself, and I'd rather my content be available 110% ad-free
Re:YouTube-dl has received a DMCA takedown from RIAA by pengaru on Friday October 23, 2020 @04:36PM (#24873818)
Not OP, but I personally use youtube-dl to retrieve videos on a remote server accessed via ssh, which then get downloaded slowly over a low bandwidth link for offline viewing at a later time. They may or may not get reencoded using the ffmpeg integration before retrieving as well.

YouTube's web interface is basically useless for me on a slow link, not to mention it's incredibly obnoxious with all its recommendations and other unmanagable propaganda delivery.

Youtube-dl's ability to retrieve titles and descriptions without showing me anything else and before retrieving any video content alone make youtube's opaque hashed URLs usable for me.

Re:YouTube-dl has received a DMCA takedown from RIAA by _whiteCaps_ on Friday October 23, 2020 @04:59PM (#24874104)
> YouTube's web interface is basically useless for me on a slow link

I've never used youtube-dl. How do you find the videos to download?

Re:YouTube-dl has received a DMCA takedown from RIAA by pengaru on Friday October 23, 2020 @05:13PM (#24874238)
Youtube links are shared everywhere, including here on HN.

I also have a small collection of youtube channels bookmarked at their /videos URL, which at least doesn't try play any video and just gives a grid of thumbnails. Occasionally I'll visit those to discover new videos from the creators I'm interested in.

This already consumes more time watching youtube content than I care to admit.

Re:YouTube-dl has received a DMCA takedown from RIAA by kzrdude on Saturday October 24, 2020 @04:06AM (#24877700)
You could look into newpipe, an alternate youtube player for Android. Or look at RSS feeds for the channels you want to follow.
Re:YouTube-dl has received a DMCA takedown from RIAA by gkya on Friday October 23, 2020 @10:36PM (#24876479)
On top of what others said, I also like youtube-dl + mpv because it consumes a fraction of the memory Firefox + one YT tab consumes. My main browser is Qutebrowser where I don't login to Google stuff, for which I use a Firefox profile. So when I'm watching something long like a lecture from any of my playlists, I download it first, quit Firefox, and watch with mpv. If I watch on FF on a large screen the computer starts swapping and I have to go kill some apps.
Re:YouTube-dl has received a DMCA takedown from RIAA by barrkel on Friday October 23, 2020 @08:12PM (#24875746)
When I had high packet loss wireless internet, downloading videos was effectively the only way to watch them. Browsers don't buffer a whole video worth.
Re:YouTube-dl has received a DMCA takedown from RIAA by elorant on Friday October 23, 2020 @05:22PM (#24874336)
Comments like this in here seem out of place. We're a community of hackers. Just read the source and figure out how it downloads the videos. Next time YT changes something it'd probably be some query string in the url. It's not rocket science to download stuff from video sites.
Re:YouTube-dl has received a DMCA takedown from RIAA by pmoriarty on Friday October 23, 2020 @08:03PM (#24875711)
Not only do you have to figure out the URLs from the source, but you have to assemble all the parts.

Youtube's website changes all the time, too, so you'll have to constantly re-read the source and adapt your downloader to it (essentially what youtube-dl does).

It may not be rocket science, but it's not trivial either, and not every developer on HN is a web developer or has any interest (or time) to become one.