This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Support & discussion of released scripts, and announcements of new releases.
BigBadPhil
Voice
Posts: 14 Joined: Tue Jan 27, 2004 4:28 pm
Post
by BigBadPhil » Sun Apr 29, 2007 6:49 pm
Not sure if anyone else is getting this problem.
I loaded the script, It's great. But try to do !tv 24
The bot spits this out in the channel
-DKP- Show: 24 (Action | Adventure | Drama)
Then thats it. When you look in the partyline, the error is this
Tcl error [dlx:tvrage]: can't read "latest_ep": no such variable
Must be a bug. Works on every other tv ep Ive looked up so far. Help would be much appriciated.
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Mon Apr 30, 2007 12:20 am
Post results of '.set errorInfo'.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
BigBadPhil
Voice
Posts: 14 Joined: Tue Jan 27, 2004 4:28 pm
Post
by BigBadPhil » Thu May 03, 2007 5:18 pm
.set errorInfo dont work when i type it on the bot am i doing something wrong?
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Thu May 03, 2007 5:50 pm
Either your .set command has not been enabled, or the information in errorInfo is stale.
Comment out, or remove, the following line from your config-file, and completely restart your bot, then reproduce the error:
"unbind dcc n set *dcc:set"
NML_375
BigBadPhil
Voice
Posts: 14 Joined: Tue Jan 27, 2004 4:28 pm
Post
by BigBadPhil » Thu May 03, 2007 10:41 pm
Currently: can't read "latest_ep": no such variable
Currently: while executing
Currently: "putquick "PRIVMSG $chan :$prefix Last Episode: $latest_ep : $latest_ep_title ($latest_ep_date)"
Currently: (procedure "dlx:tvrage" line 36)
Currently: invoked from within
Currently: "dlx:tvrage $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"
there we go
rosc2112
Revered One
Posts: 1454 Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania
Post
by rosc2112 » Sat May 05, 2007 9:13 pm
Presumably the author gave some way of contacting them. Prolly your best bet if they don't monitor this forum regularly.
BigBadPhil
Voice
Posts: 14 Joined: Tue Jan 27, 2004 4:28 pm
Post
by BigBadPhil » Thu May 10, 2007 4:02 pm
There is no email addy on the script, all we know is it is done by dlx
rosc2112
Revered One
Posts: 1454 Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania
Post
by rosc2112 » Thu May 10, 2007 5:53 pm
Considering that all submissions to the tcl archive require an email address, maybe asking the archive maintainer to forward a msg would be helpful. That script was posted in the archive fairly recently. If the author doesn't want to support it, there's always the "other" tvrage script to try.
WazzaUK
Voice
Posts: 19 Joined: Sun Jul 02, 2006 5:03 pm
Post
by WazzaUK » Thu May 17, 2007 6:20 am
this seems to work ok.........
not very effecient or tidy - sort later
Code: Select all
########################
# tvrage LOOKUP SCRIPT #
# v1.1 #
# Fixed some regexps #
########################
bind pub - !tv dlx:tvrage
proc dlx:tvrage { nick host hand chan arg } {
if { $chan != "#5" && $chan != "#5.ops" } {
set arg [string map { " " "_" } $arg]
set gotrelease [regexp {([A-Za-z0-9.]+).S[0-9][0-9]E[0-9][0-9]} $arg gotrelease release]
if { $gotrelease } {
set arg $release
}
set url "http://www.tvrage.com/quickinfo.php?show=$arg"
set page [exec curl -s $url]
set prefix "\002TV\002 -> "
set goturl [regexp {Show URL@http://www.tvrage.com/([A-Za-z_0-9/-]+)} $page goturl show_url]
if { $goturl != 0 } {
regexp {Show Name@([A-Za-z 0-9\&\':]+)} $page gotname show_name
regexp {Premiered@([0-9]+)} $page gotpremiere show_premiered
set gotlatest [regexp {Latest Episode@([0-9x]+)\^([A-Za-z0-9 \()-:.?"\'\&:,]+)\^([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 \()-:.?"\'\&:,]+)\^([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]
set gotnetwork [regexp {Network@([A-Za-z 0-9]+)} $page gotnetwork show_network]
set gotairtime [regexp {Airtime@([A-Za-z, 0-9:]+)} $page gotairtime show_airtime]
set show_url "http://www.tvrage.com/$show_url"
if { $gotgenres == 0 } { set show_genres "N/A" }
if { $gotnetwork == 0 } {
set show_network "unknown"
}
if { $gotairtime == 0 } {
set show_airtime "unknown"
}
set tvoutput "PRIVMSG $chan :$prefix \002$show_name ($show_status)\002 airs \002$show_airtime\002 on \002$show_network ($show_country)\002 | Genre: ($show_genres) |"
if { $gotlatest == 0 } {
append tvoutput " Last episode: unavailable"
} else {
append tvoutput " Last Episode: $latest_ep: $latest_ep_title ($latest_ep_date)"
}
if { $gotnext == 0 } {
append tvoutput " | Next episode: unavailable"
} else {
append tvoutput " | Next episode: $next_ep: $next_ep_title ($next_ep_date)"
}
append tvoutput " | URL: \002$show_url\002"
putquick $tvoutput
} else {
putquick "PRIVMSG $chan :$prefix \002$arg\002 not found..."
}
}
}
Gordon
Voice
Posts: 35 Joined: Wed Apr 04, 2007 11:45 am
Post
by Gordon » Mon Jun 25, 2007 8:46 pm
im getting following error with this script
Tcl error [dlx:tvrage]: couldn't compile regular expression pattern: invalid escape \ sequence
WazzaUK
Voice
Posts: 19 Joined: Sun Jul 02, 2006 5:03 pm
Post
by WazzaUK » Mon Jun 25, 2007 10:45 pm
i never claimed this script was my own............ i just got it working nicely
Code: Select all
TV -> Lost (Returning Series) airs Wednesday, 10:00 pm on ABC (USA) | Genre: (Action | Adventure | Drama | Mystery) | Last Episode: 03x23: Through The Looking Glass (2) (May/23/2007) | Next episode: unavailable | URL: http://www.tvrage.com/Lost
Edit: Use in future please. (Alchera)[/color]