Use latest PHPExiftool API

This commit is contained in:
Romain Neutron
2012-05-07 00:15:03 +02:00
parent 64a52ad414
commit 925fc616e7

View File

@@ -471,7 +471,7 @@ class system_file extends \SplFileInfo
foreach ($uniqueKeys as $uniqueKey) {
if ($metadatas->containsKey($uniqueKey)) {
$value = (string) $metadatas->get($uniqueKey)->getValue()->getValue();
$value = (string) $metadatas->get($uniqueKey)->getValue()->asString();
if (uuid::is_valid($value)) {
$this->uuid = $value;
@@ -721,7 +721,7 @@ class system_file extends \SplFileInfo
$tfields[$src] = array();
}
foreach ((array) $metadatas->get($key)->getValue()->getValue() as $value) {
foreach ($metadatas->get($key)->getValue()->asArray() as $value) {
$value = $unicode->substituteCtrlCharacters($value, ' ');