Changeset 1741
- Timestamp:
- 09/04/08 15:20:49 (3 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
docs/CHANGELOG (modified) (1 diff)
-
lib/class/vainfo.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/CHANGELOG
r1732 r1741 5 5 -------------------------------------------------------------------------- 6 6 v.3.5-Alpha1 7 - Fixed vainfo.class.php didn't catch exception for first analyze. 8 - Fixed iconv() returns an empty strings (Thx abs0) 7 9 - Updated getid3 for multi-byte characters, but some wrong id3tags 8 10 have occurred exception error. -
trunk/lib/class/vainfo.class.php
r1732 r1741 69 69 70 70 // get id3tag encodings 71 $this->_raw2 = $this->_getID3->analyze($file); 71 try { 72 $this->_raw2 = $this->_getID3->analyze($file); 73 } 74 catch (Exception $error) { 75 debug_event('getid3',$error->message,'1'); 76 } 77 72 78 if(function_exists('mb_detect_encoding')) { 73 79 $this->encoding_id3v1 = array(); … … 567 573 if ($this->_iconv) { 568 574 /* Guess that it's UTF-8 */ 575 /* Try GNU iconv //TRANSLIT extension first */ 569 576 if (!$encoding) { $encoding = $this->_getID3->encoding; } 570 577 $charset = $this->encoding . '//TRANSLIT'; 571 $tag = iconv($encoding,$charset,$tag); 572 } 573 574 return $tag; 578 $enc_tag = iconv($encoding,$charset,$tag); 579 if(strcmp($enc_tag, "") == 0) { 580 $enc_tag = iconv($encoding,$this->encoding,$tag); 581 } 582 } 583 584 return $enc_tag; 575 585 576 586 } // _clean_tag
