<?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/18604" />

	<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>2013-02-14T12:32:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-02-14T12:32:28-04:00</updated>

		<published>2013-02-14T12:32:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100992#p100992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100992#p100992"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100992#p100992"><![CDATA[
Looks like I can't find the show "H+"<br><br><a href="http://www.tvrage.com/shows/id-29087" class="postlink">http://www.tvrage.com/shows/id-29087</a><br><br>I think the + gets stripped. Can I resolve that problem?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Thu Feb 14, 2013 12:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2013-01-27T04:54:36-04:00</updated>

		<published>2013-01-27T04:54:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100785#p100785</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100785#p100785"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100785#p100785"><![CDATA[
<blockquote class="uncited"><div>Since I've patched my Eggdrop 1.8 with the UTF-8 patch ( <a href="http://eggwiki.org/Utf-8" class="postlink">http://eggwiki.org/Utf-8</a> ), the bullets don't come through.<br><br><img src="http://i49.tinypic.com/155q4id.png" class="postimage" alt="Image"><br><br>Help!</div></blockquote><div class="codebox"><p>Code: </p><pre><code># Change from:set arg [string map [list "%bold" "\002" "%uline" "\037" "%bull" "\u2022" "%color" "\003"] $arg]# Into:set arg [string map [list "%bold" "\002" "%uline" "\037" "%bull" "[encoding convertto utf-8 \u2022]" "%color" "\003"] $arg]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sun Jan 27, 2013 4:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-01-26T08:03:29-04:00</updated>

		<published>2013-01-26T08:03:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100774#p100774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100774#p100774"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100774#p100774"><![CDATA[
Since I've patched my Eggdrop 1.8 with the UTF-8 patch ( <a href="http://eggwiki.org/Utf-8" class="postlink">http://eggwiki.org/Utf-8</a> ), the bullets don't come through.<br><br><img src="http://i49.tinypic.com/155q4id.png" class="postimage" alt="Image"><br><br>Help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Sat Jan 26, 2013 8:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arkadietz]]></name></author>
		<updated>2012-06-26T10:32:16-04:00</updated>

		<published>2012-06-26T10:32:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99626#p99626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99626#p99626"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99626#p99626"><![CDATA[
yeah, true..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7974">Arkadietz</a> — Tue Jun 26, 2012 10:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anahel]]></name></author>
		<updated>2012-06-23T22:01:19-04:00</updated>

		<published>2012-06-23T22:01:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99623#p99623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99623#p99623"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99623#p99623"><![CDATA[
<blockquote class="uncited"><div>not working help plz</div></blockquote>TVRage API is down - so all tvrage scripts aren't working<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10737">Anahel</a> — Sat Jun 23, 2012 10:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[goalie204]]></name></author>
		<updated>2012-06-23T21:28:22-04:00</updated>

		<published>2012-06-23T21:28:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99622#p99622</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99622#p99622"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99622#p99622"><![CDATA[
not working help plz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11653">goalie204</a> — Sat Jun 23, 2012 9:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arkadietz]]></name></author>
		<updated>2012-04-11T21:41:16-04:00</updated>

		<published>2012-04-11T21:41:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99179#p99179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99179#p99179"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99179#p99179"><![CDATA[
Is there delay see bottom:<br><br>[04:38:52] &lt;Kiril&gt; !n warehouse 13<br>[04:38:57] &lt;Monica&gt; [05:39:00] &lt;&lt;Kiril&gt;&gt; !Kiril! !n warehouse 13<br><br>[04:43:47] &lt;Kiril&gt; !n burn notice<br><strong class="text-strong">From Bot's PRIVATE:</strong> [04:43:52] &lt;Monica&gt; [05:43:54] &lt;&lt;Kiril&gt;&gt; !Kiril! !n burn notice<br><strong class="text-strong">Channel Reult:</strong> [04:43:52] &lt;Monica&gt; TV: The next episode of Burn Notice is not yet scheduled. That makes me a sad panda. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":-(" title="Sad"><br><br>how i see it's about 5 seconds<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7974">Arkadietz</a> — Wed Apr 11, 2012 9:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[vBm]]></name></author>
		<updated>2012-03-18T07:44:01-04:00</updated>

		<published>2012-03-18T07:44:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99067#p99067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99067#p99067"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99067#p99067"><![CDATA[
