Changeset 346

Show
Ignore:
Timestamp:
03/08/10 19:17:51 (5 months ago)
Author:
izzy
Message:

! imdb::quotes() had some annoying "share this quote" added due to IMDB site changes (ticket #129, backport from trunk)

Location:
branches/php4-imdbonly
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/php4-imdbonly/doc/CHANGELOG

    r340 r346  
    88! imdb::releaseInfo() was also partly affected by the last IMDB site changes 
    99! another IMDB site change broke imdb::alsoknow() 
     10! imdb::quotes() had some annoying "share this quote" added due to IMDB site changes 
    1011 
    1112v1.2.4 (24.10.2010) 
  • branches/php4-imdbonly/imdb.class.php

    r338 r346  
    10941094      if ( $this->page["Quotes"] == "" ) $this->openpage("Quotes"); 
    10951095      if ( $this->page["Quotes"] == "cannot open page" ) return array(); // no such page 
    1096       if (preg_match_all("/<a name=\"qt.*?<\/a>\s*(.*?)<hr/",str_replace("\n"," ",$this->page["Quotes"]),$matches)) 
     1096      if (preg_match_all('|<a name="qt.*?</a>\s*(.*?)<p class="linksoda"|ims',str_replace("\n"," ",$this->page["Quotes"]),$matches)) 
    10971097        foreach ($matches[1] as $match) $this->moviequotes[] = str_replace('href="/name/','href="http://'.$this->imdbsite.'/name/',$match); 
    10981098    }