summaryrefslogtreecommitdiffstats
path: root/lib/class/vainfo.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-19 01:54:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-19 01:54:26 +0000
commitf3233e12d81813b2574af831472fb4136066f8ee (patch)
tree73beae1df334b79cb4274fa607311e54046c6cd4 /lib/class/vainfo.class.php
parentd527e50395f3e76bbc6c76fcd4882dfbc88ff152 (diff)
downloadampache-f3233e12d81813b2574af831472fb4136066f8ee.tar.gz
ampache-f3233e12d81813b2574af831472fb4136066f8ee.tar.bz2
ampache-f3233e12d81813b2574af831472fb4136066f8ee.zip
sync to trunk
Diffstat (limited to 'lib/class/vainfo.class.php')
-rw-r--r--lib/class/vainfo.class.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/class/vainfo.class.php b/lib/class/vainfo.class.php
index bc7f551d..3f87863e 100644
--- a/lib/class/vainfo.class.php
+++ b/lib/class/vainfo.class.php
@@ -68,7 +68,7 @@ class vainfo {
$this->_getID3->option_tags_html = false;
$this->_getID3->option_extra_info = false;
$this->_getID3->option_tag_lyrics3 = false;
- $this->_getID3->encoding = $this->encoding;
+// $this->_getID3->encoding = $this->encoding;
$this->_getID3->option_tags_process = true;
/* Check for ICONV */
@@ -485,19 +485,14 @@ class vainfo {
* in the file
*/
private function _clean_tag($tag,$encoding='') {
-
- /* Guess that it's UTF-8 */
- if (!$encoding) { $encoding = 'UTF-8'; }
- if ($this->_iconv AND strcasecmp($encoding,$this->encoding) != 0) {
+ // If we've got iconv then go ahead and clear her up
+ if ($this->_iconv) {
+ /* Guess that it's UTF-8 */
+ if (!$encoding) { $encoding = $this->_getID3->encoding; }
$charset = $this->encoding . '//TRANSLIT';
$tag = iconv($encoding,$charset,$tag);
}
- elseif ($this->_iconv) {
- // We have to transcode anyway and protect from non-[CHARGET] chars
- $charset = $this->encoding . '//IGNORE';
- $tag = iconv($this->encoding,$charset,$tag);
- }
return $tag;