summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-10 10:38:35 +0300
committerPaul Buetow <paul@buetow.org>2026-05-10 10:38:35 +0300
commit2155e7d74c33a78f1eabb5066db481c570018853 (patch)
tree24aa4974c0da7b5ef55746a4dead0b884cefa992 /cmd
parent1eefc6fc815e5fbd781e8818c61aa024821ce0d3 (diff)
Decompose podcastService (SRP): split subscription, episode, and feed-checker into sub-services
Extract three role-focused sub-services from the monolithic podcastService: - podcast_sub.go: podcastSubscriptionService handles SubscribeFeed, ListFeeds, EditFeed, UnsubscribeFeed and podcast set lifecycle. - podcast_episode.go: podcastEpisodeService handles ListEpisodes, DownloadEpisode, ToggleEpisodeComplete and enclosure downloading. - podcast_checker.go: podcastFeedChecker handles CheckFeeds, conditional GET, backoff and episode upserting. - podcast_helpers.go: shared helpers (podcastFolderName, sanitizeSetName, sanitizeFilename). podcast.go becomes a thin composite that embeds the three sub-services and exposes a PodcastEpisodeService-compatible interface, preserving existing API-layer wiring and tests.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions