Changeset 327
- Timestamp:
- 02/23/10 20:26:34 (5 months ago)
- Location:
- branches/php4-imdbonly
- Files:
-
- 2 modified
-
doc/CHANGELOG (modified) (1 diff)
-
imdb_person.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/php4-imdbonly/doc/CHANGELOG
r320 r327 7 7 ------------------- 8 8 ! imdb::releaseInfo() did not recognize entries without day - fixed. 9 ! imdb_person::born() and died() have been broken by IMDB changes again - fixed 9 10 10 11 v1.2.3 (14.02.2010) -
branches/php4-imdbonly/imdb_person.class.php
r312 r327 398 398 if ($this->page["Bio"] == "") $this->openpage ("Bio","person"); 399 399 if ( preg_match('|Date of Birth</h5>\s*(.*)<br|iUms',$this->page["Bio"],$match) ) { 400 preg_match(' /OnThisDay\?(day=(\d{1,2})|)(.{0,1}month=(.*?)"|)/ims',$match[1],$daymon);400 preg_match('|/date/(\d+)-(\d+)/.*?>\d+\s+(.*?)<|',$match[1],$daymon); 401 401 preg_match('|/search/name\?birth_year=(\d{4})|ims',$match[1],$dyear); 402 402 preg_match('|/search/name\?birth_place=.*?">(.*)<|ims',$match[1],$dloc); 403 $this->birthday = array("day"=>$daymon[2],"month"=>$daymon[ 4],"mon"=>$this->monthNo($daymon[4]),"year"=>$dyear[1],"place"=>$dloc[1]);403 $this->birthday = array("day"=>$daymon[2],"month"=>$daymon[3],"mon"=>$$daymon[1],"year"=>$dyear[1],"place"=>$dloc[1]); 404 404 } 405 405 } … … 418 418 if ($this->page["Bio"] == "") $this->openpage ("Bio","person"); 419 419 if (preg_match('|Date of Death</h5>(.*)<br|iUms',$this->page["Bio"],$match)) { 420 preg_match(' /OnThisDay\?(day=(\d{1,2})|)(.{0,1}month=(.*?)"|)/ims',$match[1],$daymon);420 preg_match('|/date/(\d+)-(\d+)/.*?>\d+\s+(.*?)<|',$match[1],$daymon); 421 421 preg_match('|/search/name\?death_date=(\d{4})|ims',$match[1],$dyear); 422 422 preg_match('/(\,\s*([^\(]+))/ims',$match[1],$dloc); 423 423 preg_match('/\(([^\)]+)\)/ims',$match[1],$dcause); 424 $this->deathday = array("day"=>$daymon[2],"month"=>$daymon[ 4],"mon"=>$this->monthNo($daymon[4]),"year"=>$dyear[1],"place"=>$dloc[2],"cause"=>$dcause[1]);424 $this->deathday = array("day"=>$daymon[2],"month"=>$daymon[3],"mon"=>$daymon[1],"year"=>$dyear[1],"place"=>$dloc[2],"cause"=>$dcause[1]); 425 425 } 426 426 }
