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

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
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
Posts: 1734
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
Posts: 3064
Joined: 2013-03-12 07:18

Return to Programming

Who is online

Users browsing this forum: No registered users and 4 guests