From 366f1f9528a5c497951f87411836aebb3803b8a8 Mon Sep 17 00:00:00 2001 From: patrickkfkan Date: Wed, 20 Jan 2021 20:53:12 +0800 Subject: [PATCH] Set default album image format in getTrackInfo() --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 73b62f7..32eee41 100644 --- a/lib/index.js +++ b/lib/index.js @@ -98,7 +98,7 @@ async function getTrackInfo(trackUrl, options = {}) { const imageConstants = await _getImageConstants(); const opts = { imageBaseUrl: imageConstants.baseUrl, - albumImageFormat: await _parseImageFormatArg(options.albumImageFormat), + albumImageFormat: await _parseImageFormatArg(options.albumImageFormat, 9), artistImageFormat: await _parseImageFormatArg(options.artistImageFormat), includeRawData: options.includeRawData ? true : false };