Ytdl-webserver: Webserver for downloading YouTube videos

  • I 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://play.google.com/store/apps/details?id=com.termux

  • It'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

    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)

  • In 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?

  • The more tools built around youtube-dl to make it usable by your grandma, the more likely it gets shut down, like Popcorn Time.

  • I 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.

  • Actually 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/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_d...

  • Just 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

    2: https://github.com/daohoangson/android-ydls

  • Is 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)

  • Meh; nodejs that uses youtube-dl frontend? why can't I just use youtube-dl?

  • I made the same thing for command line: https://github.com/kissgyorgy/interactive-youtube-dl

  • built 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

  • Does this download to the client or server? The latter would be useful on a NAS / Plex box.

  • Is downloading youtube videos legal?

  • -deleted link- may be a DMCA violation