yutube to mp3

Ejemplos y plantillas para Autoplay Media Studio.
salam

Imagen
button get
Input.SetText("Input5", "Loading info ...");
Application.Sleep(10);
local val={item=Input.GetText("Input1")};
id = HTTP.Submit("http://www.youtube-mp3.org/api/pushItem/", val, SUBMITWEB_GET, 5, 80, nil, nil);
Input.SetText("Input5", HTTP.GetHTTPErrorInfo().Message.." get link id ..");
local val ={video_id=id}
Application.Sleep(10);
list = HTTP.Submit("http://www.youtube-mp3.org/api/itemInfo/", val, SUBMITWEB_GET, 5, 80, nil, nil);
Input.SetText("Input3", list);
Application.Sleep(10);
Input.SetText("Input5", HTTP.GetHTTPErrorInfo().Message.."get info ...");
json = String.Mid(list, 8, String.Length(list)-8);
tab_all=JSON.Decode(json);
link="www.youtube-mp3.org/get?video_id="..id.."&h="..tab_all.h;
Input.SetText("Input4", link);
lists_string="Image : "..tab_all.image.."\r\n".."Title : "..tab_all.title.."\r\n".."Length : "..tab_all.length.." minutes".."\r\n";
--tab_all.h.."\r\n"..
Input.SetText("Input3", lists_string);


Input.SetText("Input5", "Loading Image ...");
Application.Sleep(10);

show_pic(tab_all.image,'jpg',"Image1");
Input.SetText("Input5", "Done .");
Application.ExitScript();
button download
File.OpenURL(link, SW_MINIMIZE);
global function
function show_pic(url,extension,obj)
HTTP.Download(url, _TempFolder.."\\tmp."..extension, MODE_BINARY, 20, 80, nil, nil, nil);
Image.Load(obj,_TempFolder.."\\tmp."..extension);
siz = Image.GetFileInfo(_TempFolder.."\\tmp."..extension);
Image.SetSize(obj, siz.Width,siz.Height); -- 
end  
--
:friends:
Gracias por el aporte muy bueno.
Los Script deben de colocarse en la Etiqueta LUA
muy buenooo gracias compañerooo chulran
gracias
 Imagen
hella
add same update :pc:

Imagen

http://www.sendspace.com/file/i3i0sh

and fix that
if not(_c[1] == nil) then
to
if not(_c[1] == "َِCANCEL") or (_c[1] == "َِ_.mp3")   then
gracias
IT always downloads the same thing once to get it it only gets it once I think there is a table or cashing problem.
thanks. i love it
mola! gracias!
Thank you!
HL gracias..a probar
That's Great!! Buen Trabajo... +10..

Link caido :cabreado: -3..
Vielen Dank

hola perdon pero no se como hacerlo

que bien grasias

manda pra mim

thanks lotof

thanks
:cerrado: :cerrado: :cerrado: