| View previous topic :: View next topic |
| Author |
Message |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Fri Sep 02, 2011 11:22 pm Post subject: |
|
|
| 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 |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Fri Sep 02, 2011 11:44 pm Post subject: |
|
|
| 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 |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Sat Sep 03, 2011 2:43 am Post subject: |
|
|
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 |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Sat Sep 03, 2011 6:42 am Post subject: |
|
|
| 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 |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Sat Sep 03, 2011 8:25 am Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Sat Sep 03, 2011 10:57 am Post subject: |
|
|
| Now that I thought about it a little longer i could use {@%ended::????%@} instead of {@%endedyear::????%@} |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Sat Sep 03, 2011 11:26 am Post subject: |
|
|
| McGuyver wrote: | Now that I thought about it a little longer i could use {@%ended: ???%@} instead of {@%endedyear: ???%@} |
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 |
|
 |
Arkadietz Halfop

Joined: 14 Jul 2006 Posts: 67 Location: cat /dev/zero > /dev/null;
|
Posted: Sat Sep 03, 2011 3:19 pm Post subject: |
|
|
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 |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Sat Sep 03, 2011 3:23 pm Post subject: |
|
|
| 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 |
|
 |
Arkadietz Halfop

Joined: 14 Jul 2006 Posts: 67 Location: cat /dev/zero > /dev/null;
|
Posted: Sat Sep 03, 2011 3:52 pm Post subject: |
|
|
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 |
|
 |
kenh83 Halfop
Joined: 08 Sep 2010 Posts: 61
|
Posted: Sat Sep 03, 2011 11:14 pm Post subject: |
|
|
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 |
|
 |
kenh83 Halfop
Joined: 08 Sep 2010 Posts: 61
|
Posted: Sat Sep 03, 2011 11:15 pm Post subject: |
|
|
| Thanks for the fixes GaveUp. |
|
| Back to top |
|
 |
Arkadietz Halfop

Joined: 14 Jul 2006 Posts: 67 Location: cat /dev/zero > /dev/null;
|
Posted: Sun Sep 04, 2011 6:40 am Post subject: |
|
|
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 |
|
 |
McGuyver Voice
Joined: 31 Aug 2011 Posts: 14
|
Posted: Sun Sep 04, 2011 10:42 pm Post subject: |
|
|
| 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 |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Mon Sep 05, 2011 2:29 am Post subject: |
|
|
| 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 |
|
 |
|