summaryrefslogtreecommitdiff
path: root/internal/model/podcast.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/model/podcast.go')
-rw-r--r--internal/model/podcast.go32
1 files changed, 16 insertions, 16 deletions
diff --git a/internal/model/podcast.go b/internal/model/podcast.go
index 5c3cdbc..8b5c3a2 100644
--- a/internal/model/podcast.go
+++ b/internal/model/podcast.go
@@ -5,17 +5,17 @@ import "time"
// PodcastFeed represents a subscribed RSS/Atom feed linked to a set.
type PodcastFeed struct {
- ID int64 `json:"id"`
- SetID int64 `json:"set_id"`
- FeedURL string `json:"feed_url"`
- Title string `json:"title"`
- Description string `json:"description"`
- ImageURL string `json:"image_url"`
- LastCheckedAt *time.Time `json:"last_checked_at"`
- LastETag string `json:"last_etag"`
- CheckIntervalMinutes int `json:"check_interval_minutes"`
- AutoDownload bool `json:"auto_download"`
- CreatedAt time.Time `json:"created_at"`
+ ID int64 `json:"id"`
+ SetID int64 `json:"set_id"`
+ FeedURL string `json:"feed_url"`
+ Title string `json:"title"`
+ Description string `json:"description"`
+ ImageURL string `json:"image_url"`
+ LastCheckedAt *time.Time `json:"last_checked_at"`
+ LastETag string `json:"last_etag"`
+ CheckIntervalMinutes int `json:"check_interval_minutes"`
+ AutoDownload bool `json:"auto_download"`
+ CreatedAt time.Time `json:"created_at"`
}
// PodcastEpisode represents an individual episode from a feed.
@@ -37,11 +37,11 @@ type PodcastEpisode struct {
// PodcastStatus tracks per-user completion and progress for an episode.
type PodcastStatus struct {
- UserID int64 `json:"user_id"`
- EpisodeID int64 `json:"episode_id"`
- IsCompleted bool `json:"is_completed"`
- PositionSeconds float64 `json:"position_seconds"`
- UpdatedAt time.Time `json:"updated_at"`
+ UserID int64 `json:"user_id"`
+ EpisodeID int64 `json:"episode_id"`
+ IsCompleted bool `json:"is_completed"`
+ PositionSeconds float64 `json:"position_seconds"`
+ UpdatedAt time.Time `json:"updated_at"`
}
// PodcastEpisodeWithStatus is a PodcastEpisode augmented with per-user status.