更多推荐增加tmdb源

This commit is contained in:
mtvpls
2025-12-27 23:45:34 +08:00
parent 36c1b87af4
commit cc6d1e95f3
10 changed files with 691 additions and 9 deletions
+26
View File
@@ -328,6 +328,7 @@ interface SiteConfig {
TMDBApiKey?: string;
TMDBProxy?: string;
BannerDataSource?: string;
RecommendationDataSource?: string;
PansouApiUrl?: string;
PansouUsername?: string;
PansouPassword?: string;
@@ -5416,6 +5417,7 @@ const SiteConfigComponent = ({
TMDBApiKey: '',
TMDBProxy: '',
BannerDataSource: 'TMDB',
RecommendationDataSource: 'Mixed',
PansouApiUrl: '',
PansouUsername: '',
PansouPassword: '',
@@ -6002,6 +6004,30 @@ const SiteConfigComponent = ({
</p>
</div>
{/* 更多推荐数据源 */}
<div>
<label className='block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2'>
</label>
<select
value={siteSettings.RecommendationDataSource || 'Mixed'}
onChange={(e) =>
setSiteSettings((prev) => ({
...prev,
RecommendationDataSource: e.target.value,
}))
}
className='w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-green-500 focus:border-transparent'
>
<option value='Mixed'></option>
<option value='Douban'></option>
<option value='TMDB'>TMDB</option>
</select>
<p className='mt-1 text-xs text-gray-500 dark:text-gray-400'>
"更多推荐"ID和评论开关自动切换数据源
</p>
</div>
{/* 弹幕 API 配置 */}
<div className='space-y-4 pt-4 border-t border-gray-200 dark:border-gray-700'>
<h3 className='text-sm font-semibold text-gray-900 dark:text-gray-100'>