mIRC Home    About    Download    Register    News    Help

Print Thread
Youtube now playing script #212455 23/05/09 04:32 PM
Joined: Jan 2007
Posts: 280
DuXxXieJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Hi,

Does anyone have a script that shows in your active channel which video you are currently playing? I am looking for it already for week and I hoped that somebody here would have one.

(Example, I am playing http://www.youtube.com/watch?v=IooydTcWy-w and then it needs to show at my active channel:

* Mynickname YT: (<name of video>)


Thanks!


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Re: Youtube now playing script [Re: DuXxXieJ] #212459 23/05/09 04:48 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Originally Posted By: DuXxXieJ
Hi,

Does anyone have a script that shows in your active channel which video you are currently playing? I am looking for it already for week and I hoped that somebody here would have one.

(Example, I am playing http://www.youtube.com/watch?v=IooydTcWy-w and then it needs to show at my active channel:

* Mynickname YT: (<name of video>)


Thanks!


I think that you can't do that, only if you downloaded and playing with an mp3 player can help you!

Re: Youtube now playing script [Re: westor] #212460 23/05/09 04:53 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Oh, i found one! have a look HERE maybe this help you!

Re: Youtube now playing script [Re: westor] #212833 06/06/09 01:19 PM
Joined: Jan 2007
Posts: 280
DuXxXieJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Yes thanks, but it sends me an error.
* /sockopen: insufficient parameters (line 656, STube.mrc)

Line 651, 652, 653, 654 656, 657, 658
656 = if ($sock(PicURL,0)) { sockclose PicURL } | else { set %flagtbpic 1 | sockopen PicURL %_HostPicURL 80 }

Code:
alias -l _LoadPicURL {
  if ($hget(URLsTubeD,$1-)) {
    set %_PicURL $iif(%_SPornoTube,$hget(URLsTubeD,$1-),$+($left($hget(URLsTubeD,$1-),-5),2,.jpg))
    set %_HostPicURL $gettok(%_PicURL,2,47)
    set %_GetPicURL $gettok(%_PicURL,3-,47) 
    if ($sock(PicURL,0)) { sockclose PicURL } | else { set %flagtbpic 1 | sockopen PicURL %_HostPicURL 80 }
  }
}


Do you know how to solve the problem, or even know what the problem is?

-----EDIT-----
PS. It also doesn't search very well, it DID the first time searching, but at the second search I got this:




Last edited by DuXxXieJ; 06/06/09 01:21 PM.

Squee whenever a squee squee's. Squee whenever a squee does not squee.
Re: Youtube now playing script [Re: DuXxXieJ] #212838 06/06/09 05:40 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
It's virtually impossible to tell what video you're "currently" playing if you tab-browse..

Theoretically, if you *could* get the address of the site you're currently visiting in your web browser in a browser like Firefox, but there could be many "current sites", for every tab you have opened. Each one could have a video page opened.. which one are you "currently" watching?

Of course, if we keep tab browsing out of the equation, you just need a script to check $url and message it to the channel if it matches /^http:\/\/(www\.)?youtube\.com/watch/

//if ($regex($url, /^http:\/\/(www\.)?youtube\.com/watch/)) describe # $url


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"