show whether album is soundtrack or compilation

This commit is contained in:
geoffrey45
2022-06-07 16:48:12 +03:00
parent e75ac3e394
commit 7b41d91b83
2 changed files with 10 additions and 10 deletions
+5 -3
View File
@@ -14,6 +14,8 @@ from app.lib.populate import Populate
from PIL import Image
from concurrent.futures import ThreadPoolExecutor
from app.lib.trackslib import create_all_tracks
@helpers.background
def reindex_tracks():
@@ -40,9 +42,9 @@ def populate():
pop = Populate()
pop.run()
# tracks = create_all_tracks()
# api.TRACKS.clear()
# api.TRACKS.extend(tracks)
tracks = create_all_tracks()
api.TRACKS.clear()
api.TRACKS.extend(tracks)
class getArtistImage:
+5 -7
View File
@@ -12,13 +12,11 @@
</div>
<div class="info">
<div class="top" v-motion-slide-from-top>
<div
class="h"
v-if="props.album.artist.toLowerCase() == 'various artists'"
>
Compilation
<div class="h">
<span v-if="album.is_soundtrack">Soundtrack</span>
<span v-else-if="album.is_compilation">Compilation</span>
<span v-else>Album</span>
</div>
<div class="h" v-else>Album</div>
<div class="title ellip">{{ props.album.title }}</div>
</div>
<div class="bottom">
@@ -66,7 +64,7 @@ extrackColors();
background-color: #000000;
background-image: linear-gradient(37deg, $black 20%, $gray, $black 90%);
.art {
.art {
width: 100%;
height: 100%;
left: 1rem;