feat: show playlist description in detail view

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-04-26 01:29:16 +02:00
1 parent 729e9d260c
commit 1c59b4eccd
4 files changed
+5 -1

No files matched your search

+2
View File
@@ -439,6 +439,8 @@ async function loadPlaylistDetail(pl){
const songs=full.entry||[];
const totalMin=Math.round(songs.reduce((s,t)=>s+(t.duration||0),0)/60);
document.getElementById('playlist-detail-stats').textContent=`${songs.length} Titel · ${totalMin} Min.`;
const descEl=document.getElementById('playlist-detail-desc');
if(descEl){descEl.textContent=full.comment||'';descEl.style.display=full.comment?'':'none';}
document.getElementById('btn-play-playlist').onclick=()=>playQueue(songs,0);
document.getElementById('btn-shuffle-playlist').onclick=()=>{
const shuffled=[...songs].sort(()=>Math.random()-.5);