Thread: IMDB Mod
View Single Post
  #14  
Old 6th April 2013, 06:16
tinydownload tinydownload is offline
Member
 
Join Date: Apr 2013
P2P
Posts: 1
Default
dose any one know how to pull the images from the new imdb layout?

i managed to get votes working

Code:
      /** Setup votes
       * @method private rate_vote
       */
      private function rate_vote() {
        if ($this->page["Title"] == "") $this->openpage ("Title");
        if (preg_match('!<span itemprop="ratingValue">(\d{1,2}\.\d)!i',$this->page["Title"],$match)){
          $this->main_rating = $match[1];    
        } else {
          $this->main_rating = 0;
        }
        if (preg_match('#itemprop="ratingCount"[^>]*>(.*)</span>#U',$this->page["Title"],$match)){
            $this->main_votes = $match[1];
        }else{
            $this->main_votes = 0;
        }                                                     
      }
Reply With Quote