Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Youtube-dl Drag&Drop Download?

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Youtube-dl Drag&Drop Download?

#1 Post by bester69 »

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:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Youtube-dl Drag&Drop Download?

#2 Post by debiman »

only if both browser and terminal emulator support it; no scripting should be required then.

Post Reply