| View previous topic :: View next topic |
| Author |
Message |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Wed Jul 26, 2006 1:22 am Post subject: |
|
|
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 |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Wed Jul 26, 2006 8:10 am Post subject: |
|
|
| 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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Wed Jul 26, 2006 5:26 pm Post subject: |
|
|
| 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 |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Wed Jul 26, 2006 6:58 pm Post subject: |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Jul 26, 2006 10:30 pm Post subject: |
|
|
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 |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Thu Jul 27, 2006 7:15 am Post subject: |
|
|
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
And please Alchera, oh please forgive me for having the detestable idea to use colors  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Jul 31, 2006 3:10 am Post subject: |
|
|
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
- Various fixes.. |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Mon Jul 31, 2006 12:23 pm Post subject: |
|
|
Thank you rosc2112, all bugs are gone (and I've hardcoded the colors for the multiline cast).
Great work  |
|
| Back to top |
|
 |
zeroz Voice
Joined: 30 Jul 2006 Posts: 4
|
Posted: Tue Aug 08, 2006 12:54 am Post subject: |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Aug 08, 2006 2:56 am Post subject: |
|
|
| 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 |
|
 |
zeroz Voice
Joined: 30 Jul 2006 Posts: 4
|
Posted: Tue Aug 08, 2006 4:09 pm Post subject: |
|
|
| 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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Aug 08, 2006 6:00 pm Post subject: |
|
|
| 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
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Aug 08, 2006 6:01 pm Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
zeroz Voice
Joined: 30 Jul 2006 Posts: 4
|
Posted: Wed Aug 09, 2006 3:43 am Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Wed Aug 09, 2006 10:37 am Post subject: |
|
|
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 |
|
 |
|