forked from Furumi/furumi-web
Add a podcasts section to the web player
The sidebar gets Podcasts: add an RSS feed (fetched by the server; a refused or broken feed shows why), the subscriptions with unplayed counts and the last fetch error, and a podcast page with seasons, an episode search, played/sort filters, paging, manual refresh and unsubscribe (the confirmation says progress and history are kept), or subscribe again. Episodes show the saved position, the time left and a played mark, with Play/Resume, Start over, Mark played, Mark unplayed and Add to queue; Jam guests cannot add episodes. The podcast page also lists the recent listening history. The queue labels episodes, the podcast name of the current episode opens its page, like and share are hidden for episodes, and the player bar shows when an episode is loading or cannot be played or resumed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3ebfc45abb
commit
9d1a46c9fe
2 files changed
+511
-6
No files matched your search
@@ -7033,4 +7033,233 @@ button.user-stat:hover {
|
||||
.guest-player .playlist-track-row .playlist-track-info { grid-column:2; grid-row:1; }
|
||||
.guest-player .playlist-track-row .track-actions { grid-column:3; grid-row:1; }
|
||||
}
|
||||
|
||||
/* Podcasts */
|
||||
.podcast-add {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.podcast-input {
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
color: var(--text-primary);
|
||||
font-size: 13px;
|
||||
padding: 8px 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
.podcast-input:focus { outline: none; border-color: var(--accent); }
|
||||
.podcast-add-input { flex: 1 1 320px; }
|
||||
.podcast-note,
|
||||
.podcast-message,
|
||||
.podcast-fetch-line,
|
||||
.podcast-feed-url {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
margin: 4px 0;
|
||||
}
|
||||
.podcast-message.error,
|
||||
.podcast-fetch-line.error,
|
||||
.podcast-fetch-error,
|
||||
.player-episode-status.error { color: #f15e6c; }
|
||||
.podcast-feed-url {
|
||||
color: var(--text-subdued);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 100%;
|
||||
}
|
||||
.podcast-feed-url span + span { margin-left: 4px; }
|
||||
.podcast-toggle {
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
margin: 8px 0 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.podcast-card .card-img { position: relative; }
|
||||
.podcast-unplayed-badge {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
min-width: 24px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 12px;
|
||||
background: var(--accent);
|
||||
color: #000;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
}
|
||||
.podcast-unsubscribed-label { color: var(--text-subdued); }
|
||||
.podcast-header-info { min-width: 0; }
|
||||
.podcast-description {
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
margin: 8px 0 16px;
|
||||
max-width: 900px;
|
||||
white-space: pre-line;
|
||||
}
|
||||
.podcast-filters {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin: 12px 0 16px;
|
||||
}
|
||||
.podcast-chips,
|
||||
.podcast-filter-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
.podcast-search { flex: 1 1 220px; }
|
||||
.podcast-chip {
|
||||
background: var(--bg-active);
|
||||
color: var(--text-primary);
|
||||
border: none;
|
||||
border-radius: 16px;
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
.podcast-chip.active { background: var(--accent); color: #000; }
|
||||
.podcast-chip-count {
|
||||
font-size: 11px;
|
||||
opacity: 0.75;
|
||||
}
|
||||
.podcast-episodes { display: flex; flex-direction: column; }
|
||||
.podcast-episode {
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding: 12px 4px;
|
||||
}
|
||||
.podcast-episode.current .podcast-episode-title { color: var(--accent); }
|
||||
.podcast-episode.played .podcast-episode-title > span:first-child { color: var(--text-secondary); }
|
||||
.podcast-episode-main {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.podcast-episode-play {
|
||||
flex: 0 0 auto;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
background: var(--accent);
|
||||
color: #000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.podcast-episode-play svg { width: 16px; height: 16px; }
|
||||
.podcast-episode-play:disabled { opacity: 0.4; cursor: default; }
|
||||
.podcast-episode-info { min-width: 0; flex: 1; }
|
||||
.podcast-episode-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
}
|
||||
.podcast-played-badge {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
}
|
||||
.podcast-episode-meta {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
margin-top: 2px;
|
||||
}
|
||||
.podcast-not-in-feed { color: var(--text-subdued); }
|
||||
.podcast-progress {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
margin-top: 6px;
|
||||
}
|
||||
.podcast-progress-bar {
|
||||
width: 120px;
|
||||
max-width: 40%;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
background: var(--bg-active);
|
||||
overflow: hidden;
|
||||
}
|
||||
.podcast-progress-bar > div { height: 100%; background: var(--accent); }
|
||||
.podcast-episode-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin: 8px 0 0 48px;
|
||||
}
|
||||
.podcast-episode-action {
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 14px;
|
||||
padding: 4px 10px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.podcast-episode-action:hover:not(:disabled) { color: var(--text-primary); border-color: var(--text-subdued); }
|
||||
.podcast-episode-action:disabled { opacity: 0.45; cursor: default; }
|
||||
.podcast-episode-description {
|
||||
margin: 8px 0 0 48px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
color: var(--text-subdued);
|
||||
white-space: pre-line;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
}
|
||||
.podcast-episode-description.expanded { display: block; }
|
||||
.podcast-load-more { margin: 16px auto; }
|
||||
.podcast-history { margin-top: 24px; }
|
||||
.podcast-history-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
font-size: 12px;
|
||||
padding: 6px 0;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
.podcast-history-title {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.podcast-history-meta { color: var(--text-secondary); flex: 0 0 auto; }
|
||||
.player-episode-status {
|
||||
margin-top: 2px;
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.podcast-episode-actions,
|
||||
.podcast-episode-description { margin-left: 0; }
|
||||
.podcast-history-row { flex-direction: column; gap: 2px; }
|
||||
.podcast-history-meta { flex: none; }
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user