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 by perpleXA

Support & discussion of released scripts, and announcements of new releases.
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

goalie204 wrote:also, how can i remove the colour?

Code: Select all

  # Headers color
  variable color1 ""
  # Information color
  variable color2 ""
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
l
l1ve
Voice
Posts: 7
Joined: Tue Oct 30, 2007 3:18 pm

Post by l1ve »

When the update to imdb vote ?
k
kenh83
Halfop
Posts: 61
Joined: Wed Sep 08, 2010 11:22 am

Post by kenh83 »

|1ve, i don't run this script.. but imdb change the html on the voting information on their page..


without any testing it seems that in this script line 206 which is this:
regexp -nocase -- {href="ratings".*?>(.*?) votes</a>\)} $data -> votes;

should be changed to this:
regexp -nocase -- {<span itemprop="ratingCount">(.*?)</span> users</a>} $data -> votes;


again.. this is without any testing. just the regex is broke.. and that _SHOULD_ work. please report back if it does work.

Thanks
l
l1ve
Voice
Posts: 7
Joined: Tue Oct 30, 2007 3:18 pm

Post by l1ve »

Thanks it worked

Now if possible i need the rating to work, and get the number the top 250 if the movie is on top 250 and the original name of the movie.

Thanks =)
k
kenh83
Halfop
Posts: 61
Joined: Wed Sep 08, 2010 11:22 am

Post by kenh83 »

To fix rating:

Change line 205 from:

this:
regexp -nocase -- {<span class="rating-rating"><span class="value">(.*?)</span>} $data -> rating;

to this:
regexp -nocase -- {<span itemprop="ratingValue">(.*?)</span>} $data -> rating;

Enjoy.
k
kenh83
Halfop
Posts: 61
Joined: Wed Sep 08, 2010 11:22 am

Post by kenh83 »

If I get some time I may actually re-work this script to get other information such as screening totals and various other things.

we'll see.
l
l1ve
Voice
Posts: 7
Joined: Tue Oct 30, 2007 3:18 pm

Post by l1ve »

kenh83 wrote:If I get some time I may actually re-work this script to get other information such as screening totals and various other things.

we'll see.
That would be great =)
g
gloogle
Voice
Posts: 11
Joined: Wed Oct 05, 2011 5:56 am

Post by gloogle »

hi guys

who can fix votes, and rating, username you are doing a good work can you check this bug please

still Rating: 0/10 (n/a votes)

thanks :D
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

Updated.
+Tagline
-Votes

imdb.tcl
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
g
gloogle
Voice
Posts: 11
Joined: Wed Oct 05, 2011 5:56 am

Post by gloogle »

good one username, rating working well,

just waiting for votes fix

thanks :)
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

There is no votes on imdb page.
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
g
gloogle
Voice
Posts: 11
Joined: Wed Oct 05, 2011 5:56 am

Post by gloogle »

votes still active mate
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

Show me votes in this page, for example.
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

your votes on that page would be this:

Code: Select all

650,716 users 
well, at least this is how we use it on the other imdb script anyway.

Code: Select all

[08:37:00] <@spithash> !imdb tt0111161
[08:37:02] <@nagger> The Shawshank Redemption (1994) - http://imdb.com/title/tt0111161/ - Directed by: Frank Darabont - Genre: Crime | Drama - Budget: $25,000,000(estimated) - Runtime: 142min.
[08:37:04] <@nagger> Synopsis: Andy Dufresne is a young and successful banker whose life changes drastically when he is convicted and sentenced to life imprisonment for the murder of his wife and her lover. Set in the 1940's, the film shows how Andy, with the help of his friend Red, the prison entrepreneur, turns out to be a most unconventional prisoner.
[08:37:07] <@nagger> Rating: 9.2 [*********-] ( 650,716 votes )
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
g
gloogle
Voice
Posts: 11
Joined: Wed Oct 05, 2011 5:56 am

Post by gloogle »

username, test http://www.imdb.com/title/tt0111161/combined

just add /combined at every movie
Post Reply