mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 10:49:37 +02:00
This commit is contained in:
parent
4f204d2d73
commit
cd55dda99d
2 changed files with 9 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue