media-roller icon indicating copy to clipboard operation
media-roller copied to clipboard

Add proxy argument

Open itsNikolay opened this issue 1 year ago • 4 comments

Could you add --proxy URL argument to yt-dlp command ? Probably it can be specified via ENV variable PROXY_URL Its reference is here: https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#network-options

Thanks four your amazing work! ❤️

itsNikolay avatar Dec 01 '24 14:12 itsNikolay

Also it would be nice to have ability to pass remain arguments

itsNikolay avatar Dec 01 '24 15:12 itsNikolay

you can now set the MR_PROXY environment variable.

I'll try to come up with something so that all arguments can be passed. Thanks for the suggestion!

rroller avatar Dec 01 '24 17:12 rroller

Made an update. You can now either set the MR_PROXY environment variable or set the arguments in the request URL. For example ?url=example.com&--proxy=foo. You can now supply any argument in the URL and it'll be passed down to yt-dlp

rroller avatar Dec 01 '24 21:12 rroller

This is fine for the API endpoint, but outside of editing the URL manually for the main UI, I'll eventually need to add a UI component to set the arguments

rroller avatar Dec 01 '24 22:12 rroller