summaryrefslogtreecommitdiff
path: root/includes/inc_files.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/inc_files.php')
-rwxr-xr-xincludes/inc_files.php4
1 files 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'];