BMT IRC Network
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Web Applications
install Joomla Wordpress Phpbb Drupal FluxBB PunBB osCommerce simple-machines MYBB moodle vBulletin Dolphin-v.7.1.1 PHPNUKE XOOPS
Services
install BorkNet Services X3 Services Anope Atheme Services Srvx IRC Srervices
IRCD
install Snircd IRCU INSPIRCD UNREAL Nefarious Bircd Bahamut Asuka Charybdis
TCL SCRIPT
TCL SCRIPT FOR EGGDROP Allprotection4.7 Antiproxy
Bots
Bots install FishBot bobot++ Eggdrop janus Omega Security Services Botnix Bopm SupyBot PyLink Hopm
Latest topics
» מדריך גירסה INSPIRCD V4
YouTube Info EmptySat Aug 05, 2023 2:09 am by Chief

» mIRCx IRC Network Config
YouTube Info EmptySat Jul 15, 2023 9:51 pm by Chief

» ircu2.10.12-pk with dnsbl
YouTube Info EmptyFri Mar 10, 2023 2:22 pm by Admin

» Guide install PyLink on New version FreeBSD
YouTube Info EmptyThu Dec 15, 2022 9:39 pm by Chief

» מדריך התקנה PBot על מערכת הפעלה FreeBsd-12
YouTube Info EmptyMon Dec 05, 2022 5:44 am by Chief

» install Nefarious2 && X3 IRC Services in FreeBsd
YouTube Info EmptySat Nov 12, 2022 3:12 pm by Chief

» help problem with adduser in Freebsd 12
YouTube Info EmptyFri Nov 11, 2022 9:06 pm by Chief

» מדריך פקודות והתקנה בסרביס X3
YouTube Info EmptyFri Oct 28, 2022 1:43 pm by Chief

» מדריך הגדרות WebIRC in Nefarious2
YouTube Info EmptyThu Apr 07, 2022 4:45 am by Chief

November 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar

Affiliates
free forum

Affiliates
free forum


YouTube Info

Go down

YouTube Info Empty YouTube Info

Post  Admin Wed Apr 04, 2012 7:59 am

Code:

 on *:text:*:#: {
      if (*http://*youtube.com/watch?v=* iswm $1-) {
        set %you.slink $strip($wildtok($1-,*http://*youtube.com/watch?v=*,1,32))
        tokenize 47 %you.slink
        set %you.link $3
        set %you.chan $chan
        youtube %you.link $chan
      }
      elseif (*http://www.youtube.com/user/*#p/a/*/*/* iswm $1-) {
        set %you.slink $strip($wildtok($1-,*http://www.youtube.com/user/*#p/a/*/*/*,1,32))
        tokenize 47 %you.slink
        set %you.chan $chan
        set %you.link $8
        youtube %you.link $chan
      }
      elseif (*http://*youtu.be* iswm $1-) {
        set %you.slink $strip($wildtok($1-,*http://*youtu.be*,1,32))
        tokenize 47 %you.slink
        set %you.chan $chan
        set %you.link $3
        youtube %you.link $chan
      }
    }
    alias youtube {
      if ($2) set %you.chan $2
      else %you.chan = $active
      %you.lookup = $1
      %you.vid = $remove(%you.lookup,http://,www.youtube.com/,watch?v=,youtu.be/)
      if ($sock(YouTube)) .sockclose YouTube
      sockopen YouTube ipeer.net63.net 80
    }
 
    on *:SOCKOPEN:YouTube: {
      sockwrite -nt $sockname GET $+(/php/yt.php?vid=,%you.vid) HTTP/1.1
      sockwrite -nt $sockname Host: ipeer.net63.net
      sockwrite -nt $sockname $crlf
    }
    on *:SOCKREAD:YouTube: {
      if ($sockerr) {
        echo -t %you.chan Socket Error: $sockname $+ . Error code: $sockerr.
        halt
      }
      else {
        var %sockreader
        sockread %sockreader
        if (ERROR:* iswm %sockreader) {
          echo -t %you.chan $ytc1(Error getting video info:) $ytc2($gettok(%sockreader,2-,32))
          unset %you.*
          sockclose $sockname
        }
        elseif (*|*|*|*|*|* iswm %sockreader) {
 
          %you.title = $gettok(%sockreader,1,124)
          %you.from = $gettok(%sockreader,2,124)
          %you.len = $gettok(%sockreader,3,124)
          %you.views = $gettok(%sockreader,4,124)
          %you.added = $gettok(%sockreader,5,124)
          %you.desc = $gettok(%sockreader,6,124)
          %you.ratings = $gettok(%sockreader,7,124)
 
          /msg %you.chan [1,0You0,4Tube]: Title: %you.title
          .timer 1 1 /msg %you.chan [1,0You0,4Tube]: Author: %you.from Views: %you.views Added: %you.added Duration: $iif(%you.len,$duration($v1,3),??)
        }
      }
    }
    alias -l nohtml { var %x,%y = $regsub($1-,/(<[^>]+>)/g,$null,%x) | return %x }
Admin
Admin
Admin

מספר הודעות : 269
Join date : 2009-09-12
Age : 44
מיקום : mIRCX IRC Network

https://mircx.forumotion.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum