summaryrefslogtreecommitdiffstats
path: root/modules/id3/getid3/write.id3v2.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.id3v2.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.id3v2.php')
-rw-r--r--modules/id3/getid3/write.id3v2.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/id3/getid3/write.id3v2.php b/modules/id3/getid3/write.id3v2.php
index 4f15a722..a575f20b 100644
--- a/modules/id3/getid3/write.id3v2.php
+++ b/modules/id3/getid3/write.id3v2.php
@@ -49,6 +49,7 @@ class getid3_write_id3v2
$this->paddedlength = max(@$OldThisFileInfo['id3v2']['headerlength'], $this->paddedlength);
if ($NewID3v2Tag = $this->GenerateID3v2Tag()) {
+
if (file_exists($this->filename) && is_writeable($this->filename) && isset($OldThisFileInfo['id3v2']['headerlength']) && ($OldThisFileInfo['id3v2']['headerlength'] == strlen($NewID3v2Tag))) {
// best and fastest method - insert-overwrite existing tag (padded to length of old tag if neccesary)