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 = { const opts = {
imageBaseUrl: imageConstants.baseUrl, imageBaseUrl: imageConstants.baseUrl,
artistOrLabelUrl, artistOrLabelUrl,
imageFormat: await _parseImageFormatArg(options.imageFormat) imageFormat: await _parseImageFormatArg(options.imageFormat, 9)
}; };
return fetch(utils.getUrl('music', artistOrLabelUrl)) return fetch(utils.getUrl('music', artistOrLabelUrl))
.then( res => res.text() ) .then( res => res.text() )