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 PIL import Image
from concurrent.futures import ThreadPoolExecutor from concurrent.futures import ThreadPoolExecutor
from app.lib.trackslib import create_all_tracks
@helpers.background @helpers.background
def reindex_tracks(): def reindex_tracks():
@@ -40,9 +42,9 @@ def populate():
pop = Populate() pop = Populate()
pop.run() pop.run()
# tracks = create_all_tracks() tracks = create_all_tracks()
# api.TRACKS.clear() api.TRACKS.clear()
# api.TRACKS.extend(tracks) api.TRACKS.extend(tracks)
class getArtistImage: class getArtistImage:
+4 -6
View File
@@ -12,13 +12,11 @@
</div> </div>
<div class="info"> <div class="info">
<div class="top" v-motion-slide-from-top> <div class="top" v-motion-slide-from-top>
<div <div class="h">
class="h" <span v-if="album.is_soundtrack">Soundtrack</span>
v-if="props.album.artist.toLowerCase() == 'various artists'" <span v-else-if="album.is_compilation">Compilation</span>
> <span v-else>Album</span>
Compilation
</div> </div>
<div class="h" v-else>Album</div>
<div class="title ellip">{{ props.album.title }}</div> <div class="title ellip">{{ props.album.title }}</div>
</div> </div>
<div class="bottom"> <div class="bottom">