From 4aa37feccc93b6c4508bd5774436d8ba69920b4a Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Sun, 15 Apr 2012 02:52:15 -0400 Subject: 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. --- docs/CHANGELOG | 1 + lib/class/vainfo.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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]; -- cgit