feat(subsonic): cache and use lastfm responses for covers, bios, top songs
This commit is contained in:
@@ -58,6 +58,7 @@ func (db *DB) Migrate(ctx MigrationContext) error {
|
||||
construct(ctx, "202305301718", migratePlayCountToLength),
|
||||
construct(ctx, "202307281628", migrateAlbumArtistsMany2Many),
|
||||
construct(ctx, "202309070009", migrateDeleteArtistCoverField),
|
||||
construct(ctx, "202309131743", migrateArtistInfo),
|
||||
}
|
||||
|
||||
return gormigrate.
|
||||
@@ -605,3 +606,10 @@ func migrateDeleteArtistCoverField(tx *gorm.DB, _ MigrationContext) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func migrateArtistInfo(tx *gorm.DB, _ MigrationContext) error {
|
||||
return tx.AutoMigrate(
|
||||
ArtistInfo{},
|
||||
).
|
||||
Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user