Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Community Cafe
Notices

Closed Thread
  #1  
Old 7th January 2010, 10:03
proba10 proba10 is offline
Member
 
Join Date: Dec 2008
Choose
Posts: 7
Default 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

Last edited by proba10; 7th January 2010 at 11:18.
  #2  
Old 7th January 2010, 13:39
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
Would you like the share with others how you fixed it?

p
  #3  
Old 7th January 2010, 15:24
proba10 proba10 is offline
Member
 
Join Date: Dec 2008
Choose
Posts: 7
Default
Quote:
Originally Posted by phogo View Post
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, $rating, PREG_SET_ORDER); 
replace

PHP Code:
  $regex = '#<b>(\d\.\d/10)</b>#Uis';
  
preg_match_all ($regex, $text, $rating, PREG_SET_ORDER); 
finish;
The Following User Says Thank You to proba10 For This Useful Post:
Phogo (8th January 2010)
Closed Thread

Tags
dead , imdb , rating

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 22:03. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2026, vBulletin Solutions Inc.