Live data from Hacker News

Show HN: YouTube-DL GUI Powered by Electron

github.com

21–30 of 142 posts

Re: Show HN: YouTube-DL GUI Powered by Electron

#21

Skimming the code I see main.js hasn’t got a single semicolon. If you want to invite others to contribute, you may consider adopting a more widely employed js code-style. This seems to be written in a very personal, opinionated and unconventional way.

Might as well die on the hill of tabs vs spaces or single-quotes vs double-quotes or trailing commas or space after function name.

More useful advice would be: use Prettier and ship a .prettierrc so people can trivially transform their contributions into code consistent with the rest of the project.

Re: Show HN: YouTube-DL GUI Powered by Electron

#22
Looks really interesting, thank you for sharing!

How does it compare to jDownloader (jdownloader.org)?

It can analyze the clipboard - when I paste a YT link it asks me if I only want the video or the whole playlist.

I can choose from formats and I can choose to only download audio if I'm not interested in the video or want to save some space.

It has a reconnect feature for the router to reset to get a new IP and much more really cool things.

Re: Show HN: YouTube-DL GUI Powered by Electron

#23
post #8

Suggestion to author: allow pasting and downloading more than one link at a time, and selecting audio/video + desired formats. Suggestion to everyone else: learn the CLI. Then you can do things like me last night. My wife collected a list of classical music videos she wants to play to our kid, and all I did was: youtube-dl -x --audio-format "mp3" --audio-quality 0 -o "%(title)s.%(ext)s" -a music.txt to get the whole…

You can even do fun things like transcode a stream into a format that omxplayer can handle and render a video straight onto a Raspberry Pi without having to download it (and without X11)

'omxplayer' '--blank' '--aspect-mode' 'stretch' https://www.youtube.com/watch?v=MKNYsKwM6HI')

Re: Show HN: YouTube-DL GUI Powered by Electron

#24
post #6

Side note: as a daily user, youtube-dl is such a fantastic piece of software. It's one of those tools which, once you have it, you wonder how you lived before.

Agreed! But sometimes going to the CLI everytime is annoying which is in part why I wanted to build a GUI for it :)

I just added it to keybindings in qutebrowser.

Re: Show HN: YouTube-DL GUI Powered by Electron

#25
post #9

For me I think the best UI for YT-DL would be in the context menu in Firefox. This is where I am most often when I see stuff I want to use it on and while I always already have a terminal window open, it would be nice not to have to switch windows. I already have a few different configs and aliases for getting stuff in the forms I really want. All I need is an even easier way to pass the URL in and trigger the downlo…

hmm for elinks i use a script i made.

xterm -e yourube-dl --restrict-filename -o "~/downloads/%(title)s.%(ext)s" -f "best[heightthe height means no bigger than 1080 but if 1080 does not exist go to the next best down. i have a virtual desktop(tiling manager) that my downloads download at visually like wget youtube-dl and thats why i use xterm -e keeps them out of the way and trying to draw ontop elinks. the terminal automatically closes when done.

Re: Show HN: YouTube-DL GUI Powered by Electron

#26
I use youtube-dl regularly, through mpv. What I'd really like, is a minimal youtube search, in-terminal or a minimal gui. Then I wouldn't need a browser to use youtube at all; I dislike having to rev up a 1000mb browser just to find a video and copy its address.

Actually, now that I think about it, I can't remember if I've tried a text browser, might be bearable, though images of videos are sometimes helpful.

Re: Show HN: YouTube-DL GUI Powered by Electron

#27
post #8

Suggestion to author: allow pasting and downloading more than one link at a time, and selecting audio/video + desired formats. Suggestion to everyone else: learn the CLI. Then you can do things like me last night. My wife collected a list of classical music videos she wants to play to our kid, and all I did was: youtube-dl -x --audio-format "mp3" --audio-quality 0 -o "%(title)s.%(ext)s" -a music.txt to get the whole…

First thought on this project: hey, why electron yt-dl works perfectly from the command line, I type the programm, paste the url. Second thought: might be nice for selecting from the myriad of options. Well...

Re: Show HN: YouTube-DL GUI Powered by Electron

#28
post #16
post #9

For me I think the best UI for YT-DL would be in the context menu in Firefox. This is where I am most often when I see stuff I want to use it on and while I always already have a terminal window open, it would be nice not to have to switch windows. I already have a few different configs and aliases for getting stuff in the forms I really want. All I need is an even easier way to pass the URL in and trigger the downlo…

Most solutions I've seen to this require some kind of external daemon to be running that takes care of launching ytdl for you (since most web browsers don't allow extensions to run arbitrary commands.) Firefox _does_ have support for running this daemon-like-thing for you using Native messaging[0] though. youtube-dl-firefox-addon[1] seems to employ this, so perhaps give that one a try? [0] https://developer.mozilla.o…

Hey wow! This is exactly the info I needed and it's for the platform I use.

Thanks!

Re: Show HN: YouTube-DL GUI Powered by Electron

#29
post #8

Suggestion to author: allow pasting and downloading more than one link at a time, and selecting audio/video + desired formats. Suggestion to everyone else: learn the CLI. Then you can do things like me last night. My wife collected a list of classical music videos she wants to play to our kid, and all I did was: youtube-dl -x --audio-format "mp3" --audio-quality 0 -o "%(title)s.%(ext)s" -a music.txt to get the whole…

I wish the installation was easier. It is reasonable to explain someone to write "youtube-dl -x " to download music from youtube...

But having them installing ffmpeg and python, manually copying some exe to a safe place, and adding that as a enviroment variable really cuts the interest off.

Re: Show HN: YouTube-DL GUI Powered by Electron

#30
post #14

Earlier quoted context omitted.

Yup. Me too! Did someone make something like this? The alternative I'm considering is a script for my WM that essentially does "CTRL+L, delay 500ms, CTRL+C, append to a rolling 'to yt-download' list file".

I'm always weary about having timers in a script, because it often turns out to not be the correct amount. What about something like: - bookmark url in a specific "YouTube-dl" folder - watch tht folder from a daemon - when the folder changes, do the stuff automatically I'm sure there's a way to read bookmarks from outside the browser ?

I don't like timers either, but that seems to me the most direct way of exfiltrating the URL of the tab I'm currently looking at. Unfortunately, browsers aren't exactly interoperable.

Bookmarks don't seem that easy to exfil either. Firefox for instance (just checked) stores bookmarks, along with browsing and download history, in an sqlite database, that it keeps locked, so sqlite3 won't read from it. Maybe there's a way to force-read that database, but I haven't figured it out yet.

Here's an alternative idea I might actually go for: a systemd service[0] on my NAS in my home LAN that accepts links over the net and feeds them to youtube-dl. It could maintain a database of links already downloaded to avoid unnecessary redownloads. Then I could use an extension to simply send requests to an URL in my LAN.

My perfect UI would actually have this integrated with the Like button on YouTube. Click Like, it schedules a download. This is because there's plenty of videos that I wanted to get back to after few years, only to discover them gone (account banned, video removed, copyright bullshit, etc.).

--

[0] - Or something. There must be something in systemd that can be used to listen on a port, feed requests from it to a script, and reply with the output?

Post reply on HN