diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-06 14:21:55 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-06 14:21:55 +0300 |
| commit | bfe6e791fd959d963d7ff99870ab9ddc8cdc7eb8 (patch) | |
| tree | f7c3eee68c5cf7c0ddd80a32f0eb640cbfd53225 /cmd | |
| parent | 76a9fa783b098d46e1352fb19731a2f6a6ab7e53 (diff) | |
split DownloadEpisode into smaller helpers (x0)
Refactor ~112-line DownloadEpisode into four focused helpers:
- resolveEpisodeAndSet: permission + path building
- buildEpisodePath: filename logic
- downloadEnclosure: HTTP fetch to disk
- persistDownloadedEpisode: DB + probe + cleanup
Also: pass ctx through to HTTP request via NewRequestWithContext.
Added tests for happy path, 404, and missing episode/feed/set.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
