Improved player
Build and Publish / Build and Publish Docker Image (push) Successful in 2m34s

This commit is contained in:
Ultradesu
2026-06-03 03:45:23 +03:00
parent 1e1453e465
commit d31dce3ece
5 changed files with 67 additions and 23 deletions
+11
View File
@@ -2048,6 +2048,17 @@ document.addEventListener('alpine:init', () => {
}
},
isFeaturedOnlyArtist(artist) {
return Number(artist?.release_count || 0) <= 0 && Number(artist?.track_count || 0) > 0;
},
shouldShowFeaturedSeparator(index) {
if (!(this.view === 'artists' || this.view === 'my_uploads') || index <= 0) return false;
const current = this.artists[index];
const previous = this.artists[index - 1];
return this.isFeaturedOnlyArtist(current) && !this.isFeaturedOnlyArtist(previous);
},
async openArtist(id, options = {}) {
this._beginNavigation('#artist/' + id, options);
this.searchQuery = '';