Live data from Hacker News

Ytdl-webserver: Webserver for downloading YouTube videos

github.com

21–30 of 71 posts

Re: Ytdl-webserver: Webserver for downloading YouTube videos

#21

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=…

That's my workflow too, works well for many websites.

To watch I use NewPipe instead of the official YouTube client.

Re: Ytdl-webserver: Webserver for downloading YouTube videos

#22

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=…

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

Re: Ytdl-webserver: Webserver for downloading YouTube videos

#24

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=…

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

This is great! Does it also support play background music that you download as a .m4a ?

Re: Ytdl-webserver: Webserver for downloading YouTube videos

#25
post #15

Earlier quoted context omitted.

Come 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._Unive... .

It'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-shi...

The UK is screwed.

Re: Ytdl-webserver: Webserver for downloading YouTube videos

#27

Is downloading youtube videos legal?

Despite all the comments pretending this is all super ok scrapers are obviously not aboveboard. Sites may try to place limits on you or your account but it is unlikely you will go to court over a TOS violation unless you're really abusive.

Re: Ytdl-webserver: Webserver for downloading YouTube videos

#28

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=…

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

you could pass a video url retrieved by youtube-dl to VLC instead of downloading the video.

Re: Ytdl-webserver: Webserver for downloading YouTube videos

#29

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=…

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

Anything you can share code wise, curious to learn more.

Re: Ytdl-webserver: Webserver for downloading YouTube videos

#30
post #19

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)

[deleted]
Post reply on HN