feat(subsonic): support more podcast metadata and podcast bookmarks (#569)

* Migrate podcast episodes database entries.

* Expose album, artist, and image for podcast episodes.

* Update bookmarks to show podcast episodes.

* Fix lint error.

* Remove OriginalImageURL field.
This commit is contained in:
Vijay Dubb
2025-03-24 13:43:06 +00:00
committed by GitHub
parent e5f7ef3c86
commit 63a420d2d3
7 changed files with 58 additions and 29 deletions

No files matched your search

@@ -127,6 +127,9 @@ func NewTCPodcastEpisode(pe *db.PodcastEpisode) *TrackChild {
IsDir: false,
Type: "podcastepisode",
CreatedAt: pe.CreatedAt,
Album: pe.Album,
Artist: pe.Artist,
CoverID: pe.SID(),
}
if pe.Podcast != nil {
trCh.ParentID = pe.Podcast.SID()
@@ -136,7 +139,7 @@ func NewTCPodcastEpisode(pe *db.PodcastEpisode) *TrackChild {
}
func NewArtistByFolder(f *db.Album) *Artist {
// the db is structued around "browse by tags", and where
// the db is structured around "browse by tags", and where
// an album is also a folder. so we're constructing an artist
// from an "album" where
// maybe TODO: rename the Album model to Folder