fix: Allow usage of deprecated related artists API

Until there is an alternative continue using it.
This commit is contained in:
Henrik Friedrichsen
2025-01-20 23:28:07 +01:00
parent 8dd8c9bff9
commit f08010cfe9

View File

@@ -680,6 +680,7 @@ impl WebApi {
/// Get artists related to the artist with the given `id`.
pub fn artist_related_artists(&self, id: &str) -> Result<Vec<Artist>, ()> {
#[allow(deprecated)]
self.api_with_retry(|api| api.artist_related_artists(ArtistId::from_id(id).unwrap()))
.map(|fa| fa.iter().map(|a| a.into()).collect())
.ok_or(())