From 59d94203dbbfb36a148ae47661edc8a780bcaf6e Mon Sep 17 00:00:00 2001 From: Sanapach Date: Thu, 19 Nov 2026 23:29:21 +0200 Subject: [PATCH] Show public podcasts in the federated search and subscribe from a card Co-Authored-By: Claude Opus 5.5 --- src/i18n/phrases.rs | 13 +++ templates/player/modals.html | 79 +++++++++++++ templates/player/scripts.html | 204 ++++++++++++++++++++++++++++++++- templates/player/shell.html | 32 ++++++ templates/player/styles.html | 118 +++++++++++++++++++ tests/player_podcasts.test.cjs | 184 ++++++++++++++++++++++++++++- 6 files changed, 625 insertions(+), 5 deletions(-) diff --git a/src/i18n/phrases.rs b/src/i18n/phrases.rs index 41ec012..096689f 100644 --- a/src/i18n/phrases.rs +++ b/src/i18n/phrases.rs @@ -460,6 +460,19 @@ translations! { player_podcast_loading: "Preparing the episode…", "Готовим выпуск…"; player_podcast_feed: "Feed", "Лента"; player_podcast_request_failed: "Request failed", "Запрос не выполнен"; + player_podcast_found_title: "Podcasts", "Подкасты"; + player_podcast_type: "Podcast", "Подкаст"; + player_podcast_found_subscribed: "Already subscribed", "Уже подписан"; + player_podcast_found_open: "Open", "Открыть"; + player_podcast_found_subscribing: "Subscribing…", "Подписываемся…"; + player_podcast_found_done: "Subscribed. The subscription is private: only your devices see it.", "Вы подписались. Подписка приватная: её видят только ваши устройства."; + player_podcast_found_note: "This card was published by a federation member; its title, description and artwork are their claims. Subscribing reads the episodes from the feed below, never from the member, and your subscription stays private.", "Эту карточку опубликовал участник федерации; название, описание и обложка — его данные. При подписке выпуски загружаются из ленты по адресу ниже, а не у участника, и ваша подписка остаётся приватной."; + player_podcast_found_feed: "Feed URL", "Адрес ленты"; + player_podcast_found_loading: "Loading seasons and episodes from the feed…", "Загружаем сезоны и выпуски из ленты…"; + player_podcast_found_retry: "Try again", "Повторить"; + player_podcast_found_latest: "Latest episode", "Последний выпуск"; + player_podcast_found_more: "and {count} more", "и ещё {count}"; + player_podcast_found_moved: "The feed has moved; subscribing follows it.", "Лента переехала; подписка последует за ней."; player_shuffle: "Shuffle" , "Перемешать"; player_repeat: "Repeat" , "Повтор"; player_volume: "Volume" , "Громкость"; diff --git a/templates/player/modals.html b/templates/player/modals.html index 6054981..b89c5e8 100644 --- a/templates/player/modals.html +++ b/templates/player/modals.html @@ -71,6 +71,85 @@ + + + +
+

{{ t.player_podcast_found_title }}

+
+ +
+