<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/15929" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2008-07-21T00:15:18-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/15929</id>

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2008-07-21T00:15:18-04:00</updated>

		<published>2008-07-21T00:15:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84090#p84090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84090#p84090"/>
		<title type="html"><![CDATA[need help on youtube.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84090#p84090"><![CDATA[
Contact the author (on Efnet) as indicated in the script header.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Jul 21, 2008 12:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dmartani]]></name></author>
		<updated>2008-07-20T22:18:19-04:00</updated>

		<published>2008-07-20T22:18:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84087#p84087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84087#p84087"/>
		<title type="html"><![CDATA[need help on youtube.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84087#p84087"><![CDATA[
Hello..<br>i need help with youtube.tcl i was try to edit but didnt work. i want change this tcl to work or can use with public msg on chan / not with private (search and result)<br><br>### YouTube Searching script. v0.1<br>### Made by Mookie<br>### Contact me at Efnet for more information or suggestions<br>### V0.2 because of youtube source code changement.<br><br>package require http<br><br>### Settings ###<br><br>set youtube(timeout) "600000";# Youtube geturl timeout. (better leave this default)<br>set youtube(results) "1";# Results to display<br>set youtube(trigger) "!youtube";# Search trigger<br><br>#########################################################<br>## Don't edit below unless you know what you're doing. ##<br>#########################################################<br><br><br>bind msg - $::youtube(trigger) youtube<br><br>proc youtube {nick uhost hand arg} {<br>global youtube<br>if {$arg == ""} { putmsg $nick "Please use: $::youtube(trigger) KEYWORD"; return }<br>set form [http::formatQuery search_query $arg search search]<br>set tok [http::geturl <a href="http://youtube.com/results?$form" class="postlink">http://youtube.com/results?$form</a> -timeout $::youtube(timeout)]<br>set data [http::data $tok]<br>regsub -all {&lt;b&gt;|&lt;/b&gt;} $data {} data<br>http::cleanup $tok<br>set a "0"<br>while {[regexp -- {&lt;a href=\"/watch\?v=(.*?)\"&gt;(.*)$} $data -&gt; number data]} {<br>if {$a == $::youtube(results)} { break }<br>regexp -- {&lt;img src=".*?" class=".*?" title="(.+?)" alt="video"&gt;} $data -&gt; title<br>putmsg $nick "\[Title: $title Link:<a href="http://youtube.com/watch?v=$number" class="postlink">http://youtube.com/watch?v=$number</a> Description:$title\]"<br>incr a<br>}<br>if {![info exists title]} { putmsg $nick "tidak ditemukan untuk pencarian $arg silahkan langsung ke <a href="http://www.youtube.com" class="postlink">www.youtube.com</a> saja hehe" }<br>}<br><br>Thanks for your help if any..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10060">dmartani</a> — Sun Jul 20, 2008 10:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
