Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Community Cafe (http://www.bvlist.com/forumdisplay.php?f=18)
-   -   Dead IMDB rating (http://www.bvlist.com/showthread.php?t=4157)

proba10 7th January 2010 10:03

Dead IMDB rating
 
07.10.2010 dead persons!

the tsse and fast IMDB ordering died probable the script was exchanged on IMDB website.
They are out of order!!
0.0/10

1.)

dead

TSSE IMDB mod

2.)

dead

PHP Code:

function getMovieRating($imdb_website)
    {
        if (
preg_match('/<b>([0-9]{1,2}\.[0-9]{1,2})\/10<\/b> \(.+ votes\)/'$imdb_website$hit)) 

        {
            return 
$hit[1];
        }
        else
        {
            return 
FALSE;
        }
   } 

3.)

dead

PHP Code:

function imdb_rating($link)
{
    
$page file_get_contents($link);

    
preg_match_all("/<div class=\"meta\">\n<b>(.+?)\/10<\/b>/"$page$matches);

    return 
$matches[1][0];


Help me please, is for somebody working?

update:
I solved it already thank you. beautiful day

Phogo 7th January 2010 13:39

Would you like the share with others how you fixed it?

p

proba10 7th January 2010 15:24

Quote:

Originally Posted by phogo (Post 19015)
Would you like the share with others how you fixed it?

p

ok

tsse 4.3 - 5.6

include/ts_imdb.php

search

PHP Code:

  $regex '#<b>User Rating:</b>(.*)</small>#U';
  
preg_match_all ($regex$text$ratingPREG_SET_ORDER); 

replace

PHP Code:

  $regex '#<b>(\d\.\d/10)</b>#Uis';
  
preg_match_all ($regex$text$ratingPREG_SET_ORDER); 

finish;


All times are GMT +2. The time now is 06:22.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.