egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help me to tcl code download mp3 youtube-dl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
slashker
Voice


Joined: 06 Jan 2016
Posts: 2

PostPosted: Wed Jan 06, 2016 1:46 pm    Post subject: Help me to tcl code download mp3 youtube-dl Reply with quote

Code:

#!/bin/bash
x="00$$/%(title)s.(ext)s"
"
url="http://localhost/00$$/"
youtube-dl --rate-limit 15M --extract-audio --audio-format mp3 --output=$x "$1"
oput1="mp3.lst"
mpp="/*.mp3"
find /locahost/00$$/ -name "*.mp3" > $oput1
#mkdir 00$$
fil=`head -1 $oput1`

echo "http:/$fil"

rm -f $oput1
mv /localhost/00* /var/www/html/
exit
#



bind pub -|- !dl pub_get
proc pub_get {nick host hand chan text} {
   putserv "NOTICE $nick :Searching for $text. Please stand by..."
   set runcmd [exec /localhost/tt3.sh "$text"]
   if {[catch $runcmd res]} {
      putserv "NOTICE $nick:No matches for $text"
   }
   putserv "NOTICE $nick : $line $res"
   putlog "$res"
}
===========================

[00:40] <slashker> !dl CvBfHwUxHIk
[00:40] -BotMp3- Searching for CvBfHwUxHIk. Please stand by...
log error

[00:40:20] Tcl error [pub_get]: http:/
ERROR: u'CvBfHwUxHIk$' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:CvBfHwUxHIk$" ) to search YouTube
find: `/localhost/0012206/': No such file or directory
mv: cannot stat /localhost/00*: No such file or directory

Somebody can't help me please?
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber