mirror of
https://github.com/NoCrypt/migu.git
synced 2026-05-04 09:18:58 +00:00
feat: Country Of Origin detail
This commit is contained in:
parent
5ee68189ca
commit
ada79a819b
1 changed files with 8 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
{ property: 'status', label: 'Status', icon: 'live_tv' },
|
{ property: 'status', label: 'Status', icon: 'live_tv' },
|
||||||
{ property: 'nodes', label: 'Studio', icon: 'business' },
|
{ property: 'nodes', label: 'Studio', icon: 'business' },
|
||||||
{ property: 'source', label: 'Source', icon: 'source' },
|
{ property: 'source', label: 'Source', icon: 'source' },
|
||||||
|
{ property: 'countryOfOrigin', label: 'Country', icon: 'public', custom: 'property' },
|
||||||
{ property: 'isAdult', label: 'Adult', icon: '18_up_rating' },
|
{ property: 'isAdult', label: 'Adult', icon: '18_up_rating' },
|
||||||
{ property: 'english', label: 'English', icon: 'title' },
|
{ property: 'english', label: 'English', icon: 'title' },
|
||||||
{ property: 'romaji', label: 'Romaji', icon: 'translate' },
|
{ property: 'romaji', label: 'Romaji', icon: 'translate' },
|
||||||
|
|
@ -16,6 +17,13 @@
|
||||||
return media.averageScore + '%'
|
return media.averageScore + '%'
|
||||||
} else if (detail.property === 'season') {
|
} else if (detail.property === 'season') {
|
||||||
return [media.season?.toLowerCase(), media.seasonYear].filter(f => f).join(' ')
|
return [media.season?.toLowerCase(), media.seasonYear].filter(f => f).join(' ')
|
||||||
|
} else if (detail.property === 'countryOfOrigin') {
|
||||||
|
const countryMap = {
|
||||||
|
JP: 'Japan',
|
||||||
|
CN: 'China',
|
||||||
|
US: 'United States'
|
||||||
|
}
|
||||||
|
return countryMap[media.countryOfOrigin] || 'Unknown'
|
||||||
} else {
|
} else {
|
||||||
return media[detail.property]
|
return media[detail.property]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue