feat(subsonic): support embedded track level cover art

related #11
This commit is contained in:
sentriz
2025-09-30 15:08:46 +01:00
parent bc0b6c0da4
commit d66814bfd1
5 changed files with 32 additions and 11 deletions

No files matched your search

+5
View File
@@ -80,6 +80,7 @@ func (db *DB) Migrate(ctx MigrationContext) error {
construct(ctx, "202507062103", migrateAlbumCompilationReleaseType),
construct(ctx, "202508261102", migrateAddLyrics),
construct(ctx, "202509291741", migrateAddAlbumEmbeddedCoverTrackID),
construct(ctx, "202509301448", migrateAddTrackEmbeddedCover),
}
return gormigrate.
@@ -862,3 +863,7 @@ func migrateAddLyrics(tx *gorm.DB, _ MigrationContext) error {
func migrateAddAlbumEmbeddedCoverTrackID(tx *gorm.DB, _ MigrationContext) error {
return tx.AutoMigrate(Album{}).Error
}
func migrateAddTrackEmbeddedCover(tx *gorm.DB, _ MigrationContext) error {
return tx.AutoMigrate(Track{}).Error
}