| View previous topic :: View next topic |
| Author |
Message |
sadnem Voice
Joined: 18 Mar 2010 Posts: 10
|
Posted: Fri Mar 19, 2010 2:54 pm Post subject: |
|
|
| Yes, its working with 2.02b2, thank you. |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Fri Mar 19, 2010 3:09 pm Post subject: |
|
|
| I would only like to display shows from ABC, NBC, HBO, FOX, CBS. How do I do that without excluding dozens of networks? |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Fri Mar 19, 2010 5:07 pm Post subject: |
|
|
| Right now there isn't a way. I look in to adding that functionality, though. |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Fri Mar 19, 2010 5:27 pm Post subject: |
|
|
| Well it was actually a fairly simple matter so grab the latest version and it will have it. Check the changelog for details as a variable name changed so it could require updates to your custom config file. |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Fri Mar 19, 2010 7:00 pm Post subject: |
|
|
You are awesome  |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Fri Mar 19, 2010 7:28 pm Post subject: |
|
|
It works! Another question, I've been playing around with the theme file but I cannot get something to work.
I basically want my !today or !tomorrow to look like this
Schedule for DATE
HBO: SHOW1 (1x12), SHOW2 (4x17)
ABC: SHOW1 (5x18), SHOW2 (2x1), SHOW3 (4x2)
FOX: SHOW1 (1x1)
CBS: SHOW1 (7x7), SHOW2 (2x1), SHOW3 (2x2), SHOW4 (4x1)
This is just an example. Basically I need to know how to set the new line command. It would also be cool to have it like
TIME NETWORK SHOW
TIME NETWORK SHOW
TIME NETWORK SHOW
TIME NETWORK SHOW
This means one show per line and not multiple shows on the same line.
How can I do this?
-edit-
New lines do not work with \n using the following config
| Code: | # Header to display before showing a schedule.
set tvrage(scheduleHeader) "PRIVMSG {%%chan%%} :Schedule for \002{%%date%%}\002"
# Format of the time display for each line in a schedule listing
set tvrage(scheduleTimeFormat) "{%%time%%}: "
# Format of a show in a schedule listing
set tvrage(scheduleEpisodeFormat) "\002{%%network%%}\002 - \002{%%show%%}\002 ({%%epnum%%}) {%%scheduleShowSeparator%%} "
# Separator between episodes in a schedule listing
set tvrage(scheduleShowSeparator) "\n"
# Format of a schedule Line (should be used primarily to change from a public message, to private message, etc)
set tvrage(scheduleLine) "PRIVMSG {%%chan%%} :{%%scheduleLine%%}" |
This still places multiple shows in 1 line.
Furthermore, if I remove the : from | Code: | | set tvrage(scheduleTimeFormat) "{%%time%%}: " | the script won't work. I wanted to replace it with for example - but it needs to be : |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Fri Mar 19, 2010 10:18 pm Post subject: |
|
|
There was a bug in the script that prevented doing what you wanted properly. This is fixed in 2.0b4. The way to do what you're looking for is to set scheduleShowSeparator to a literal newline.
set tvrage(scheduleShowSeparator) "
" |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Mar 20, 2010 4:55 am Post subject: |
|
|
Excellent! The new line option works now.
One more bug
| Code: | | set tvrage(scheduleTimeFormat) "{%%time%%}: " |
When I change this to
| Code: | | set tvrage(scheduleTimeFormat) "{%%time%%} - " |
I get error Tcl error [::tvrage::today]: can't read "prefix": no such variable |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Sat Mar 20, 2010 12:03 pm Post subject: |
|
|
| x0x wrote: | | I get error Tcl error [::tvrage::today]: can't read "prefix": no such variable |
2.0b5 fixes this as well as a bug caused from the changes made to resolve the newline issue. |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Mar 20, 2010 1:09 pm Post subject: |
|
|
Thank you but this brings up another issue.
Some networks have two spaces in front of their name, others one or three. This is a little bit from tomorrow.
| Code: | 6:05 PM <@BOT> 09:30 pm - FOX - Sons of Tucson (01x02)
6:05 PM <@BOT> 10:00 pm - CBS - Cold Case (07x17)
6:05 PM <@BOT> 10:00 pm - AMC - Breaking Bad (03x01)
6:05 PM <@BOT> 10:00 pm - HBO - How to Make It in America (01x06)
6:05 PM <@BOT> 10:00 pm - A&E - Kirstie Alley's Big Life (01x01)
6:05 PM <@BOT> 10:01 pm - ABC - Food Revolution (01x01)
6:05 PM <@BOT> 10:30 pm - A&E - Kirstie Alley's Big Life (01x02) |
It also depends per day, the schedule of today gives all of them multiple spaces.
My code is;
| Code: | | set tvrage(scheduleTimeFormat) "{%%time%%} -" |
| Code: | | set tvrage(scheduleEpisodeFormat) "{%%network%%} - \002{%%show%%}\002 ({%%epnum%%}) {%%scheduleShowSeparator%%}" |
|
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Sat Mar 20, 2010 1:35 pm Post subject: |
|
|
| This is usually caused when there's a trailing space some where. Either in scheduleShowSeparator or scheduleEpisodeFormat. That's the only way I can recreate this issue. Make sure you have no trailing erroneous spaces in either of those settings. If that doesn't fix it please PM me your theme file so I can trace the problem down. |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sun Mar 21, 2010 1:09 pm Post subject: |
|
|
Okay nice I will check my theme.
There's one show by the way that does not work at all, Breaking Bad. All other shows I've tried work. EDIT: I have the same problem with Entourage.
<BOT> {%%show_name%%} ({%%premiered%%}) - {%%show_url%%}
<BOT> Last: {%%status%%}
<BOT> Next: {%%status%%}
Another question, would it be possible to make a schedule like this?
Schedule for DATE
HBO: SHOW1 (1x12), SHOW2 (4x17)
ABC: SHOW1 (5x18), SHOW2 (2x1), SHOW3 (4x2)
FOX: SHOW1 (1x1)
CBS: SHOW1 (7x7), SHOW2 (2x1), SHOW3 (2x2), SHOW4 (4x1) |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Fri Mar 26, 2010 9:22 am Post subject: |
|
|
| x0x wrote: | There's one show by the way that does not work at all, Breaking Bad. All other shows I've tried work. EDIT: I have the same problem with Entourage.
<BOT> {%%show_name%%} ({%%premiered%%}) - {%%show_url%%}
<BOT> Last: {%%status%%}
<BOT> Next: {%%status%%}
|
This is due to how slow tvrage has been responding lately. Increasing the http timeout in your config will resolve this.
| x0x wrote: |
Another question, would it be possible to make a schedule like this?
Schedule for DATE
HBO: SHOW1 (1x12), SHOW2 (4x17)
ABC: SHOW1 (5x18), SHOW2 (2x1), SHOW3 (4x2)
FOX: SHOW1 (1x1)
CBS: SHOW1 (7x7), SHOW2 (2x1), SHOW3 (2x2), SHOW4 (4x1) |
This isn't possible with the way script groups data right now. |
|
| Back to top |
|
 |
Pixelz Voice

Joined: 15 Jun 2005 Posts: 24 Location: EFnet
|
Posted: Sun Mar 28, 2010 9:16 am Post subject: |
|
|
| I considered running this script on one of my bots, and in the process I fixed some issues with it that made me nervous, here's a patch. I hope you find it useful. |
|
| Back to top |
|
 |
GaveUp Op
Joined: 19 Jan 2006 Posts: 139
|
Posted: Mon Mar 29, 2010 9:21 am Post subject: |
|
|
| Pixelz wrote: | | I considered running this script on one of my bots, and in the process I fixed some issues with it that made me nervous, here's a patch. I hope you find it useful. |
Thanks for the patch. Looking through it, unless I'm missing something most of the changes fix some inconsistencies in the syntax, unless I'm missing something? |
|
| Back to top |
|
 |
|