diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-19 05:27:39 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-19 05:27:39 +0000 |
commit | b3634df51a7a6a75f30e3c18e2e90ca8d2034932 (patch) | |
tree | 2a5e6467bec512dc8f9bbe88c00fd3b7eb2d956c /modules/id3/vainfo.class.php | |
parent | d45a743f64419e590a59cb1589abde773505c7d7 (diff) | |
download | ampache-b3634df51a7a6a75f30e3c18e2e90ca8d2034932.tar.gz ampache-b3634df51a7a6a75f30e3c18e2e90ca8d2034932.tar.bz2 ampache-b3634df51a7a6a75f30e3c18e2e90ca8d2034932.zip |
in theory a patch that allows getid3() to continue working even with some iconv() issues
Diffstat (limited to 'modules/id3/vainfo.class.php')
-rwxr-xr-x | modules/id3/vainfo.class.php | 12 |
1 files changed, 10 insertions, 2 deletions
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 |