Lurker News

Comments (1,443) 261 threads

Show all comments

Showing thread 8 of 261

jordigh6 replies#
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.

crazygringo1 reply#
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.
oefrha2 replies#

  $ 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
crazygringo2 replies#
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.

Continue this thread — 2 replies

junon4 replies#
What is `rg`? I like its output better than grep's.

Continue this thread — 4 replies

nsgi5 replies#
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
pengaru1 reply#
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.

_whiteCaps_2 replies#
> 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?

Continue this thread — 2 replies

agency1 reply#
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.
falsaberN11 reply#
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.

Continue this thread — 1 reply

pmoriarty2 replies#
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.

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

nsgi1 reply#
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

Continue this thread — 1 reply

barrkel#
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.
gkya#
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.
Drdrdrq2 replies#
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.
jdashg2 replies#
Does your ad blocker not already remove the ads?
_jjkk2 replies#
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.

Continue this thread — 2 replies

Drdrdrq#
It won't be able to once Youtube embeds ads in the videos (which is step 2).
iameli2 replies#
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.
tracerbulletx#
All the better for Youtube to control their content creators more.
intricatedetail3 replies#
You do subject request under GDPR and they have to give you all your data.

Continue this thread — 3 replies

elorant1 reply#
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.
pmoriarty#
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.

aeyes5 replies#
To restore your ability to partake in culture, you can use JDownloader.

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

Continue this thread — 5 replies

Continue this thread — 1 more reply