egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TVRage Lookup by dlx v1.1

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
BigBadPhil
Voice


Joined: 27 Jan 2004
Posts: 14

PostPosted: Sun Apr 29, 2007 6:49 pm    Post subject: TVRage Lookup by dlx v1.1 Reply with quote

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.
_________________
Regards
BigBadPhil™

http://www.bigbadphil.com
Back to top
View user's profile Send private message Send e-mail
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Apr 30, 2007 12:20 am    Post subject: Reply with quote

Post results of '.set errorInfo'.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
BigBadPhil
Voice


Joined: 27 Jan 2004
Posts: 14

PostPosted: Thu May 03, 2007 5:18 pm    Post subject: Reply with quote

.set errorInfo dont work when i type it on the bot am i doing something wrong?
_________________
Regards
BigBadPhil™

http://www.bigbadphil.com
Back to top
View user's profile Send private message Send e-mail
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu May 03, 2007 5:50 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
BigBadPhil
Voice


Joined: 27 Jan 2004
Posts: 14

PostPosted: Thu May 03, 2007 10:41 pm    Post subject: Reply with quote

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
_________________
Regards
BigBadPhil™

http://www.bigbadphil.com
Back to top
View user's profile Send private message Send e-mail
BigBadPhil
Voice


Joined: 27 Jan 2004
Posts: 14

PostPosted: Sat May 05, 2007 8:05 pm    Post subject: Reply with quote

any help would be great Razz
_________________
Regards
BigBadPhil™

http://www.bigbadphil.com
Back to top
View user's profile Send private message Send e-mail
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat May 05, 2007 9:13 pm    Post subject: Reply with quote

Presumably the author gave some way of contacting them. Prolly your best bet if they don't monitor this forum regularly.
Back to top
View user's profile Send private message
BigBadPhil
Voice


Joined: 27 Jan 2004
Posts: 14

PostPosted: Thu May 10, 2007 4:02 pm    Post subject: Reply with quote

There is no email addy on the script, all we know is it is done by dlx

Sad
_________________
Regards
BigBadPhil™

http://www.bigbadphil.com
Back to top
View user's profile Send private message Send e-mail
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu May 10, 2007 5:53 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
WazzaUK
Voice


Joined: 02 Jul 2006
Posts: 19

PostPosted: Thu May 17, 2007 6:20 am    Post subject: tvrage dlx script Reply with quote

this seems to work ok.........

not very effecient or tidy - sort later

Code:
########################
# 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..."
   }
}
}

Back to top
View user's profile Send private message
Gordon
Voice


Joined: 04 Apr 2007
Posts: 34

PostPosted: Mon Jun 25, 2007 8:46 pm    Post subject: Reply with quote

im getting following error with this script
Quote:
Tcl error [dlx:tvrage]: couldn't compile regular expression pattern: invalid escape \ sequence
Back to top
View user's profile Send private message
WazzaUK
Voice


Joined: 02 Jul 2006
Posts: 19

PostPosted: Mon Jun 25, 2007 10:45 pm    Post subject: dlx tvrage Reply with quote

i never claimed this script was my own............ i just got it working nicely Smile

Code:
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 [code][/code] in future please. (Alchera)
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Jun 26, 2007 12:53 am    Post subject: Reply with quote

For an alternative: TVRage.com Schedule Script (Latest: 1.0 RC2)

The above script is supported. Smile
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber