9 ms·
Ytdl-webserver: Webserver for downloading YouTube videos
- grezql 8y ago-deleted link- may be a DMCA violation
- stingraycharles 8y agoIn my experience, YouTube-dl needs to be updated quite frequently, as YouTube changes their design. How is this handled here? Is periodically kill / restart the container enough?
- s3m4j 8y agoIt's not been my experience, but it is changed often enough that if you don't use it often, then yes it might give that impression. https://github.com/rg3/youtube-dl/commits/master/youtube_dl/extractor/youtube.py https://github.com/rg3/youtube-dl/commits/master/youtube_dl/...
- markovbot 8y agoIt looks like they're installing youtube-dl via apt, from the Ubuntu 16.04 repos (which is what the docker image uses as a base), do even rebuilding wouldn't cut it. I wonder if this will even work out of the box, because YouTube changed something that required youtube-dl to fix a month or two ago.
- s3m4j 8y agoBut it isn't actually using that in the app, it's using the https://github.com/przemyslawpluta/node-youtube-dl https://github.com/przemyslawpluta/node-youtube-dl npm package.
- codetrotter 8y agoWhich in turn relies on the original youtube-dl.
- yorwba 8y agoThat's just a wrapper calling the youtube-dl binary indirectly: https://github.com/przemyslawpluta/node-youtube-dl/blob/master/lib/youtube-dl.js#L183 https://github.com/przemyslawpluta/node-youtube-dl/blob/mast...
- dkoeji89oe 8y agohttps://github.com/przemyslawpluta/node-youtube-dl/blob/master/lib/downloader.js https://github.com/przemyslawpluta/node-youtube-dl/blob/mast... except for those times it downloads a youtube-dl binary. https://github.com/przemyslawpluta/node-youtube-dl/blob/master/package.json#L23 https://github.com/przemyslawpluta/node-youtube-dl/blob/mast...
- s3m4j 8y agoWell. That's a mess, I should have read more.
- Spivak 8y agoSame as how most containers update, rebuild a new version push and deploy.
- vram22 8y agoI don't know if it applies to the web server, but for the command-line version of youtube-dl, it has a -U option that updates itself. One could create a batch file or shell script that runs that each time, before downloading a video, or do it manually once in a while. Like someone else said, I think the creator updates the app fairly often. Edit: I had written a post about youtube-dl describing its use a bit, and also a quick look at its code: youtube-dl, a YouTube downloader in Python: https://jugad2.blogspot.com/2013/03/youtube-dl-yourube-downloader-in-python.html https://jugad2.blogspot.com/2013/03/youtube-dl-yourube-downl... Also check out: pafy - Python API for YouTube: https://jugad2.blogspot.com/2014/06/pafy-python-api-for-youtube.html https://jugad2.blogspot.com/2014/06/pafy-python-api-for-yout... Edit 2: And this might be of use: How to download PyCon US 2013 videos for offline viewing using youtube-dl: https://jugad2.blogspot.com/2013/04/how-to-download-pycon-us-2013-videos.html https://jugad2.blogspot.com/2013/04/how-to-download-pycon-us...
- austinpray 8y agoI added a travis cron job to update the image daily: https://github.com/Algram/ytdl-webserver/pull/6 https://github.com/Algram/ytdl-webserver/pull/6 and another guy came around and made the image even more friendly for automatic updates https://github.com/Algram/ytdl-webserver/pull/7 https://github.com/Algram/ytdl-webserver/pull/7 So if you ever run into issues you would just pull the latest container.
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- hgasimov 8y agoIs downloading youtube videos legal?
- fapjacks 8y agoCome again? Are you implying that we do not have a Fair Use in storing a local recording of a video broadcast for personal use? https://en.wikipedia.org/wiki/Sony_Corp._of_America_v._Universal_City_Studios,_Inc https://en.wikipedia.org/wiki/Sony_Corp._of_America_v._Unive....
- Jaruzel 8y agoIt's not that clear-cut outside of the US. In the UK, it's only legal if it's for 'time-shifting' with the expectation the recording is only watched once and then deleted: https://www.gov.uk/guidance/exceptions-to-copyright#time-shifting https://www.gov.uk/guidance/exceptions-to-copyright#time-shi...
- aaaaaaaaaab 8y agoHow would you watch them without downloading?
- roywiggins 8y ago
- jimktrains2 8y agoI was just thinking the other day of writing a small utility to download a YouTube video and metadata, stuff the metadata in a database, and be able to have a local, searchable copy of videos and channels I'd like to have for a while -- I don't trust they'll be around forever. I was thinking it could be better if the utility would be more useful if it integrated with mythtv, but I might start as a standalone.
- deleted 8y ago[deleted]
- wongarsu 8y agoHaving a local, searchable version of some channels would be great, especially if it can be configured to download new videos automatically. Some channels are notorious for having videos deleted (e.g. commentary channels that have to fight with contentid or educational channels that have videos involving gunpowder or uranium). Manually backing them up and organizing the videos is very cumbersome.
- frou_dh 8y agoIt's not as slickly packaged, but I made a webserver that turns YouTube channels into proper RSS subscribe-able audio podcasts: https://github.com/frou/yt2pod https://github.com/frou/yt2pod If you find yourself often having your phone in your pocket with the screen blazing, just to be able to listen to YT content, you might like it. (it's on the todo list to Dockerize it)
- deleted 8y ago[deleted]
- ballenf 8y agoDid you know iOS podcasts supports video podcasts? Haven’t looked at your code but maybe wouldn’t be too much work to make video work too. I’ll talk a look. Thanks! I’ve thought that it would be a great way to avoid the algorithm addiction and only see my subs.
- frou_dh 8y agoThat's in fact already supported, but I didn't document it because I felt it muddied the pitch. https://github.com/frou/yt2pod/blob/31b55410c38dbf655b641eee2b1542797d268b10/watcher.go#L55 https://github.com/frou/yt2pod/blob/31b55410c38dbf655b641eee... Add this per-podcast in the config file: "vidya": true I hear you about not wanting to spend too much time in the circus.
- bklaasen 8y agoI use Android and have Termux[1] installed. If you create a shell script named '~/bin/termux-url-opener' and share URLs to Termux, it'll invoke that script. Here's the contents of mine: ``` #!/bin/bash pip install --upgrade youtube-dl cd storage/movies youtube-dl "${1}" ``` Works a treat! [1] Termux (Terminal emulator with packages) - https://f-droid.org/app/com.termux https://f-droid.org/app/com.termux, https://play.google.com/store/apps/details?id=com.termux https://play.google.com/store/apps/details?id=com.termux
- m-p-3 8y agoThat's my workflow too, works well for many websites. To watch I use NewPipe instead of the official YouTube client.
- Retr0spectrum 8y agoI find NewPipe's built-in downloading functionality more convenient - although it only works for YouTube videos of course.
- marmaduke 8y agoOn iOS I’ve installed Pythonista with Stash, pip installed YouTube-dL, set up a script to take a link and download it to mp4 and share it an app (usually VLC). This can be triggered from YouTube app by pressing Share, then Pythonista script then the custom script, wait for download then select VLC. It’s not great for big videos but was extremely satisfying to set up.
- Walkman 8y agoI made the same thing for command line: https://github.com/kissgyorgy/interactive-youtube-dl https://github.com/kissgyorgy/interactive-youtube-dl
- superasn 8y agoIs there a way to download Netflix videos too? My reason is I just can't watch anything at less than 1.5X speed nowadays and Netflix has no such option on mobile (there is a chrome extension though). Any ideas how to do either (dl or increase playback speed on mobile)
- severine 8y agoYou mean apart from the obvious?
- LMYahooTFY 8y ago...you can't watch anything at less than 1.5x? Is this something you've trained yourself to do...? Like deliberately?
- ficklepickle 8y agoThe downside of nootropics?
- yjftsjthsd-h 8y agoIt it's not uncommon to habitually listen to podcasts at that speed, and after a while you get used to it and everything else just sounds slow. Not exactly intentional, rather a side effect of something that made sense by itself.
- pishpash 8y agoThe more tools built around youtube-dl to make it usable by your grandma, the more likely it gets shut down, like Popcorn Time.
- damm 8y agoMeh; nodejs that uses youtube-dl frontend? why can't I just use youtube-dl?
- austinpray 8y agoFor instance if you run this on your desktop you could bookmark "http://local-desktop-ip:3000" http://local-desktop-ip:3000" on your mobile device and be able to download videos while on mobile.
- sondh 8y agoJust yesterday I built an Android app to cast audio-only (ogg format) from YouTube to Chromecast. Had to do it because: 1. Baby needs her white noise to sleep 2. No other sites have those "8 hours womb sounds" as good as YouTube 3. The YouTube app refuses to cast to Google Home mini Came across ydls[1] which uses youtube-dl and ffmpeg to download then transcode media on-the-fly. It's not very effective but works great! We no longer have to turn on the TV in our baby room. Check out the source code[2] if you are also a new parent. 1: https://github.com/wader/ydls https://github.com/wader/ydls 2: https://github.com/daohoangson/android-ydls https://github.com/daohoangson/android-ydls
- explainplease 8y agoSave the video's audio as a local file if you want to keep using it. Any YouTube video is bound to disappear without warning at any time.
- kekub 8y agoActually Apple provides a way to either download videos or audio directly on the device through Siri Shortcuts. The integration is great: Just open the share sheet in Safari or the YouTube app and run this shortcut: https://www.icloud.com/shortcuts/48d3103eafc04c7098094794e0638ef7 https://www.icloud.com/shortcuts/48d3103eafc04c7098094794e06... Add a convert media step if you want audio. I think I got it from this reddit thread: https://www.reddit.com/r/workflow/comments/2p0vga/workflow_download_youtube_videos/ https://www.reddit.com/r/workflow/comments/2p0vga/workflow_d...
- tlrobinson 8y agoDoes this download to the client or server? The latter would be useful on a NAS / Plex box.
- jnaina 8y agobuilt a simple MacOS Safari extension that sends the current url to my server, which then runs a simple script to download using youtube-dl. I then use my iPad to view the videos using the nPlayer which can read NFS shares. very useful for downloading and viewing videos from variety of "alternate" video sites