Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod (Read 11824 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod

Look what I found today

fooTube
Together with foo_run it's exactly what you're looking for


Maybe I was not exactly enough inn my starting poast.
But what I was meaning is that I want to search in foobar and get a list of hits.
Clicking on it will add it to the playlist or starts playing the song within foobar.
Not in an external Window.

footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod

Reply #1
Well that is as good as it gets. Foobar plays flv's with the right plugin, but only audio and you cannot search from there.
I'm happy just not having to use the browser to search for files in YT.

footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod

Reply #2
thank you for recomending my tool Emerelle.
Quote
Clicking on it will add it to the playlist or starts playing the song within foobar.
Not in an external Window.

jPatton then i recomend you This
At this introduction page, using this tool with foo_run
but you can use by WSH Panel mod or something like that

URL-Encordeding is needed to search Video on youtube.
[blockquote]
ex.if you want to search "apple cooking",
youtube URL with Search query have to be "http://www.youtube.com/results?search_query=apple+cooking"
you need to change " "(space) to "+"
[/blockquote]

For like me Japanese user and other multibyte-character language users,
URL-Encoding is big problem, so i made a tool to handle that.
[blockquote]
ex.if i want to search "林檎"(林檎 means apple),
youtube URL with Search query have to be "http://www.youtube.com/results?search_query=%E6%9E%97%E6%AA%8E"
i need to change "林檎" to "%E6%9E%97%E6%AA%8E"
[/blockquote]

Using this tool you dont have to care about it.

footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod

Reply #3
Quote
Not in an external Window.


I made footube version3.00beta note open external window.

This is BETA version and may have some bugs.
.NET FrameWork4 needed
WSH Panel Mod needed



footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod

Reply #4
I release footube which is work with WSH Panel Mod
Please try it!
Get it from here(English & Japanese explanation post)








Introduction Viedo on Youtube


Using WSH stdin/out and C# Form aplication's console.write/read,
i can made external aplication strongly coordinate operation with foobar2000.

Code: [Select]
var WshShell = new ActiveXObject("WScript.Shell");
var exe = "footube.exe";
var delay = 5000;
var oExec = WshShell.Exec(exe+" "+window.ID+" "+delay);
var timer = window.CreateTimerInterval(delay+100);
var stat = 1;
var pipe = 0;

var mes_templ  = "###############################\n"
    mes_templ += "Message From fooTubeScript Host\n"
    mes_templ += "###############################\n";
var bar_templ  = "-------------------------------\n"

function on_playback_new_track(metadb){
    if (stat == 1 && pipe == 1)
    {
        try
        {
            oExec.StdIn.WriteLine(fb.TitleFormat("%title%").Eval(true));
        }
        catch(e)
        {
            fb.trace(mes_templ+"pipe had been closed");
            stat = 0;
            pipe = 0;
        }
    }
}

function on_timer(timer_id){
    window.KillTimer(timer);
    var dt = new Date();
    var start = dt.getMilliseconds();
    fb.trace(mes_templ+"initialization pipe conection...");
   
    if (stat)
    {
        dt = new Date();
        fb.trace("Send SYN to footube.exe");
        oExec.StdIn.WriteLine("SYN");
        if(oExec.StdOut.ReadLine() == "SYN")
        {
            fb.trace("Recieve SYN from footube.exe\nSend ACK to footube.exe");
            oExec.StdIn.WriteLine("ACK");
            fb.trace("Recive TEST Message from footube.exe");
            pipe = 1;
            fb.trace("\""+oExec.StdOut.ReadLine()+"\"");
            var dt = new Date();
            var end = dt.getMilliseconds();
            fb.trace((end-start)+"ms took to pipe conection establishment\n"+bar_templ);
        }
        else
        {
            fb.trace("Error : Cannot Recieve SYN from footube.exe\n"+bar_templ);
            stat = 0;
            pipe = 0;
        }
    }
}



Have a nice music life with foobar2000, and many thanks to WSH Panel Mod and foobar2000 author!

footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod

Reply #5
2012-02-16
NEW script for footube
I wonder when i listen to net-radio and music changed, on_playback_new_track is not called.
so using regexp, if RAW PATH include "http://",make timer and check if music has changed.
and other changes in detail.

learn detail

Code: [Select]
var WshShell = new ActiveXObject("WScript.Shell");
var exe = "footube.exe";
var delay = 3000;
var oExec = WshShell.Exec(exe+" "+window.ID+" "+delay);
var timer = window.CreateTimerInterval(delay+3000);

var stat = true;
var pipe = false;

var net_radio = false;
var net_radio_tit = "";

var cmd2pipe = "";

var mes_templ  = "###############################\n";
    mes_templ += "Message From fooTubeScript Host\n";
    mes_templ += "###############################\n";
var bar_templ  = "-------------------------------\n";

//---------------------------------------------------

function sendMes2pipe(cmd2pipe)
{
    try
    {
        oExec.StdIn.WriteLine(cmd2pipe);
    }
    catch(e)
    {
        fb.trace(mes_templ+"pipe had been closed");
        killAll();
    }
}

function killAll()
{
    stat = false;
    pipe = false;
    net_radio = false;
    window.KillTimer(timer);
}

function checkBeforSend()
{
    if (stat && pipe)
    {
        window.KillTimer(timer);
        sendMes2pipe(fb.TitleFormat("%title%").Eval(true));
       
        var url = new RegExp("http://", "i");
        if(fb.TitleFormat("%_path_raw%").Eval(true).match(url))
        {
            net_radio = true;
            net_radio_tit = fb.TitleFormat("%title%").Eval(true);
            timer = window.CreateTimerInterval(6000);
        }
        else
        {
            net_radio = false;
        }
    }
}

//---------------------------------------------------

function on_playback_new_track(metadb){
    checkBeforSend();
}

function on_timer(timer_id){
    if (net_radio)
    {
        if (net_radio_tit != fb.TitleFormat("%title%").Eval(true))
        {
            net_radio_tit = fb.TitleFormat("%title%").Eval(true);
            sendMes2pipe(net_radio_tit);
        }
    }
    else if (stat && pipe == false)
    {
        window.KillTimer(timer);
        var dt = new Date();
        var start = dt.getMilliseconds();
        fb.trace(mes_templ+"initialization pipe conection...");
        dt = new Date();
        fb.trace("Send SYN to footube.exe");
        oExec.StdIn.WriteLine("SYN");
        if(oExec.StdOut.ReadLine() == "SYN")
        {
            fb.trace("Recieve SYN from footube.exe\nSend ACK to footube.exe");
            oExec.StdIn.WriteLine("ACK");
            fb.trace("Recive TEST Message from footube.exe");
            pipe = true;
            fb.trace("\""+oExec.StdOut.ReadLine()+"\"");
            var dt = new Date();
            var end = dt.getMilliseconds();
            if ((end - start) <= 0)
            {
                fb.trace((end+1000-start)+"ms took to pipe conection establishment\n"+bar_templ);
            }
            else
            {
                fb.trace((end-start)+"ms took to pipe conection establishment\n"+bar_templ);
            }
            checkBeforSend();
        }
        else
        {
            fb.trace("Error : Cannot Recieve SYN from footube.exe\n"+bar_templ);
            killAll();
        }
    }
}

and I am a student so there are many other things to do.
so I make footube open sourced.please modify it by yourself
footube version3.6 with c# code

footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod

Reply #6
Using WSH stdin/out and C# Form aplication's console.write/read,
i can made external aplication strongly coordinate operation with foobar2000.



working link for footube: https://skydrive.live.com/?cid=1984874fe7d5...AGeAqFbqPPpnMm4


GiveMe9 ,can you make this for opera browser?
Something that will put opera aplication in foobar?

footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod

Reply #7
Can somebody post a nice tut about this component?
I think it works great, when it works.

I get an xml error and footube crashes (version 3.05 stable)

 

footube—finds YouTube videos via fb2k, also integrates w/WSH Panel Mod

Reply #8
Can somebody post a nice tut about this component?
I think it works great, when it works.

I get an xml error and footube crashes (version 3.05 stable)

This is old ,don't think it'll work but there is better component for this now:
click

You may wanna look into these too 

Foobar Youtube Radio

Youtube Track Manager