Skip to content

Commit

Permalink
This should be done elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Dec 24, 2024
1 parent ce53a77 commit 0020f3d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions psst-gui/src/webapi/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ impl WebApi {
SpotifyUrl::Playlist(id) => Nav::PlaylistDetail(self.get_playlist(id)?.link()),
SpotifyUrl::Artist(id) => Nav::ArtistDetail(self.get_artist(id)?.link()),
SpotifyUrl::Album(id) => Nav::AlbumDetail(self.get_album(id)?.data.link(), None),
SpotifyUrl::Show(id) => Nav::ShowDetail(self.get_show_detail(id)?.link()),
SpotifyUrl::Show(id) => Nav::AlbumDetail(self.get_album(id)?.data.link(), None),
SpotifyUrl::Track(id) => {
let track = self.get_track(id)?;
let album = track.album.clone().ok_or_else(|| {
Expand All @@ -1346,11 +1346,6 @@ impl WebApi {
};
Ok(nav)
}

pub fn get_show_detail(&self, id: &str) -> Result<Arc<Show>, Error> {
let request = self.get(format!("v1/shows/{}", id), None)?;
self.load(request)
}
}

/// Recommendation endpoints.
Expand Down

0 comments on commit 0020f3d

Please sign in to comment.