[12:42:21] &lt;~vBm[L]Ini&gt; .tvnext alcatraz<br>[12:42:22] &lt;BeyondBot&gt; TV: Please wait, querying server...<br><br>[11:42:28] Tcl error [tvnext]: couldn't compile regular expression pattern: invalid escape \ sequence<br><br>Would be nice if you could fix this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10383">vBm</a> — Sun Mar 18, 2012 7:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GaveUp]]></name></author>
		<updated>2011-12-16T14:31:02-04:00</updated>

		<published>2011-12-16T14:31:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98399#p98399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98399#p98399"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98399#p98399"><![CDATA[
<blockquote class="uncited"><div>As for the features you requested, the API doesn't seem to provide that info (though there are 2 feeds for schedules, <a href="http://services.tvrage.com/info.php?page=quickschedule" class="postlink">quickschedule</a> and <a href="http://services.tvrage.com/info.php?page=fullschedule" class="postlink">fullschedule</a>) for a !today command, so I guess it would have to be grabbed from an HTML page or feed with some regex magic or something which is not really in my league. As for showing the remaining time, I'll see what I can do.</div></blockquote>For the time until the next episode airs the info that is needed to get this value is provided in the quickschedule results.  Feel free to take a look at my tvrage script to see how this can be calculated.  I make no claims that my way is the best, but it might be enough to get you started.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7262">GaveUp</a> — Fri Dec 16, 2011 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Robby]]></name></author>
		<updated>2011-12-15T22:16:06-04:00</updated>

		<published>2011-12-15T22:16:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98396#p98396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98396#p98396"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98396#p98396"><![CDATA[
@Arkadietz: The script is not at fault in this case, the problem is the TVRage API/Services server that can be very slow to respond at times.., a good tv(timeout) value for me is 30000, you might try setting it to 45000 or 60000. If it still times out, simply retry the command again.<br><br>I fixed the bug you found, thanks for reporting!<br>As for the features you requested, the API doesn't seem to provide that info (though there are 2 feeds for schedules, <a href="http://services.tvrage.com/info.php?page=quickschedule" class="postlink">quickschedule</a> and <a href="http://services.tvrage.com/info.php?page=fullschedule" class="postlink">fullschedule</a>) for a !today command, so I guess it would have to be grabbed from an HTML page or feed with some regex magic or something which is not really in my league. As for showing the remaining time, I'll see what I can do.<br><br>@FightingNavyman: Same thing here, the script is not at fault, try setting the timeout higher as I just explained.<br><br>On another note, due to me testing the command you used now at the time I write this I did encounter a bug where if there's a specific character (see changelog) in the title of the episode that the tvnext/tvlast command will break but would not generate that error message that you got. So, coincidence ftw! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br><br><a href="http://forum.egghelp.org/viewtopic.php?p=97653#97653" class="postlink">I have updated the script to v003 in my post above.</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11527">Robby</a> — Thu Dec 15, 2011 10:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arkadietz]]></name></author>
		<updated>2011-12-06T20:15:03-04:00</updated>

		<published>2011-12-06T20:15:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98344#p98344</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98344#p98344"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98344#p98344"><![CDATA[
