adding playlists page

This commit is contained in:
Drew Weymouth
2023-01-24 18:18:11 -08:00
parent 202417f530
commit 4f73121d9b
3 changed files with 182 additions and 0 deletions
+6
View File
@@ -51,6 +51,10 @@ func GenresRoute() Route {
return Route{Page: Genres}
}
func PlaylistsRoute() Route {
return Route{Page: Playlists}
}
func ArtistsRoute() Route {
return Route{Page: Artists}
}
@@ -105,6 +109,8 @@ func (r Router) CreatePage(rte Route) Page {
return NewGenrePage(rte.Arg, r.App.LibraryManager, r.App.ImageManager, r.OpenRoute)
case Genres:
return NewArtistsGenresPage(true, r.App.ServerManager, r.OpenRoute)
case Playlists:
return NewPlaylistsPage(r.App.ServerManager, r.OpenRoute)
}
return nil
}