Fixed bug where the metadata was not loading correctly in StoredFile.

Added more descriptive titles to Playlist UnitTests.

Added a test to get that the media file clip length is set/get correctly.
This commit is contained in:
paul.baranowski 2010-11-15 17:02:18 -05:00
parent 228aca224e
commit 31fd85a29f
3 changed files with 46 additions and 26 deletions

View file

@ -433,7 +433,7 @@ class StoredFile {
$this->gunid = StoredFile::generateGunid();
}
else {
$this->md = $this->loadMetadata();
$this->loadMetadata();
$this->exists = is_file($this->filepath) && is_readable($this->filepath);
}
}
@ -492,6 +492,7 @@ class StoredFile {
." WHERE gunid='$escapedValue'";
//var_dump($sql);
$this->md = $CC_DBC->getRow($sql);
//var_dump($this->md);
if (PEAR::isError($this->md)) {
$error = $this->md;
$this->md = null;
@ -508,7 +509,9 @@ class StoredFile {
$compatibilityData[$xmlName] = $value;
}
}
//var_dump($compatibilityData);
$this->md = array_merge($this->md, $compatibilityData);
//var_dump($this->md);
//$_SESSION["debug"] = $this->md;
}