完善tmdb反代

This commit is contained in:
mtvpls
2026-01-17 21:18:19 +08:00
parent 531187b5a4
commit 6a976dd91c
18 changed files with 97 additions and 48 deletions

View File

@@ -1020,7 +1020,7 @@ function PlayPageClient() {
if (detCacheAge < detCacheMaxAge && data && data.backdrop) {
console.log('使用缓存的TMDB详情数据');
setTmdbBackdrop(data.backdrop);
setTmdbBackdrop(processImageUrl(data.backdrop));
// 如果没有豆瓣ID使用TMDb数据补充
if (!videoDoubanId || videoDoubanId === 0) {
@@ -1054,7 +1054,7 @@ function PlayPageClient() {
const result = await response.json();
if (result.backdrop) {
setTmdbBackdrop(result.backdrop);
setTmdbBackdrop(processImageUrl(result.backdrop));
// 如果没有豆瓣ID使用TMDb数据补充
if (!videoDoubanId || videoDoubanId === 0) {
@@ -3279,7 +3279,7 @@ function PlayPageClient() {
finalTitle = correction.title;
}
if (correction.posterPath) {
finalCover = getTMDBImageUrl(correction.posterPath);
finalCover = processImageUrl(getTMDBImageUrl(correction.posterPath));
}
if (correction.overview) {
finalDesc = correction.overview;
@@ -4424,7 +4424,7 @@ function PlayPageClient() {
setVideoTitle(correction.title);
}
if (correction.posterPath) {
const fullPosterUrl = getTMDBImageUrl(correction.posterPath);
const fullPosterUrl = processImageUrl(getTMDBImageUrl(correction.posterPath));
setVideoCover(fullPosterUrl);
}
if (correction.overview) {
@@ -7856,7 +7856,7 @@ const applyCorrection = (detail: SearchResult, correction: any): SearchResult =>
return {
...detail,
title: correction.title || detail.title,
poster: correction.posterPath ? getTMDBImageUrl(correction.posterPath) : detail.poster,
poster: correction.posterPath ? processImageUrl(getTMDBImageUrl(correction.posterPath)) : detail.poster,
year: correction.releaseDate || detail.year,
desc: correction.overview || detail.desc,
rating: correction.voteAverage || detail.rating,