add support for subsonic podcast api

This commit is contained in:
Alex McGrath
2021-02-03 20:38:01 +00:00
committed by Senan Kelly
parent ce96b9f6fa
commit 9c4286b0e2
21 changed files with 2011 additions and 1000 deletions

View File

@@ -211,6 +211,7 @@ func migrateMultiGenre() gormigrate.Migration {
}
}
func migrateListenBrainz() gormigrate.Migration {
return gormigrate.Migration{
ID: "202101081149",
@@ -225,3 +226,16 @@ func migrateListenBrainz() gormigrate.Migration {
},
}
}
func migratePodcast() gormigrate.Migration {
return gormigrate.Migration{
ID: "202101111537",
Migrate: func(tx *gorm.DB) error {
step := tx.AutoMigrate(
Podcast{},
PodcastEpisode{},
)
return step.Error
},
}
}