diff --git a/app/Models/Album.php b/app/Models/Album.php index 4ce398f1..876e9ca2 100644 --- a/app/Models/Album.php +++ b/app/Models/Album.php @@ -152,7 +152,8 @@ class Album extends Model implements Searchable, Commentable, Favouritable 'extension' => $format['extension'], 'url' => $album->getDownloadUrl($name), 'size' => Helpers::formatBytes($album->getFilesize($name)), - 'isCacheable' => (in_array($name, Track::$CacheableFormats) ? true : false) + 'isCacheable' => (in_array($name, Track::$CacheableFormats) ? true : false), + 'isMixedLosslessness' => (in_array($name, Track::$LosslessFormats) && !$album->hasLosslessTracksOnly() && $album->hasLosslessTracks()) ]; } diff --git a/app/Models/Playlist.php b/app/Models/Playlist.php index 3fea8ecf..f2639a3f 100644 --- a/app/Models/Playlist.php +++ b/app/Models/Playlist.php @@ -127,7 +127,8 @@ class Playlist extends Model implements Searchable, Commentable, Favouritable 'extension' => $format['extension'], 'url' => $playlist->getDownloadUrl($name), 'size' => Helpers::formatBytes($playlist->getFilesize($name)), - 'isCacheable' => (in_array($name, Track::$CacheableFormats) ? true : false) + 'isCacheable' => (in_array($name, Track::$CacheableFormats) ? true : false), + 'isMixedLosslessness' => (in_array($name, Track::$LosslessFormats) && !$playlist->hasLosslessTracksOnly() && $playlist->hasLosslessTracks()) ]; } diff --git a/public/templates/albums/show.html b/public/templates/albums/show.html index b7f520ca..710368ed 100644 --- a/public/templates/albums/show.html +++ b/public/templates/albums/show.html @@ -6,11 +6,11 @@