Live data from Hacker News

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

github.com

21–30 of 49 posts

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

#21

youtube-dl is the only thing that makes the modern web actually usable. I ended up writing a bot that runs on a docker scheduled task and looks at trello. I can drop a youtube link on the board and it will grab the audio. Great for when I hear a song somewhere that I want to add to my phone later.

How are you managing this integration? IFTTT?

It's just python running in a docker container in a scheduled task on ECS once an hour. I built it to test the pattern for work.

I use a trello integration library, shell out for youtube-dl, run a normalizer on anything it pulls, boto3 the files to s3 and then call SNS to text me it's done. I pick the files up later.

When youtube-dl updates (which it does, regularly) I just redeploy as it's tagged for latest in the requirements file. I could add this update step to the container or pull a copy from s3 that I maintain, but I'm not a big fan of pulling in code at runtime.

Trello is acting as an SQS queue, RabbitMQ queue, or redis set. If something fails the code will dump the error text into the card and retry indefinitely till I fix it.

This entire setup costs me < $1 a month. I think my route53 domains cost more.

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

#24
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.

Can you share this? I've been meaning to do something very similar for the longest while and haven't got around to it.

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

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

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

#28
post #24
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.

Can you share this? I've been meaning to do something very similar for the longest while and haven't got around to it.

Just read the man page and make an alias? That's just lazy on your part

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

#29
post #25
post #23

OT but does ytdl violate YouTube's tos? I'd guess so as it skips the ads. Can it be used commercially, say?

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.

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

#30
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.

It adds a few more functionalities like setting up custom arguments, option to keep track of downloaded titles without archive file, and a few more. It just tries to make audio/playlist management easy. As mentioned, it is a youtube-dl wrapper. So under the hood it uses classic youtube-dl arguments.

Is there any reason these features couldn't be pushed upstream into youtube-dl proper?
Post reply on HN