diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-05 14:24:23 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-05 14:24:23 +0300 |
| commit | 7bc3b65b3c66c7744e1c6d4fa69842985d06d9b7 (patch) | |
| tree | fa395b13fde18ba42bf7d5b28ad9d630cfa287cc /web/js/app.js | |
| parent | ed208d7120b6e6a7c2ce234504228b5a1ba48f11 (diff) | |
Fix podcast support critical bugs from code review
- Fix boolean scanning from SQLite INTEGER columns (intToBool helper)
- Fix BrowseSet LIMIT 0 returning zero episodes (use 1000 instead)
- Fix checkFeed double-fetch by parsing from resp.Body directly
+ Add ParseFeedReader for body reuse
- Fix file handle leak in DownloadEpisode (explicit Close before ImportMediaFile)
- Fix incomplete rollback in DownloadEpisode (remove file + delete media row)
- Fix 204 No Content handler writing 'null' body
- Fix DownloadCoverImage to accept *http.Client with timeout
- Deduplicate uniqueFilename into shared internal/service/filename.go
- Wire frontend renderPodcastEpisodes into renderBrowse from API data
- Refactor podcasts.js: remove extra API call, fix toggle toast, remove duplicate toast
- Add Config.PodcastCheckMinutes + PODCAST_CHECK_INTERVAL_MINUTES env var
- Start background CheckFeeds goroutine in main.go with ticker
- Update NewPodcastService to accept checkInterval parameter
- Log errors from CheckFeeds and episode creation instead of silently discarding
Diffstat (limited to 'web/js/app.js')
| -rw-r--r-- | web/js/app.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/js/app.js b/web/js/app.js index fb6e787..9c769c9 100644 --- a/web/js/app.js +++ b/web/js/app.js @@ -474,6 +474,13 @@ function renderBrowse(data) { tagBtn?.addEventListener('click', (e) => { e.stopPropagation(); openTagsForElement(el); }); thumbBtn?.addEventListener('click', (e) => { e.stopPropagation(); regenThumb(el.dataset.id); }); }); + + // For podcast sets, render episodes from the browse response after media. + if (data.episodes && data.episodes.length) { + import('./podcasts.js').then(m => { + m.renderPodcastEpisodes(grid, data.episodes); + }).catch(() => {}); + } } function renderFolder(folder, index) { |
