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.com Schedule Script (Latest: 2.0)
Goto page Previous  1, 2, 3 ... 30, 31, 32, 33, 34  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Fri Sep 02, 2011 11:22 pm    Post subject: Reply with quote

kenh83 wrote:
GaveUp,

Just got the latest GIT of the script and now I'm getting this all the time:

!showinfo Dexter
[09:59:25pm] <tvrage> {%%show_name%%} ({%%country%%} > {%%network%%} > {%%premiered%%} > {%%show_url%%})
[09:59:25pm] <tvrage> class > {%%classification%%}
[09:59:25pm] <tvrage> genre > {%%genres%%}
[09:59:25pm] <tvrage> status > {%%status%%}
[09:59:25pm] <tvrage> last > not available
[09:59:26pm] <tvrage> next > not available


TVRage services are timing out frequently right now which was the cause of this error, however, you should see a message reflecting that instead of the above with the latest git similar to the following.

Code:
[10:18.53PM] <~GaveUp> !showinfo dexter
[10:18.59PM] <@bot> Timeout retrieving show info.


When the above happens are there any messages logged to the partyline/logs?
Back to top
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Fri Sep 02, 2011 11:44 pm    Post subject: Reply with quote

For anyone that grabbed the git within the last 30 minutes or so they should grab the latest as the was a broken commit that's been fixed. Anyone that's running a version since the asynchronous schedule caching was added (3 days ago) should also grab the list as a bug that could cause the caching to break completely has been fixed.
Back to top
View user's profile Send private message
McGuyver
Voice


Joined: 31 Aug 2011
Posts: 14

PostPosted: Sat Sep 03, 2011 2:43 am    Post subject: Reply with quote

This a fix so that {@%endedyear:value:string%@} will work if the show has not ended.
Code:
diff --git a/tvrage.tcl b/tvrage.tcl
index e207e97..26da4a6 100644
--- a/tvrage.tcl
+++ b/tvrage.tcl
@@ -765,6 +765,12 @@ proc getShowInfoHandler {token} {
       }
    }
 
+   if { $show(ended) == "" } {
+      set show(endedmonth) ""
+      set show(endeddayh) ""
+      set show(endedyear) ""
+   }
+
    if ![info exist show(latest)] {
       set show(latest) 0
       set show(latestTitle) ""


Edit: Just noticed that the tabs got converted to 3 spaces in that code box.
Back to top
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Sat Sep 03, 2011 6:42 am    Post subject: Reply with quote

You can use {e%key:string%e} to get the same effect as that patch. For an example look at the aitime piece of showLineInfo in the default theme.
Back to top
View user's profile Send private message
McGuyver
Voice


Joined: 31 Aug 2011
Posts: 14

PostPosted: Sat Sep 03, 2011 8:25 am    Post subject: Reply with quote

This is what I'm trying to do. If endedyear length is not 0 display the following example.
Code:
Smallville (2001-2011)

If endedyear length is 0 display the following example.
Code:
NCIS (2003-????)
Back to top
View user's profile Send private message
McGuyver
Voice


Joined: 31 Aug 2011
Posts: 14

PostPosted: Sat Sep 03, 2011 10:57 am    Post subject: Reply with quote

Now that I thought about it a little longer i could use {@%ended::????%@} instead of {@%endedyear::????%@}
Back to top
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Sat Sep 03, 2011 11:26 am    Post subject: Reply with quote

McGuyver wrote:
Now that I thought about it a little longer i could use {@%ended:Confused???%@} instead of {@%endedyear:Confused???%@}


I've also pushed to the repository a update to add a "not exists" caluse to the existence tags that will do the job.

Code:
{e%endedyear:({%%endedyear%%}):(????)%e}
Back to top
View user's profile Send private message
Arkadietz
Halfop


Joined: 14 Jul 2006
Posts: 67
Location: cat /dev/zero > /dev/null;

PostPosted: Sat Sep 03, 2011 3:19 pm    Post subject: Reply with quote

Is it possible to make it require a lower version of tcl cuz a lof of RedHat based system can't use it.

For example:
root@Elionor:~# uname -a
Linux Elionor 2.6.22.16-vs2.2.0.5-smp-tux.bg #2 SMP Sat Jun 21 09:17:14 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux
root@Elionor:~# cat /etc/redhat-release
CentOS release 5.6 (Final)
root@Elionor:~#

root@Elionor:~# tclsh -v
% puts $tcl_version
8.4
% info patchlevel
8.4.13
%

[22:16:35] <Elionor> [22:16:55] Loading TVRage.com Primetime Schedule Script v2.0b5
[22:16:35] <Elionor> [22:16:55] tvrage.tcl error: dict required.
_________________
On a unix system everything is a file ; if something is not a file , it is a proccess.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Sat Sep 03, 2011 3:23 pm    Post subject: Reply with quote

Te script will run fine on 8.4 if you install the back ported dict package. Search the older posts in this thread for details on what needs to be done.
Back to top
View user's profile Send private message
Arkadietz
Halfop


Joined: 14 Jul 2006
Posts: 67
Location: cat /dev/zero > /dev/null;

PostPosted: Sat Sep 03, 2011 3:52 pm    Post subject: Reply with quote

i can't understant nothing from that so can you explain in details what is need to do ?

I saw that http://wiki.tcl.tk/5042 but it's not friendly to me. I can't underastand it.
_________________
On a unix system everything is a file ; if something is not a file , it is a proccess.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kenh83
Halfop


Joined: 08 Sep 2010
Posts: 61

PostPosted: Sat Sep 03, 2011 11:14 pm    Post subject: Reply with quote

Arkadietz,

It's easy, he said to look thru this entire forum thread on what to do when you are using tcl8.4 -- it's not that complicated and it was talked about a lot.

go read.
Back to top
View user's profile Send private message
kenh83
Halfop


Joined: 08 Sep 2010
Posts: 61

PostPosted: Sat Sep 03, 2011 11:15 pm    Post subject: Reply with quote

Thanks for the fixes GaveUp.
Back to top
View user's profile Send private message
Arkadietz
Halfop


Joined: 14 Jul 2006
Posts: 67
Location: cat /dev/zero > /dev/null;

PostPosted: Sun Sep 04, 2011 6:40 am    Post subject: Reply with quote

I can't install or update for the moment any packages. So if you have some suggestions now it's time to say it.
_________________
On a unix system everything is a file ; if something is not a file , it is a proccess.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
McGuyver
Voice


Joined: 31 Aug 2011
Posts: 14

PostPosted: Sun Sep 04, 2011 10:42 pm    Post subject: Reply with quote

You might want to add a check in the {@%key:value:string%@} section for when the key does not exist. At least with eggdrop-1.6.20 it just stops processing completely and does not complain about it not being set.
Back to top
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Mon Sep 05, 2011 2:29 am    Post subject: Reply with quote

McGuyver wrote:
You might want to add a check in the {@%key:value:string%@} section for when the key does not exist. At least with eggdrop-1.6.20 it just stops processing completely and does not complain about it not being set.


This has been added.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 30, 31, 32, 33, 34  Next
Page 31 of 34

 
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