summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2012-04-15 02:52:15 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-04-15 03:02:29 -0400
commit4aa37feccc93b6c4508bd5774436d8ba69920b4a (patch)
treebbdbae5e2866cf0d93581c0cf00ae148d4f3cfb9
parent0ccf7d76bbb79e9dac068a65cf55d39fd1d8a043 (diff)
downloadampache-4aa37feccc93b6c4508bd5774436d8ba69920b4a.tar.gz
ampache-4aa37feccc93b6c4508bd5774436d8ba69920b4a.tar.bz2
ampache-4aa37feccc93b6c4508bd5774436d8ba69920b4a.zip
Fix disk number parsing for ID3v2
According to the changelog, getID3 1.7.9 standardised on part_of_a_set as the key for this info (pulled from TPOS or TPA, depending on the minor version of ID3v2); we were looking for 'pos', which is wrong.
-rwxr-xr-xdocs/CHANGELOG1
-rw-r--r--lib/class/vainfo.class.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG
index cc3e81cb..d7158b70 100755
--- a/docs/CHANGELOG
+++ b/docs/CHANGELOG
@@ -4,6 +4,7 @@
--------------------------------------------------------------------------
v.3.6-Alpha2
+ - Fixed ID3v2 disk number parsing
- Updated getID3 to 1.9.3
- Added php-gettext for fallback emulation when a locale (or gettext)
isn't supported
diff --git a/lib/class/vainfo.class.php b/lib/class/vainfo.class.php
index 53ad2578..eba3565b 100644
--- a/lib/class/vainfo.class.php
+++ b/lib/class/vainfo.class.php
@@ -672,7 +672,7 @@ class vainfo {
$array['genre'][] = $this->_clean_tag($genre);
}
break;
- case 'pos':
+ case 'part_of_a_set':
$el = explode('/', $data['0']);
$array['disk'] = $el[0];
$array['totaldiscs'] = $el[1];