summaryrefslogtreecommitdiffstats
path: root/lib/class/vainfo.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-04-09 20:51:04 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-04-09 20:51:04 +0000
commit02a6123917e4baf9dac66e90d2ea483db115330e (patch)
treedccf113e8c675c14683e0478c2f743fd23c703f5 /lib/class/vainfo.class.php
parent09f36356bc1445c7ada92b7c84f8640f309352a3 (diff)
downloadampache-02a6123917e4baf9dac66e90d2ea483db115330e.tar.gz
ampache-02a6123917e4baf9dac66e90d2ea483db115330e.tar.bz2
ampache-02a6123917e4baf9dac66e90d2ea483db115330e.zip
tweaked vainfo to accept 1/2 as a valid disk from TPOS also tweaked id3v2 tags to include TPOS in the comments array
Diffstat (limited to 'lib/class/vainfo.class.php')
-rw-r--r--lib/class/vainfo.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/class/vainfo.class.php b/lib/class/vainfo.class.php
index 16204b4c..97888430 100644
--- a/lib/class/vainfo.class.php
+++ b/lib/class/vainfo.class.php
@@ -264,6 +264,10 @@ class vainfo {
// Specific Audio Flags
if (!$results[$key]['video_codec']) {
+ $slash_point = strpos($results[$key]['disk'],'/');
+ if ($slash_point !== FALSE) {
+ $results[$key]['disk'] = substr($results[$key]['disk'],0,$slash_point);
+ }
/* These are used to generate the correct ID's later */
$info['year'] = intval($results[$key]['year']);
$info['disk'] = intval($results[$key]['disk']);