feat(subsonic): add support for lyrics (#519)
* Add songLyrics extension since the getLyricsBySongId method is implemented * Add support for lyrics * Add check for getLyrics function * fix typo * chore: fix tests * fix(lyrics): if lrc is formatted with empty spaces remove them * fix(lint): use NewError correctly bump ts
This commit is contained in:
No files matched your search
@@ -235,6 +235,7 @@ type Track struct {
|
||||
TagTrackNumber int `sql:"default: null"`
|
||||
TagDiscNumber int `sql:"default: null"`
|
||||
TagBrainzID string `sql:"default: null"`
|
||||
TagLyrics string `sql:"default:null"`
|
||||
|
||||
ReplayGainTrackGain float32
|
||||
ReplayGainTrackPeak float32
|
||||
|
||||
@@ -80,6 +80,7 @@ func (db *DB) Migrate(ctx MigrationContext) error {
|
||||
construct(ctx, "202505211202", migrateTrackAddIndexOnBrainzID),
|
||||
construct(ctx, "202505262025", migrateAlbumAddIndexOnBrainzID),
|
||||
construct(ctx, "202507062103", migrateAlbumCompilationReleaseType),
|
||||
construct(ctx, "202508261102", migrateAddLyrics),
|
||||
}
|
||||
|
||||
return gormigrate.
|
||||
@@ -861,3 +862,7 @@ func migrateAlbumCompilationReleaseType(tx *gorm.DB, _ MigrationContext) error {
|
||||
Album{},
|
||||
).Error
|
||||
}
|
||||
|
||||
func migrateAddLyrics(tx *gorm.DB, _ MigrationContext) error {
|
||||
return tx.AutoMigrate(Track{}).Error
|
||||
}
|
||||
Reference in New Issue
Block a user