mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-04-29 02:32:37 -04:00
Fixed app freeze on artistInfo 404
This commit is contained in:
@@ -51,6 +51,7 @@ const authParams = legacyAuth
|
||||
|
||||
export const api = axios.create({
|
||||
baseURL: API_BASE_URL,
|
||||
validateStatus: (status) => status >= 200,
|
||||
});
|
||||
|
||||
api.interceptors.request.use((config) => {
|
||||
@@ -406,10 +407,10 @@ export const getArtist = async (options: { id: string }) => {
|
||||
|
||||
return normalizeArtist({
|
||||
...data.artist,
|
||||
biography: infoData.artistInfo2.biography,
|
||||
lastFmUrl: infoData.artistInfo2.lastFmUrl,
|
||||
externalImageUrl: infoData.artistInfo2.largeImageUrl,
|
||||
similarArtist: infoData.artistInfo2.similarArtist,
|
||||
biography: infoData?.artistInfo2?.biography,
|
||||
lastFmUrl: infoData?.artistInfo2?.lastFmUrl,
|
||||
externalImageUrl: infoData?.artistInfo2?.largeImageUrl,
|
||||
similarArtist: infoData?.artistInfo2?.similarArtist,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user