From f7d472d94eff1b6da111c01d063543d61b629cc3 Mon Sep 17 00:00:00 2001 From: Larsen Vallecillo Date: Sun, 15 Oct 2023 12:43:37 -0500 Subject: [PATCH] Cover download fixes --- src/lib/riitag/cover.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/riitag/cover.js b/src/lib/riitag/cover.js index 5b159f3..1269977 100755 --- a/src/lib/riitag/cover.js +++ b/src/lib/riitag/cover.js @@ -154,7 +154,7 @@ export async function getGameRegion(gameConsole, gameId) { return getSwitchGameRegion(gameId); } default: { - throw new Error('Console must be one of wii, wiiu, 3ds'); + throw new Error('Console must be one of wii, wiiu, 3ds, switch'); } } } @@ -220,7 +220,7 @@ export async function getCover(gameConsole, coverType, gameId, region) { } catch { // Fallback to US logger.debug('Cover DL: Falling back to US'); - return downloadCover(gameConsole, coverType, 'US', gameId); + return await downloadCover(gameConsole, coverType, 'US', gameId); } } } else { @@ -268,7 +268,7 @@ export async function getCover(gameConsole, coverType, gameId, region) { } catch { // Fallback to US logger.debug('Cover DL: Falling back to US'); - return downloadCover(gameConsole, coverType, 'US', gameId); + return await downloadCover(gameConsole, coverType, 'US', gameId); } } }