diff --git a/templates/index.html b/templates/index.html index 607de5a..f251cb7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1135,11 +1135,14 @@ el.style.background = "rgba(74,222,128,0.04)"; } - const title = job.source_type === "youtube" - ? (job.youtube_url || "YouTube") - : (job.parsed_artist && job.parsed_title - ? `${job.parsed_artist} — ${job.parsed_title}` - : (job.filename || job.id)); + // Prikazi: parsed_artist — parsed_title (če obstaja, za YT in upload jobe enako), + // sicer YT naslov (youtube_title), sicer YT URL, sicer filename, sicer id + const title = (job.parsed_artist && job.parsed_title) + ? `${job.parsed_artist} — ${job.parsed_title}` + : (job.youtube_title + || job.youtube_url + || job.filename + || job.id); el.dataset.title = title; const sizeStr = job.output_size_mb ? `${job.output_size_mb} MB` :