rroller / media-roller

A self hosted server to download videos from social media with an iOS shortcut for on-click saving to camera roll
72 stars 10 forks source link

Feature Request: Option to download MP3 #4

Open frakman1 opened 4 years ago

frakman1 commented 4 years ago

Adding the -x --audio-format mp3 option to youtube-dl downloads the MP3 file. Is there anyway you can integrate that feature please?

d8sychain commented 3 years ago

It should be doable. I bashed into the container and used the command: docker exec -it media-roller /bin/bash youtube-dl -x --audio-format mp3 -o "/download/%(title)s.%(ext)s" URL You can also: docker exec -it media-roller youtube-dl -x --audio-format mp3 -o "/download/%(title)s.%(ext)s" URL

Add an option button or a check box on the WebUI to add -x --audio-format mp3 to the command string passed to youtube-dl.

frakman1 commented 3 years ago

I switched to this project instead. It has this exact feature.

image

It also features multi-user support, subscriptions, multiple format selections. Also available on Unraid

rroller commented 3 years ago

Yes, youtubedl-material is more appropriate for your use case. This project (media-roller) is pretty much geared to be an API I can call from my iPhone to 1 tap download any video so I didn't put any effort into the UI. The UI was mainly around testing.

frakman1 commented 3 years ago

That's really cool. How are you using it with you iPhone? I'd like to use something like that. Mine is jailbroken.

rroller commented 3 years ago

@frakman1 I've documented it in the readme... https://github.com/rroller/media-roller/blob/master/README.md

Basically I run this service on my home network (and use a VPN to access it when I'm away)... I then used this shortcut to download videos for URLs that I have on my clipboard... https://www.icloud.com/shortcuts/2b9765fb5bf24509a4e83bc76c5c7409

So for example, I'll copy a YouTube URL and click the shortcut and it download the video to my camera roll.

frakman1 commented 3 years ago

That's so cool! I love that you used Shortcuts and Youtube and bent them to your will.haha Well done!