Skip to content

Commit

Permalink
add: code for common_sense_media
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdecimal16 committed Aug 21, 2024
1 parent 1e79a74 commit daa42bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ async function generateRatingSVGs(imageWidth: number, imageHeight: number, ratin
function getSVGFilePath(key: string, value: string) {
if (key === 'metacritic') return path.join(__dirname, '../assets', 'metacritic.svg');
if (key === 'imdb') return path.join(__dirname, '../assets', 'imdb.svg');
if (key === 'common_sense_media') return path.join(__dirname, '../assets', 'common_sense_media.svg');
if (key === 'rotten_tomatoes') return value > '60'
? path.join(__dirname, '../assets', 'rt_fresh.svg')
: path.join(__dirname, '../assets', 'rt_rotten.svg');
Expand Down

0 comments on commit daa42bf

Please sign in to comment.