Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace undefined element by -1 in getAlbumArt URL #450

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sjol
Copy link

@sjol sjol commented Jun 7, 2020

Avoids subsonic not returning an image. Tested with Airsonic server.

Avoids subsonic not returning an image. Tested with Airsonic server.
Copy link
Contributor

@foobarjo foobarjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for commmiting.
By the way there are different implementations of the API and your commit won't work for all of them.
lms albumArt id: 862796b054fe3a857d7a04f0d6515d1e
ampache albumArt id: al-5b0ff64e9492ceeb78b08354b652eea7
navidrome albumArt id: 74ef6fede2cce442e8a345e122ac31e9
subsonic albumArt id: al-10378
You may want to test the variable definition with something like
if (coverArtId !== undefined){
coverArtId = -1;
}

@foobarjo
Copy link
Contributor

foobarjo commented Sep 30, 2021

this pull request can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants