summaryrefslogtreecommitdiff
path: root/Biz/PodcastItLater/Web.py
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/PodcastItLater/Web.py')
-rw-r--r--Biz/PodcastItLater/Web.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/Biz/PodcastItLater/Web.py b/Biz/PodcastItLater/Web.py
index 8586aaf..3493b7b 100644
--- a/Biz/PodcastItLater/Web.py
+++ b/Biz/PodcastItLater/Web.py
@@ -432,6 +432,13 @@ class EpisodeList(Component[AnyChildren, EpisodeListAttrs]):
episode_items.append(
html.div(
html.h4(episode["title"]),
+ # Show author if available
+ html.p(
+ f"by {episode['author']}",
+ style={"margin": "5px 0", "font-style": "italic"},
+ )
+ if episode.get("author")
+ else html.span(),
html.audio(
html.source(
src=episode["audio_url"],
@@ -445,6 +452,18 @@ class EpisodeList(Component[AnyChildren, EpisodeListAttrs]):
f"Duration: {duration_str} | "
f"Created: {episode['created_at']}",
),
+ # Show link to original article if available
+ html.div(
+ html.a(
+ "View original article",
+ href=episode["original_url"],
+ target="_blank",
+ style={"color": "#007cba"},
+ ),
+ style={"margin-top": "10px"},
+ )
+ if episode.get("original_url")
+ else html.span(),
style={
"border": "1px solid #ddd",
"padding": "15px",