summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/album.class.php5
-rw-r--r--lib/class/catalog.class.php4
-rwxr-xr-xlib/class/vainfo.class.php7
3 files changed, 12 insertions, 4 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php
index cb767b15..dc42aa2d 100644
--- a/lib/class/album.class.php
+++ b/lib/class/album.class.php
@@ -225,6 +225,11 @@ class Album {
$this->year = "N/A";
}
+ // If we've got a disk append it
+ if ($this->disk) {
+ $this->f_name_link .= ' [' . _('Disk') . ' ' . $this->disk . ']';
+ }
+
} // format
/**
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index b9e5aefd..536be20f 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -953,7 +953,7 @@ class Catalog {
$artist = $results['artist'];
$album = $results['album'];
$genre = $results['genre'];
- $disk = $results['pos'];
+ $disk = $results['disk'];
/* Clean up Old Vars */
unset($vainfo,$key);
@@ -1893,7 +1893,7 @@ class Catalog {
$size = $results['size'];
$song_time = $results['time'];
$track = $results['track'];
- $disk = $results['pos'];
+ $disk = $results['disk'];
$year = $results['year'];
$comment = $results['comment'];
$current_time = time();
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);