Set default image format for discogs

This commit is contained in:
patrickkfkan 2021-01-22 00:47:12 +08:00
parent 89833cef7e
commit abf49c632f

View File

@ -112,7 +112,7 @@ async function getDiscography(artistOrLabelUrl, options = {}) {
const opts = {
imageBaseUrl: imageConstants.baseUrl,
artistOrLabelUrl,
imageFormat: await _parseImageFormatArg(options.imageFormat)
imageFormat: await _parseImageFormatArg(options.imageFormat, 9)
};
return fetch(utils.getUrl('music', artistOrLabelUrl))
.then( res => res.text() )