summaryrefslogtreecommitdiffstats
path: root/lib/class/vainfo.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-19 06:42:07 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-19 06:42:07 +0000
commita1961111ef936899351924bdb97e1b5d2e3687ec (patch)
treeb8e02014854b0399703ef6f642d7e31372ea4ca9 /lib/class/vainfo.class.php
parent0bbeb6aa28c6eb0e4dcf7d1b7d566575248b5c1a (diff)
downloadampache-a1961111ef936899351924bdb97e1b5d2e3687ec.tar.gz
ampache-a1961111ef936899351924bdb97e1b5d2e3687ec.tar.bz2
ampache-a1961111ef936899351924bdb97e1b5d2e3687ec.zip
fixed album.disk for ogg files and added it to the display
Diffstat (limited to 'lib/class/vainfo.class.php')
-rwxr-xr-xlib/class/vainfo.class.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/class/vainfo.class.php b/lib/class/vainfo.class.php
index bc1c27b6..517d4c30 100755
--- a/lib/class/vainfo.class.php
+++ b/lib/class/vainfo.class.php
@@ -303,12 +303,15 @@ class vainfo {
/* go through them all! */
foreach ($tags as $tag=>$data) {
-
+
/* We need to translate a few of these tags */
switch ($tag) {
case 'tracknumber':
$array['track'] = $this->_clean_tag($data['0']);
break;
+ case 'discnumber':
+ $array['disk'] = $this->_clean_tag($data['0']);
+ break;
case 'date':
$array['year'] = $this->_clean_tag($data['0']);
break;
@@ -366,7 +369,7 @@ class vainfo {
switch ($tag) {
case 'pos':
$el = split('/', $data['0']);
- $array['pos'] = $el[0];
+ $array['disk'] = $el[0];
break;
case 'track_number':
$array['track'] = $this->_clean_tag($data['0'],$this->_file_encoding);