This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

imdb-1.1.0.tcl help please

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

I just added this as well:

Code: Select all

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
                }
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

6) I use this at the end of the script, at the end of "output results"

Code: Select all

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" ?

-----------
1) The problem with the commas in the director output, I fixed by using:

Code: Select all

        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).
<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: Select all

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 :
<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 :
<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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
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.
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.
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.
there is a blank space in front of the line Leslie Morris .... Officer Majoy

Need to add a string trim in there, again I think you're using an older version of the script.
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

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 ?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

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 :
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.
there is a blank space in front of the line 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 :?


And please Alchera, oh please forgive me for having the detestable idea to use colors :wink:
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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 :P
- Various fixes..
User avatar
MenzAgitat
Op
Posts: 118
Joined: Tue Jul 04, 2006 12:35 pm
Location: France
Contact:

Post by MenzAgitat »

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

Great work :D
z
zeroz
Voice
Posts: 4
Joined: Sun Jul 30, 2006 11:14 pm

Post by zeroz »

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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
z
zeroz
Voice
Posts: 4
Joined: Sun Jul 30, 2006 11:14 pm

Post by zeroz »

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)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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 :P

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?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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 :P
z
zeroz
Voice
Posts: 4
Joined: Sun Jul 30, 2006 11:14 pm

Post by zeroz »

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.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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: Select all

        foreach line [split $output "\n"] {
                if {![regexp N/A $line]} {
                        #putcmdlog "line2 '$line'"
                        puthelp "$toput :$line"
                }
        }
Post Reply