Youtube-dl Drag&Drop Download?

Need help with C, C++, perl, python, etc?

Youtube-dl Drag&Drop Download?

Postby bester69 » 2018-05-17 09:16

Hi,
I would like to be able to drag&drop url with mouse to a desktop script and this way start a youtube's download. The point, is I dont know how to pass URL dragged from mouse to script bash.
I can do it, by copying url, and then invoking script, but I would prefer to start the downlading by dragging the mouse's pointer into the script.

Until now, Ive got this Solution (copying url and then invoking script):
URI=$(xclip -o) # Get URL from clipboard
xterm -e youtube-dl -f best -i $URI


Can you Help me and show how to get URL by dragging it into script???,

Thanks a lot
:roll:
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1210
Joined: 2015-04-02 13:15

Re: Youtube-dl Drag&Drop Download?

Postby debiman » 2018-05-26 08:42

only if both browser and terminal emulator support it; no scripting should be required then.
User avatar
debiman
 
Posts: 3027
Joined: 2013-03-12 07:18


Return to Programming

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable