http://youtube-dl.org/downloads/2013.06.33/youtube-dl
tutorial
- Код: Выделить всё
dono@Lonewolf stuff$ echo Download youtube-dl >> /dev/null
dono@Lonewolf stuff$ wget "http://youtube-dl.org/downloads/2013.06.33/youtube-dl"
--2013-06-25 16:37:07-- http://youtube-dl.org/downloads/2013.06.33/youtube-dl
Resolving youtube-dl.org (youtube-dl.org)... 95.143.172.170, 2001:1a50:11:0:5f:8f:acaa:177
Connecting to youtube-dl.org (youtube-dl.org)|95.143.172.170|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 117178 (114K) [application/octet-stream]
Saving to: ‘youtube-dl’
100%[======================================>] 117,178 91.3KB/s in 1.3s
2013-06-25 16:37:10 (91.3 KB/s) - ‘youtube-dl’ saved [117178/117178]
dono@Lonewolf stuff$ echo Make executable >> /dev/null
dono@Lonewolf stuff$ chmod 764 youtube-dl
dono@Lonewolf stuff$ echo Download sample video >> /dev/null
dono@Lonewolf stuff$ ./youtube-dl http://www.youtube.com/watch?v=IYnsfV5N2n8
[youtube] Setting language
[youtube] IYnsfV5N2n8: Downloading video webpage
[youtube] IYnsfV5N2n8: Downloading video info webpage
[youtube] IYnsfV5N2n8: Extracting video information
[download] Destination: asdfmovie-IYnsfV5N2n8.flv
[download] 100.0% of 5.94MiB at 102.53KiB/s ETA 00:00
dono@Lonewolf stuff$ ls -sh | grep asdf
6.0M asdfmovie-IYnsfV5N2n8.flv
dono@Lonewolf stuff$ echo Download sample video as mp3 if ffmpeg exists >> /dev/null
dono@Lonewolf stuff$ ./youtube-dl -x --audio-format mp3 http://www.youtube.com/watch?v=IYnsfV5N2n8
[youtube] Setting language
[youtube] IYnsfV5N2n8: Downloading video webpage
[youtube] IYnsfV5N2n8: Downloading video info webpage
[youtube] IYnsfV5N2n8: Extracting video information
[download] Destination: asdfmovie-IYnsfV5N2n8.flv
[download] 100.0% of 5.94MiB at 40.83KiB/s ETA 00:00
[ffmpeg] Destination: asdfmovie-IYnsfV5N2n8.mp3
Deleting original file asdfmovie-IYnsfV5N2n8.flv (pass -k to keep)
dono@Lonewolf stuff$ ls -sh | grep asdf
6.0M asdfmovie-IYnsfV5N2n8.flv
1.1M asdfmovie-IYnsfV5N2n8.mp3
dono@Lonewolf stuff$ echo Resolve link for direct download >> /dev/null
dono@Lonewolf stuff$ ./youtube-dl -g http://www.youtube.com/watch?v=IYnsfV5N2n8
http://r12---sn-a5m7lm7z.c.youtube.com/videoplayback?fexp=905619%2C925301%2C914008%2C916612%2C901474%2C921047%2C928201%2C901208%2C929123%2C929915%2C929906%2C929907%2C929125%2C925714%2C929917%2C929919%2C931202%2C912512%2C912515%2C912521%2C906838%2C904488%2C906840%2C931910%2C931913%2C932227%2C904830%2C919373%2C933701%2C904122%2C900816%2C909421%2C912711%2C935000&nh=EAM&ipbits=8&algorithm=throttle-factor&burst=40&id=2189ec7d5e4dda7f&newshard=yes&mt=1372196857&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&cp=U0hWR1JNTl9NS0NONl9KR1JFOjR3WXdZbHR2LUVk&upn=LlOhvm7Kr9s&ip=97.195.135.218&sver=3&factor=1.25&mv=m&key=yt1&expire=1372220481&source=youtube&ms=au&itag=34&signature=4974B24AF7D8D3E239B55CDFDBD284A32734B180.D6A7029322940129A3F37F24BECE6DDE1DA08E61&ratebypass=yes
i make
- Код: Выделить всё
bind pub -|- !download yotube
proc yotube {nick uhost hand chan text} {
set yotube [exec /home/qnet/eggdrop/youtube-dl [split $text]]
set youtube ""
foreach line [split $youtube \n] {
puthelp "PRIVMSG $chan :$line"
}
}
when i send
!download http://www.youtube.com/watch?v=JTBoLo0eU50
download complete shell but not give output
here anyone can help ?
thanks