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:
./daniele
2025-08-26 11:09:00 +01:00
committed by sentriz
parent 5916a7fe7b
commit db97bc753e
11 changed files with 183 additions and 2 deletions

No files matched your search

+5
View File
@@ -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
}