From 89dbb951e87914fa73a7bad65a5c7d4d9bef0131 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Fri, 26 Feb 2010 14:48:28 +0100 Subject: switch id3 priority --- includes/inc_files.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/inc_files.php b/includes/inc_files.php index 3e9e90f..c2d2f14 100755 --- a/includes/inc_files.php +++ b/includes/inc_files.php @@ -68,10 +68,10 @@ function mediagetmusicinfo($file ="") $getid3 = new getID3; $fileinfo = $getid3->analyze($file); - $name = $fileinfo['tags']['id3v1']['title'][0]; + $name = $fileinfo['tags']['id3v2']['title'][0]; if ($name == "") { - $name = $fileinfo['tags']['id3v2']['title'][0]; + $name = $fileinfo['tags']['id3v1']['title'][0]; if ($name == "") { $name = $fileinfo['filename']; -- cgit v1.2.3