mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
refactor: Update image URLs to use globalSettings.TMDB_IMAGE_DOMAIN
This commit is contained in:
@@ -313,7 +313,7 @@ function getBangumiLink() {
|
||||
// 拼装集图片地址
|
||||
function getEpisodeImage(stillPath: string) {
|
||||
if (!stillPath) return ''
|
||||
return `https://image.tmdb.org/t/p/w500${stillPath}`
|
||||
return `https://${globalSettings.TMDB_IMAGE_DOMAIN}/t/p/w500${stillPath}`
|
||||
}
|
||||
|
||||
// TMDB图片转换为w500大小
|
||||
|
||||
@@ -43,7 +43,7 @@ function getPersonImage() {
|
||||
let url = ''
|
||||
if (personProps.source === 'themoviedb') {
|
||||
if (!personDetail.value?.profile_path) return personIcon
|
||||
url = `https://image.tmdb.org/t/p/w600_and_h900_bestv2${personDetail.value?.profile_path}`
|
||||
url = `https://${globalSettings.TMDB_IMAGE_DOMAIN}/t/p/w600_and_h900_bestv2${personDetail.value?.profile_path}`
|
||||
} else if (personProps.source === 'douban') {
|
||||
if (!personDetail.value?.avatar) return personIcon
|
||||
if (typeof personDetail.value?.avatar === 'object') {
|
||||
|
||||
Reference in New Issue
Block a user