From b3634df51a7a6a75f30e3c18e2e90ca8d2034932 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 19 Oct 2006 05:27:39 +0000 Subject: in theory a patch that allows getid3() to continue working even with some iconv() issues --- modules/id3/vainfo.class.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'modules/id3/vainfo.class.php') diff --git a/modules/id3/vainfo.class.php b/modules/id3/vainfo.class.php index 18a3ed4f..74d276d9 100755 --- a/modules/id3/vainfo.class.php +++ b/modules/id3/vainfo.class.php @@ -68,6 +68,7 @@ class vainfo { $this->_getID3->option_md5_data_source = false; $this->_getID3->option_tags_html = false; $this->_getID3->option_extra_info = false; + $this->_getID3->option_tag_lyrics3 = false; $this->_getID3->encoding = $this->encoding; /* Check for ICONV */ @@ -191,8 +192,8 @@ class vainfo { case 'id3v2': $results[$key] = $this->_parse_id3v2($tag_array); break; -// case 'ape': -// $results[$key] = $this->_parse_ape($tag_array); + case 'ape': + $results[$key] = $this->_parse_ape($tag_array); break; case 'quicktime': $results[$key] = $this->_parse_quicktime($tag_array); @@ -383,6 +384,13 @@ class vainfo { */ function _parse_ape($tags) { + foreach ($tags as $tag=>$data) { + + $array[$tag] = $this->_clean_tag($data['0'],$this->_file_encoding); + + } // end foreach tags + + return $array; } // _parse_ape -- cgit