Live data from Hacker News

Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

github.com

31–40 of 49 posts

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#32
post #5

YouTube-dl demolishes 100 pain points of using the modern web This wrapper gets rid of the only pain point in using YouTube-dl which was having to google every time you wanted just the audio. Great work

Off the top of my head, isnt that just the -x flag?

I also use --audio-quality 0 because it can be between 0 (best) and 9 (worst) and the default is 5.

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#33
post #16
post #10

Earlier quoted context omitted.

I have a file under ~/bin called youtube-mp3 which has this one-liner: exec $HOME/d/youtube-dl/youtube-dl -t -x --audio-format=mp3 "$@" (Edit: I'm sure this script does a lot more, but making ytdl download only the audio is fairly simple. Note the above command converts the file to mp3 which some people may not want to do because it's lossy.)

What is -t?

It (used to) cause youtube-dl to name downloaded videos after the title. Apparently it was needed in older versions of youtube-dl but is now ignored.

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#35
post #15

Cannot understand what exactly is that. I have used a simple alias called (unsurprisingly) yt-audio for years, which is youtube-dl with appropriate flags (-x, --audio-quality, --download-archive, -o, etc.), and this seems to be exactly that, only written in python for some reason.

For the record, if you only use youtube-dl for the purposes of downloading audio (like me), then you can keep a config file in $HOME/.config/youtube-dl/config with default arguments so you don't have to look them up each time. For example, here's a sample from my config:

    # extract audio only
    -x
    # stick to mp3
    --audio-format mp3
    # get rid of the annoying URL stuff at the end
    -o "%(title)s.%(ext)s"

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#36
post #25

Earlier quoted context omitted.

How does simply opening a website bind you to any contract?

It isn't backed by the force of the US judicial system, but when YouTube says a person's Google account will be banned for commercial usage, I trust them.

YouTube (and youtube-dl) does not require you to be logged in.

And anyway I don't see how downloading a video is "commercial usage".

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#37
post #26

Anyone else write a a lot of ripper scripts like youtube-dl but never share them for fear of starting an arms race with the content provider? It's easy to rip most .ts/XHR video streams with a bash loop.

youtube-dl supports a _lot_ of providers/sites[1]. Perhaps it's easier to contribute a new downloader (it's pretty simple[2]), and judging by the number of updates required most sites don't care that much. 1. https://github.com/ytdl-org/youtube-dl/tree/master/youtube_d... 2. https://github.com/ytdl-org/youtube-dl/blob/master/youtube_d...

[deleted]

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#38

Anyone else write a a lot of ripper scripts like youtube-dl but never share them for fear of starting an arms race with the content provider? It's easy to rip most .ts/XHR video streams with a bash loop.

Yes :( I even removed mine from github after reading about people losing their gmail over unrelated google account problems.

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#39

Anyone else write a a lot of ripper scripts like youtube-dl but never share them for fear of starting an arms race with the content provider? It's easy to rip most .ts/XHR video streams with a bash loop.

Precisely why I never shared any of the backend code for ss-plex.
Post reply on HN