Skip to content

Commit

Permalink
no cover for "unknown" Album
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello authored Nov 13, 2016
1 parent 11f5c14 commit 2da461d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controller/musiccontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ public function loadAlbums(){
$aAlbums='';
while( $row = $result->fetchRow()) {
$row['artist'] = $this->loadArtistsToAlbum($row['id']);
if($row['cover'] === null){
$row['backgroundColor'] = '#D3D3D3';
$row['titlecolor'] = '#333333';
$row['backgroundColor'] = '#D3D3D3';
$row['titlecolor'] = '#333333';
if ($row['name'] === $this->l10n->t('Unknown') AND $row['artist'] === $this->l10n->t('Various Artists')){
$row['cover'] = '';
}elseif($row['cover'] === null){
$row['cover'] = '';
}else{
$row['backgroundColor'] = '#D3D3D3';
$row['titlecolor'] = '#333333';
$row['cover'] = 'data:image/jpg;base64,'.$row['cover'];
}
$aAlbums[$row['id']] = $row;
Expand Down

0 comments on commit 2da461d

Please sign in to comment.