summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-23 15:45:31 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-23 15:45:31 +0000
commit51f91c7b345cc90e742333976fa464d316a41283 (patch)
tree1dd25448acacf13c86d32ef1aa7878a06f1434f9 /modules
parent2b62d84743744d01e71f8e6772261300b367fe8b (diff)
downloadampache-51f91c7b345cc90e742333976fa464d316a41283.tar.gz
ampache-51f91c7b345cc90e742333976fa464d316a41283.tar.bz2
ampache-51f91c7b345cc90e742333976fa464d316a41283.zip
updated spanish translation and tweak to vainfo
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/id3/vainfo.class.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/id3/vainfo.class.php b/modules/id3/vainfo.class.php
index 81b96446..b09d465e 100755
--- a/modules/id3/vainfo.class.php
+++ b/modules/id3/vainfo.class.php
@@ -169,6 +169,13 @@ class vainfo {
$results = array();
+ /* Return false if we don't have
+ * any tags to look at
+ */
+ if (!is_array($this->_raw['tags'])) {
+ return false;
+ }
+
/* The tags can come in many different shapes and colors
* depending on the encoding time of day and phase of the
* moon
@@ -187,6 +194,9 @@ class vainfo {
// case 'ape':
// $results[$key] = $this->_parse_ape($tag_array);
break;
+ case 'quicktime':
+ $results[$key] = $this->_parse_quicktime($tag_array);
+ break;
default:
debug_event('vainfo','Error: Unable to determine tag type of ' . $key . ' for file ' . $this->filename . ' Assuming id3v2','5');
$results[$key] = $this->_parse_id3v2($tag_array);
@@ -369,8 +379,24 @@ class vainfo {
*/
function _parse_quicktime($tags) {
+ /* Results array */
+ $array = array();
+
+ /* go through them all! */
+ foreach ($tags as $tag=>$data) {
+
+ /* We need to translate a few of these tags */
+ switch ($tag) {
+ case 'creation_date':
+ $array['year'] = $this->_clean_tag($data['0']);
+ break;
+ } // end switch
+
+ $array[$tag] = $this->_clean_tag($data['0']);
+ } // end foreach
+ return $array;
} // _parse_quicktime