Show public podcasts in the federated search and subscribe from a card

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sanapachandClaude Opus 5.5 committed 2026-11-20 15:12:51 +02:00
1 parent 20bf30eae8
commit 59d94203db
6 files changed
+625 -5

No files matched your search

+32
View File
@@ -625,6 +625,38 @@
</div>
</template>
</div>
<div class="search-podcasts-section"
x-show="!$store.library.similaritySearchLabel && ($store.library.federationSearch.podcasts || []).length > 0"
x-cloak>
<h3 class="search-subsection-title">{{ t.player_podcast_found_title }}</h3>
<div class="search-releases-row">
<template x-for="hit in ($store.library.federationSearch.podcasts || [])"
:key="hit.podcast_id">
<div class="search-release-card federation-entity-card podcast-found-card"
role="button" tabindex="0"
@click="$store.podcasts.openFound(hit)"
@keydown.enter="$store.podcasts.openFound(hit)">
<div class="search-release-cover">
<template x-if="hit.image_url">
<img class="artwork-image" :src="hit.image_url" alt="" aria-hidden="true"
loading="lazy" referrerpolicy="no-referrer"
@load="$event.currentTarget.classList.add('artwork-loaded')"
@error="$event.currentTarget.classList.remove('artwork-loaded')">
</template>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0014 0M12 17v5M8 22h8"/>
</svg>
</div>
<div class="podcast-found-badges">
<span class="podcast-type-badge">{{ t.player_podcast_type }}</span>
<span class="podcast-subscribed-badge" x-show="hit.subscribed">{{ t.player_podcast_found_subscribed }}</span>
</div>
<div class="card-title" x-text="hit.title"></div>
<div class="card-subtitle" x-text="$store.podcasts.foundSubtitle(hit)"></div>
</div>
</template>
</div>
</div>
<template x-for="(track, idx) in $store.library.federationSearch.tracks"
:key="track.key.content_id">
<div class="track-row federation-track-row"