Skip to content

Commit

Permalink
Cover download fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
larsenv authored Oct 15, 2023
1 parent bfe8717 commit f7d472d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/riitag/cover.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
}
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit f7d472d

Please sign in to comment.