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

Image art on artists edition and index display preferences

This commit is contained in:
Afterster 2014-09-15 07:37:17 +02:00
parent 2234c3a7b9
commit 66dd1ff782
13 changed files with 115 additions and 19 deletions

View file

@ -325,6 +325,7 @@ class Recommendation
// Data newer than 6 months, use it
if (($artist->last_update + 15768000) > time()) {
$results = array();
$results['id'] = $artist_id;
$results['summary'] = $artist->summary;
$results['placeformed'] = $artist->placeformed;
$results['yearformed'] = $artist->yearformed;
@ -346,6 +347,7 @@ class Recommendation
$results['megaphoto'] = $xml->artist->image[4];
if ($artist) {
$results['id'] = $artist->id;
if (!empty($results['summary']) || !empty($results['megaphoto'])) {
$artist->update_artist_info($results['summary'], $results['placeformed'], $results['yearformed']);