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:
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user