1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 10:49:37 +02:00

Fix disk number and album artist metadata read from quicktime files (fix #684 and fix #685)

This commit is contained in:
Afterster 2015-01-23 06:45:38 +01:00
parent 4f204d2d73
commit cd55dda99d
2 changed files with 9 additions and 2 deletions

View file

@ -504,12 +504,13 @@ class Art extends database_object
private static function delete_rec_dir($path)
{
debug_event('Art', 'Deleting ' . $path . ' directory...', 5);
if (Core::is_readable($path)) {
foreach (scandir($path) as $file) {
if ('.' === $file || '..' === $file) continue;
elseif (is_dir($path . '/' . $file)) self::delete_rec_dir($path . '/' . $file);
else
unlink($path . '/' . $file);
else unlink($path . '/' . $file);
}
rmdir($path);
}

View file

@ -947,6 +947,12 @@ class vainfo
case 'track_number':
$parsed['track'] = $data[0];
break;
case 'disc_number':
$parsed['disk'] = $data[0];
break;
case 'album_artist':
$parsed['albumartist'] = $data[0];
break;
default:
$parsed[$tag] = $data[0];
break;