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 

imdb-1.1.0.tcl help please
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 19, 20, 21  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
rosc2112
Revered One


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

PostPosted: Wed Jul 26, 2006 1:22 am    Post subject: Reply with quote

I just added this as well:
Code:

At the end of

                set newurl "$imdburl/$location"
                if { $location != "" } {
                         [deleted for brevity]
I put:
                } else {
                        puthelp "$toput :I can't find that title..Sorry.."
                        return
                }
Back to top
View user's profile Send private message
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Wed Jul 26, 2006 8:10 am    Post subject: Reply with quote

Quote:
6) I use this at the end of the script, at the end of "output results"
Code:
last line of output -> set output [replacevar $output "%wcredits" $wcredits]
        foreach line [split $output "\n"] {
                if {[regexp N/A $line]} {
                        continue
                } else {
                        puthelp "$toput :$line"
                }
        }

Could you display an error message if no information can be displayed at all, in case each line contains "N/A" ?

-----------

Quote:
1) The problem with the commas in the director output, I fixed by using:
Code:
        set name [string map {<br> "\ "} $name]
instead of
        set name [string map {<br> ", "} $name]

Yes but it leaves a blank line and it displays "writing credits" too. (I don't use the %wcredits variable).
Quote:
<Boole> Cars (2006) - http://www.imdb.com/title/tt0317219/
<Boole> réalisateur : John Lasseter Joe Ranft (co-director)
<Boole>
<Boole> Writing credits
<Boole> John Lasseter (story) & Joe Ranft (story) ...
<Boole> genre : Animation / Comedy / Family / Fantasy / Sport
...

I'm using
Code:
set announce(IMDBIRC) "%bold%title%bold - %color12%uline%url%uline%color\n%ulineréalisateur :%uline %color14%name%color\n%ulinegenre :%uline %color14%genre%color\n%ulineune pensée sur ce film :%uline %color14%tagline%color\n%ulinesynopsis :%uline %color14%plot%color\n%ulineclassement :%uline %color14%rating (%votes votes) %rbar %color\n%ulinerécompenses :%uline %color14%awards%color\n%ulinedurée :%uline %color14%timemn.%color\n%ulinecasting :%uline %color14%castmline"

------------

It seems that if someone triggers the flood control, it interfers with the output.
Example :
Quote:
<MenzAgitat> !imdb test
<Boole> Test (2000) - http://www.imdb.com/title/tt0278090/
<Boole> réalisateur : Václav Svankmajer
<Boole> genre : Animation / Short / Drama
<Boole> classement : 7.2/10 (18 votes) [×××××××- - - ]
<Boole> récompenses : 1 win
<Boole> casting : Tomás Hanák
<MenzAgitat> !imdb truc
<Boole> Contrôle de flood : pas plus de 2 requête(s) toutes les 120 secondes.
<MenzAgitat> !imdb truc
<Boole> Truc de Konaté, Le (1998) - http://www.imdb.com/title/tt0176248/
<Boole> réalisateur : Fanta Régina Nacro
<MenzAgitat> !imdb test
<Boole> Contrôle de flood : pas plus de 2 requête(s) toutes les 120 secondes.
<Boole> genre : Comedy / Short
<Boole> synopsis : A man's life is turned upside down when one of his wives refuses to have sexual intercourse with him without a condom.
<Boole> classement : 6.4/10 (6 votes) [×××××××- - - ]
<Boole> récompenses : 3 wins&1 nomination
<Boole> durée : 31mn.
<Boole> casting : Rasmane Ouedraogo .... Konaté
<Boole> José Somada .... Djénéba
<MenzAgitat> !imdb test
<Boole> Test (2000) - http://www.imdb.com/title/tt0278090/
<MenzAgitat> !imdb test
<Boole> réalisateur : Václav Svankmajer
<Boole> genre : Animation / Short / Drama
<Boole> classement : 7.2/10 (18 votes) [×××××××- - - ]
<MenzAgitat> !imdb test
<Boole> Contrôle de flood : pas plus de 2 requête(s) toutes les 120 secondes.
<Boole> récompenses : 1 win
<Boole> casting : Tomás Hanák
<Boole> Test (2000) - http://www.imdb.com/title/tt0278090/
<Boole> réalisateur : Václav Svankmajer
<MenzAgitat> !imdb test
<MenzAgitat> !imdb test
<MenzAgitat> !imdb truc
<Boole> Truc de Konaté, Le (1998) - http://www.imdb.com/title/tt0176248/
<MenzAgitat> !imdb test
<Boole> Contrôle de flood : pas plus de 2 requête(s) toutes les 120 secondes.
<Boole> réalisateur : Fanta Régina Nacro
<MenzAgitat> !imdb test
<Boole> genre : Comedy / Short
<Boole> synopsis : A man's life is turned upside down when one of his wives refuses to have sexual intercourse with him without a condom.
<MenzAgitat> !imdb test
<Boole> classement : 6.4/10 (6 votes) [×××××××- - - ]
<Boole> récompenses : 3 wins&1 nomination
<Boole> durée : 31mn.
<Boole> casting : Rasmane Ouedraogo .... Konaté
<Boole> José Somada .... Djénéba


--------------

When %castmline is displayed on several lines, the %color is not applied on each line.

-------------

If I do :
Quote:
<MenzAgitat> !imdb sledge hammer
<Boole> 'Sledge Hammer!' (1986) - http://www.imdb.com/title/tt0090525/
<Boole> genre : Comedy
<Boole> une pensée sur ce film : If This is Law Enforcement, God Help us All!
<Boole> synopsis : The adventures of a dumb police detective who always looks for the most violent solution to any problem.
<Boole> classement : 8.0/10 (108 votes) [××××××××- - ]
<Boole> durée : 30mn.
<Boole> casting : David Rasche .... Sledge Hammer
<Boole> Anne-Marie Martin .... Dori Doreau
<Boole> Harrison Page .... Captain Trunk
<Boole>  Leslie Morris .... Officer Majoy
<Boole> Kurt Paul .... Norman Blates

there is a blank space in front of the line Leslie Morris .... Officer Majoy
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


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

PostPosted: Wed Jul 26, 2006 5:26 pm    Post subject: Reply with quote

Quote:

Could you display an error message if no information can be displayed at all, in case each line contains "N/A" ?

That's what the above puthelp "$toput :I can't find that title..Sorry.."
is for.
Quote:

Yes but it leaves a blank line and it displays "writing credits" too. (I don't use the %wcredits variable).

Looks like you're using an older version of the script that had that problem.
Quote:

It seems that if someone triggers the flood control, it interfers with the output.

It's not the flood control, it's just the way eggdrop handles multiple/duplicate lines. A fix was suggested earlier in this thread, by using arrays. I haven't implemented it myself.
Quote:

When %castmline is displayed on several lines, the %color is not applied on each line.

Donno what to do about that, sorry. I use multiple-line output too, but I dont use color codes. The color codes are only applied once to the entire line, so when you have a newline, the color code doesn't come through with it.
Quote:

there is a blank space in front of the line [b]Leslie Morris .... Officer Majoy

Need to add a string trim in there, again I think you're using an older version of the script.
Back to top
View user's profile Send private message
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Wed Jul 26, 2006 6:58 pm    Post subject: Reply with quote

I'm using the version found here, last modified on 05.16.2006 by OV2.

Where can I find a more up to date version ?
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


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

PostPosted: Wed Jul 26, 2006 10:30 pm    Post subject: Reply with quote

I use the version dated: 14.05.2006.

As yet no one has reported any problems with it. I do not use colours (detestable idea) so have only 'normal announce' set.

In a nutshell, I did not alter any default settings.
_________________
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
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Thu Jul 27, 2006 7:15 am    Post subject: Reply with quote

Then my version is more recent than yours,
then these two problems I encountered are not linked to the fact I use an old version :

Quote:
Quote:
Yes but it leaves a blank line and it displays "writing credits" too. (I don't use the %wcredits variable).


Looks like you're using an older version of the script that had that problem.


Quote:
Quote:
there is a blank space in front of the line [b]Leslie Morris .... Officer Majoy


Need to add a string trim in there, again I think you're using an older version of the script.


I'm getting lost Confused


And please Alchera, oh please forgive me for having the detestable idea to use colors Wink
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


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

PostPosted: Mon Jul 31, 2006 3:10 am    Post subject: Reply with quote

Thought I had a reply here the other day, guess I didn't hit the save key. I posted a copy of the script as I have modified it here:
http://members.dandy.net/~fbn/imdb.2112.tcl.txt

May 25 2006
- Added number of openings, 1st weekend gross profits, opening date
- Removed channel udef, added "set imdbchans" instead.
- Removed debug crap and curl junk..Get over it Razz
- Various fixes..
Back to top
View user's profile Send private message
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Mon Jul 31, 2006 12:23 pm    Post subject: Reply with quote

Thank you rosc2112, all bugs are gone (and I've hardcoded the colors for the multiline cast).

Great work Very Happy
Back to top
View user's profile Send private message Visit poster's website
zeroz
Voice


Joined: 30 Jul 2006
Posts: 4

PostPosted: Tue Aug 08, 2006 12:54 am    Post subject: Reply with quote

rosc's last ver won't display plots completely if they are linked

## 15.05.2006: ##
## *fixed plot outline not showing completely if it included links ##
## (thanks to darkwing for finding the bug)

Try Crouching Tiger Hidden Dragon
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 Aug 08, 2006 2:56 am    Post subject: Reply with quote

zeroz wrote:
rosc's last ver won't display plots completely if they are linked

## 15.05.2006: ##
## *fixed plot outline not showing completely if it included links ##
## (thanks to darkwing for finding the bug)

Try Crouching Tiger Hidden Dragon

Did you check that link to verify?
_________________
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
zeroz
Voice


Joined: 30 Jul 2006
Posts: 4

PostPosted: Tue Aug 08, 2006 4:09 pm    Post subject: Reply with quote

I also can't get the announce to work properly if i want to display more than one variable per line (even the default announces in the script won't work)
Back to top
View user's profile Send private message
rosc2112
Revered One


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

PostPosted: Tue Aug 08, 2006 6:00 pm    Post subject: Reply with quote

zeroz wrote:
rosc's last ver won't display plots completely if they are linked

## 15.05.2006: ##
## *fixed plot outline not showing completely if it included links ##
## (thanks to darkwing for finding the bug)

Try Crouching Tiger Hidden Dragon


Wasn't mine Razz

And it works for me just fine, this is all that IMDB shows:
http://imdb.com/title/tt0795363/

Plot Summary: The disappearance of a magical sword spurs a breathtaking quest for a missing treasure as two women's... (more)




http://imdb.com/title/tt0190332/


Plot Outline: Two warriors in pursuit of a stolen sword and a notorious fugitive are lead to an impetuous, physically-skilled, teenage nobleman's daughter, who is at a crossroads in her life. (more) (view trailer)



So what exactly are you talking about?
Back to top
View user's profile Send private message
rosc2112
Revered One


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

PostPosted: Tue Aug 08, 2006 6:01 pm    Post subject: Reply with quote

zeroz wrote:
I also can't get the announce to work properly if i want to display more than one variable per line (even the default announces in the script won't work)


What exactly do you mean? Multiple lines (one var per line) works just fine in my copy..So, please explain your problem. I'm not a mind-reader Razz
Back to top
View user's profile Send private message
zeroz
Voice


Joined: 30 Jul 2006
Posts: 4

PostPosted: Wed Aug 09, 2006 3:43 am    Post subject: Reply with quote

I thought that meant it pulled the full synopsis from the link that it was meant to follow, if I was incorrect, sorry!

Also, the default 'announce' methods within that script are broken, try uncommenting them, basically, if data for a variable does not exist that line will not be displayed, so if you have tagline and rating on the same output line and there is no tagline for that movie, it will not display the line even though a value for rating did exist.. but whatever the case, I just worked around this and chose the most broad items that most movies would have.. also if a value does not exist the output stops wherever that value is contained in the output.. again, I was able to figure out how to get the script to work for me most of the time.
Back to top
View user's profile Send private message
rosc2112
Revered One


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

PostPosted: Wed Aug 09, 2006 10:37 am    Post subject: Reply with quote

Hmm, I dont use the defaults, I use one line per var (as shown in the example in my copy) and the reason it does not show empty vars, is because of this part at the bottom:
Code:

        foreach line [split $output "\n"] {
                if {![regexp N/A $line]} {
                        #putcmdlog "line2 '$line'"
                        puthelp "$toput :$line"
                }
        }
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 ... 5, 6, 7 ... 19, 20, 21  Next
Page 6 of 21

 
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