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

+7
View File
@@ -75,6 +75,7 @@ func (db *DB) Migrate(ctx MigrationContext) error {
construct(ctx, "202405301140", migrateAddReplayGainFields),
construct(ctx, "202501152035", migrateTrackAddIndexOnAlbumID),
construct(ctx, "202501152036", migrateAlbumAddIndexOnParentID),
construct(ctx, "202502012036", migratePodcastEpisode),
}
return gormigrate.
@@ -832,3 +833,9 @@ func migrateAlbumAddIndexOnParentID(tx *gorm.DB, _ MigrationContext) error {
CREATE INDEX idx_albums_parent_id ON "albums" (parent_id);
`).Error
}
func migratePodcastEpisode(tx *gorm.DB, _ MigrationContext) error {
return tx.AutoMigrate(
PodcastEpisode{},
).Error
}