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 ... 23, 24, 25 ... 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
sadnem
Voice


Joined: 18 Mar 2010
Posts: 10

PostPosted: Fri Mar 19, 2010 2:54 pm    Post subject: Reply with quote

Yes, its working with 2.02b2, thank you.
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Fri Mar 19, 2010 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Fri Mar 19, 2010 5:07 pm    Post subject: Reply with quote

Right now there isn't a way. I look in to adding that functionality, though.
Back to top
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Fri Mar 19, 2010 5:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Fri Mar 19, 2010 7:00 pm    Post subject: Reply with quote

You are awesome Cool
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Fri Mar 19, 2010 7:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Fri Mar 19, 2010 10:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Sat Mar 20, 2010 4:55 am    Post subject: Reply with quote

Excellent! The new line option works now.

One more bug Smile

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
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Sat Mar 20, 2010 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Sat Mar 20, 2010 1:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Sat Mar 20, 2010 1:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Sun Mar 21, 2010 1:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Fri Mar 26, 2010 9:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Pixelz
Voice


Joined: 15 Jun 2005
Posts: 24
Location: EFnet

PostPosted: Sun Mar 28, 2010 9:16 am    Post subject: Reply with quote

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
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Mon Mar 29, 2010 9:21 am    Post subject: Reply with quote

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
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 ... 23, 24, 25 ... 32, 33, 34  Next
Page 24 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