summaryrefslogtreecommitdiffstats
path: root/modules/id3/getid3/write.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-05 15:36:45 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-05 15:36:45 +0000
commita095a02e45d81e159c491cf93d8666ece8450347 (patch)
tree182f8047ecb125047055023d407d7ca090caefb5 /modules/id3/getid3/write.php
parent17ab54d284c6d82f96a5543fa5b5f8ee65e20307 (diff)
downloadampache-a095a02e45d81e159c491cf93d8666ece8450347.tar.gz
ampache-a095a02e45d81e159c491cf93d8666ece8450347.tar.bz2
ampache-a095a02e45d81e159c491cf93d8666ece8450347.zip
updated to the newest versino of getid3
Diffstat (limited to 'modules/id3/getid3/write.php')
-rw-r--r--modules/id3/getid3/write.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/id3/getid3/write.php b/modules/id3/getid3/write.php
index 04c0226e..40a79e9e 100644
--- a/modules/id3/getid3/write.php
+++ b/modules/id3/getid3/write.php
@@ -280,7 +280,7 @@ class getid3_writetags
case 'id3v2.3':
case 'id3v2.4':
$id3v2_writer = new getid3_write_id3v2;
- $id3v2_writer->majorversion = (int) substr($tagformat, -1);
+ $id3v2_writer->majorversion = intval(substr($tagformat, -1));
$id3v2_writer->paddedlength = $this->id3v2_paddedlength;
if (($id3v2_writer->tag_data = $this->FormatDataForID3v2($id3v2_writer->majorversion)) !== false) {
$id3v2_writer->filename = $this->filename;
@@ -514,6 +514,7 @@ class getid3_writetags
// convert data from other encoding to UTF-16
$tag_data_id3v2[$ID3v2_framename][$key]['encodingid'] = 1;
$tag_data_id3v2[$ID3v2_framename][$key]['data'] = getid3_lib::iconv_fallback($this->tag_encoding, 'UTF-16', $value);
+
} else {
// convert data from other encoding to UTF-8
$tag_data_id3v2[$ID3v2_framename][$key]['encodingid'] = 3;