[02:02:33] &lt;Kiril&gt; !tvnext house<br>[02:02:33] &lt;Monica&gt; TV: Please wait, querying server...<br>[02:03:04] &lt;Monica&gt; TV: Error! (timeout or something similar)<br>[02:03:42] &lt;Kiril&gt; !tv white collar<br>[02:03:43] &lt;Monica&gt; TV: Please wait, querying server...<br>[02:04:13] &lt;Monica&gt; TV: Error! (timeout or something similar)<br><br>and a lot of the same.. <br><br>kiril@amon:~/Monica/scripts$ ping tvrage.com<br>PING tvrage.com (80.246.178.98) 56(84) bytes of data.<br>64 bytes from <a href="http://www.tvrage.com" class="postlink">www.tvrage.com</a> (80.246.178.98): icmp_seq=1 ttl=56 time=12.1 ms<br>64 bytes from <a href="http://www.tvrage.com" class="postlink">www.tvrage.com</a> (80.246.178.98): icmp_seq=2 ttl=56 time=12.0 ms<br>64 bytes from <a href="http://www.tvrage.com" class="postlink">www.tvrage.com</a> (80.246.178.98): icmp_seq=3 ttl=56 time=12.0 ms<br>64 bytes from <a href="http://www.tvrage.com" class="postlink">www.tvrage.com</a> (80.246.178.98): icmp_seq=4 ttl=56 time=12.0 ms<br>64 bytes from <a href="http://www.tvrage.com" class="postlink">www.tvrage.com</a> (80.246.178.98): icmp_seq=5 ttl=56 time=12.0 ms<br><br>bug with ganre it's not full: [02:43:38] &lt;Monica&gt; TV: Show: Terra Nova (Scripted | Action | Adventure | Drama | Family | Fantasy | Sci )<br><br>i want to know is it possible to speed up the response? 1 to 2 sec will be nice and can you insert and the remaining time until the new series up<br><br>for example:<br>Dec/06/2011 0d,2h,13m,51s from now<br><br>and will be cool if you're add !today where show what up today<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7974">Arkadietz</a> — Tue Dec 06, 2011 8:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FightingNavyman]]></name></author>
		<updated>2011-12-06T20:05:14-04:00</updated>

		<published>2011-12-06T20:05:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98343#p98343</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98343#p98343"/>
		<title type="html"><![CDATA[tvinfolight.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98343#p98343"><![CDATA[
we need an update for this script<br><br>[06:03:00pm] &lt;~chachin&gt; .tvnext supernatural<br>[06:03:01pm] &lt;@R2D2&gt; TV: Please wait, querying server...<br>[06:03:34pm] &lt;@R2D2&gt; TV: Error! (timeout or something similar)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11503">FightingNavyman</a> — Tue Dec 06, 2011 8:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Robby]]></name></author>
		<updated>2011-12-15T22:27:43-04:00</updated>

		<published>2011-09-06T22:53:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97653#p97653</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97653#p97653"/>
		<title type="html"><![CDATA[Updated version of TVInfo Light]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97653#p97653"><![CDATA[
Hello, I took the liberty of updating this nice script with the above fixes and some other improvements.<br>Znuff, if you could base your next version on this one that would be awesome. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><div class="codebox"><p>Code: </p><pre><code>################################################################################# TVInfo Light                                                                 ## Based on dlx's tvrage lookup script                                          ##################################################################################                                                                              ## v001 (Znuff@Egghelp) - 23/08/2011                                            ## - Initial release, stripped appart dlx's tvrage script                       ## v002 (Robby@Egghelp) - 07/09/2011                                            ## - Replaced replacevar with a string map (speechles)                          ## - Fixed "Illegal characters in URL path" (speechles)                         ## - Added a message saying we're querying the server so users know the bot     ##   got the command and isn't lagging on them                                  ## - Return on error to prevent further erroneous processing, stops and fixes   ##   a "no such variable" error                                                 ## - In the tvlast proc: added a missing else, fixing a "no such variable"      ##   error                                                                      ## - Fixed a "no such variable" error in the tv proc                            ## - Added ability to enable/disable this script per channel through .chanset,  ##   +tv to enable, -tv to disable                                              ##   NOTE: At first this will be disabled for all channels, so you will have    ##         to enable this for all the channels you want the script to work on   ## - Put variables/settings in an array called: tv                              ## - Clean up script indentation, some excess spaces and some other minor stuff ## - Increased default timeout to 30000 as TVRage can be very slow to respond   ## v003 (Robby@Egghelp) - 16/12/2011                                            ## - Fixed an error if episode titles contained a ’ character                   ## - Fixed a bug if genres contained a - or / character, it would cut off the   ##   the remaining part of the line output (found by Arkadietz@Egghelp)         ##                                                                              #################################################################################bind pub -|- .tv tvbind pub -|- .tvnext tvnextbind pub -|- .tvlast tvlast# Timeout value - in millisecondsset tv(timeout) "30000"# Set a prefix for the output, you can use %bull, %bold, %uline and %color# No trailing space needed.set tv(prefix) "TV:"set tv(version) "003"setudef flag tvproc showinfo {chan arg} {  global tv  set arg "$tv(prefix) $arg"  set arg [string map [list "%bold" "\002" "%uline" "\037" "%bull" "\u2022" "%color" "\003"] $arg]  set arg [encoding convertto utf-8 $arg]  putquick "PRIVMSG $chan :$arg"}proc tv {nick host hand chan arg} {  if {![channel get $chan tv]} {return 0}  global tv  package require http  putquick "PRIVMSG $chan :$tv(prefix) Please wait, querying server..."  set arg [string map {" " "%20"} $arg]  set url "http://services.tvrage.com/tools/quickinfo.php?show=[::http::formatQuery $arg]"  set page [http::data [http::geturl $url -timeout $tv(timeout)]]  regexp {Show Name@([A-Za-z 0-9\&amp;\':]+)} $page gotname show_name  regexp {Show URL@http://www.tvrage.com/([A-Za-z_0-9/-]+)} $page goturl show_url  regexp {Premiered@([0-9]+)} $page gotpremiere show_premiered  regexp {Latest Episode@([0-9x]+)\^([A-Za-z0-9 -\`\’\"\'\&amp;:\.,]+)\^([A-Za-z0-9/]+)} $page gotlatest latest_ep latest_ep_title latest_ep_date  set gotnext [regexp {Next Episode@([0-9x]+)\^([A-Za-z0-9 -\`\’\"\'\&amp;:.,]+)\^([A-Za-z0-9/]+)} $page gotnext next_ep next_ep_title next_ep_date]  regexp {Country@([A-Za-z]+)} $page gotcountry show_country  regexp {Status@([A-Za-z/ ]+)} $page gotstatus show_status  regexp {Classification@([A-Za-z ]+)} $page gotclassification show_classification  set gotgenres [regexp {Genres@([A-Za-z |/-]+)} $page gotgenres show_genres]  regexp {Network@([A-Za-z 0-9]+)} $page gotnetwork show_network  regexp {Airtime@([A-Za-z, 0-9:]+)} $page gotairtime show_airtime  if {![info exists show_name]} {    showinfo $chan "Error! (timeout or something similar)"    return 1  }  set show_url "http://www.tvrage.com/$show_url"  if {$gotgenres == 0} {set show_genres "N/A"}  if {$gotnext == 0} {    set next_ep "N/A"    set next_ep_title "N/A"    set next_ep_date ""  }  showinfo $chan "%color7Show:%color %bold$show_name%bold ($show_classification \| $show_genres)"  showinfo $chan "%color7Premiered:%color %bold$show_premiered%bold %bull %color7Status:%color %bold$show_status%bold"  showinfo $chan "%color7URL:%color %bold$show_url"  # Cleanup the "Prev/Next Ep" line output a little bit to  # make it shorter if some variables are not available, this  # also fixes an error when next_ep and next_ep_date are not set.  # Probably not the best way to do it :P but it looks better on  # the channel imo.  if {![info exists latest_ep]} {set latest_ep "N/A"}  if {![info exists latest_ep_date]} {    set latest_ep_date ""  } else {    set latest_ep_date " on %bold$latest_ep_date%bold"  }  if {![info exists next_ep]} {set next_ep "N/A"}  if {$next_ep_date != ""} {set next_ep_date " on %bold$next_ep_date%bold"}  # Finally show the output:  showinfo $chan "%color7Previous Ep:%color %bold$latest_ep%bold$latest_ep_date %bull %color7Next Ep:%color %bold$next_ep%bold$next_ep_date"  return 1}proc tvnext {nick host hand chan arg} {  if {![channel get $chan tv]} {return 0}  global tv  package require http  putquick "PRIVMSG $chan :$tv(prefix) Please wait, querying server..."  set arg [string map {" " "_"} $arg]  set url "http://services.tvrage.com/tools/quickinfo.php?show=[::http::formatQuery $arg]"  set page [http::data [http::geturl $url -timeout $tv(timeout)]]  regexp {Show Name@([A-Za-z 0-9\&amp;\':]+)} $page gotname show_name  regexp {Latest Episode@([0-9x]+)\^([A-Za-z0-9 -\`\’\"\'\&amp;:\.,]+)\^([A-Za-z0-9/]+)} $page gotlatest latest_ep latest_ep_title latest_ep_date  set gotnext [regexp {Next Episode@([0-9x]+)\^([A-Za-z0-9 -\`\’\"\'\&amp;:.,]+)\^([A-Za-z0-9/]+)} $page gotnext next_ep next_ep_title next_ep_date]  regexp {Airtime@([A-Za-z, 0-9:]+)} $page gotairtime show_airtime  if {![info exists show_name]} {    showinfo $chan "Error! (timeout or something similar)"    return 1  }  if {$gotnext == 0} {    showinfo $chan "The next episode of %bold$show_name%bold is not yet scheduled. That makes me a %color7sad panda%color. :-("  } else {    showinfo $chan "The next episode of %bold$show_name%bold is %bold$next_ep_title \[$next_ep\]%bold, it will air on %bold$show_airtime $next_ep_date%bold. Previous episode was $latest_ep on $latest_ep_date."  }  return 1}proc tvlast {nick host hand chan arg} {  if {![channel get $chan tv]} {return 0}  global tv  package require http  putquick "PRIVMSG $chan :$tv(prefix) Please wait, querying server..."  set arg [string map {" " "_"} $arg]  set url "http://services.tvrage.com/tools/quickinfo.php?show=[::http::formatQuery $arg]"  set page [http::data [http::geturl $url -timeout $tv(timeout)]]  regexp {Show Name@([A-Za-z 0-9\&amp;\':]+)} $page gotname show_name  regexp {Latest Episode@([0-9x]+)\^([A-Za-z0-9 -\`\’\"\'\&amp;:\.,]+)\^([A-Za-z0-9/]+)} $page gotlatest latest_ep latest_ep_title latest_ep_date  set gotnext [regexp {Next Episode@([0-9x]+)\^([A-Za-z0-9 -\`\’\"\'\&amp;:.,]+)\^([A-Za-z0-9/]+)} $page gotnext next_ep next_ep_title next_ep_date]  if {![info exists show_name]} {    showinfo $chan "Error! (timeout or something similar)"    return 1  }  if {$gotnext == 0} {    showinfo $chan "The last episode of %bold$show_name%bold was %bold$latest_ep_title \[$latest_ep\]%bold, it aired on %bold$latest_ep_date%bold. Next episode is not yet scheduled. :-("  } else {    showinfo $chan "The last episode of %bold$show_name%bold was %bold$latest_ep_title \[$latest_ep\]%bold, it aired on %bold$latest_ep_date%bold. Next episode is %bold$next_ep%bold scheduled on %bold$next_ep_date%bold."  }  return 1}putlog "TVInfo Light v$tv(version): LOADED"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11527">Robby</a> — Tue Sep 06, 2011 10:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[granddad]]></name></author>
		<updated>2011-09-01T15:53:50-04:00</updated>

		<published>2011-09-01T15:53:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97594#p97594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97594#p97594"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97594#p97594"><![CDATA[
Znuff : thanks it works now.<br><br>Sorry for late respons but i was away.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9933">granddad</a> — Thu Sep 01, 2011 3:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Znuff]]></name></author>
		<updated>2011-08-28T17:23:38-04:00</updated>

		<published>2011-08-28T17:23:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97549#p97549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97549#p97549"/>
		<title type="html"><![CDATA[TVInfo Light v001 / Lightweight tvrage.com lookup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97549#p97549"><![CDATA[
Increase the timeout value. Unfortunatelly, lately tvrage's API is slow as hell and sometimes request time out. <br><br>Nothing you can do about it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11219">Znuff</a> — Sun Aug 28, 2011 5:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
