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:<p>```
#!/bin/bash<p>pip install --upgrade youtube-dl
cd storage/movies
youtube-dl "${1}"
```<p>Works a treat!<p>[1] Termux (Terminal emulator with packages) - <a href="https://f-droid.org/app/com.termux" rel="nofollow">https://f-droid.org/app/com.termux</a>, <a href="https://play.google.com/store/apps/details?id=com.termux" rel="nofollow">https://play.google.com/store/apps/details?id=com.termux</a>
It's not as slickly packaged, but I made a webserver that turns YouTube channels into proper RSS subscribe-able audio podcasts:<p><a href="https://github.com/frou/yt2pod" rel="nofollow">https://github.com/frou/yt2pod</a><p>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.<p>(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.<p>How is this handled here? Is periodically kill / restart the container enough?
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.<p>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: <a href="https://www.icloud.com/shortcuts/48d3103eafc04c7098094794e0638ef7" rel="nofollow">https://www.icloud.com/shortcuts/48d3103eafc04c7098094794e06...</a>
Add a convert media step if you want audio.
I think I got it from this reddit thread: <a href="https://www.reddit.com/r/workflow/comments/2p0vga/workflow_download_youtube_videos/" rel="nofollow">https://www.reddit.com/r/workflow/comments/2p0vga/workflow_d...</a>
Just yesterday I built an Android app to cast audio-only (ogg format) from YouTube to Chromecast. Had to do it because:<p>1. Baby needs her white noise to sleep<p>2. No other sites have those "8 hours womb sounds" as good as YouTube<p>3. The YouTube app refuses to cast to Google Home mini<p>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.<p>1: <a href="https://github.com/wader/ydls" rel="nofollow">https://github.com/wader/ydls</a><p>2: <a href="https://github.com/daohoangson/android-ydls" rel="nofollow">https://github.com/daohoangson/android-ydls</a>
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)
I made the same thing for command line: <a href="https://github.com/kissgyorgy/interactive-youtube-dl" rel="nofollow">https://github.com/kissgyorgy/interactive-youtube-dl</a>
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