feat: update video source configurations with new sources and localized names

This commit is contained in:
kuekhaoyang
2025-11-19 11:09:01 +08:00
parent fd1aa37767
commit 057df7434c
2 changed files with 288 additions and 64 deletions
+244 -46
View File
@@ -8,135 +8,135 @@ import type { VideoSource } from '@/lib/types';
// Default predefined video sources - Real Chinese video APIs
const DEFAULT_SOURCES: VideoSource[] = [
{
id: 'dytt',
name: '电影天堂',
baseUrl: 'http://caiji.dyttzyapi.com/api.php/provide/vod',
id: 'feifan',
name: '非凡资源',
baseUrl: 'http://ffzy5.tv/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 1,
},
{
id: 'ruyi',
name: '如意',
baseUrl: 'https://cj.rycjapi.com/api.php/provide/vod',
id: 'wolong',
name: '卧龙资源',
baseUrl: 'https://wolongzyw.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 2,
},
{
id: 'baofeng',
name: '暴风',
baseUrl: 'https://bfzyapi.com/api.php/provide/vod',
id: 'zuida',
name: '最大资源',
baseUrl: 'https://api.zuidapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 3,
},
{
id: 'tianya',
name: '天涯',
baseUrl: 'https://tyyszy.com/api.php/provide/vod',
id: 'baiduyun',
name: '百度云资源',
baseUrl: 'https://api.apibdzy.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 4,
},
{
id: 'feifan',
name: '非凡影视',
baseUrl: 'http://ffzy5.tv/api.php/provide/vod',
id: 'baofeng',
name: '暴风资源',
baseUrl: 'https://bfzyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 5,
},
{
id: 'sanliuling',
name: '360',
baseUrl: 'https://360zy.com/api.php/provide/vod',
id: 'jisu',
name: '极速资源',
baseUrl: 'https://jszyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 6,
},
{
id: 'wolong',
name: '卧龙',
baseUrl: 'https://wolongzyw.com/api.php/provide/vod',
id: 'tianya',
name: '天涯资源',
baseUrl: 'https://tyyszy.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 7,
},
{
id: 'jisu',
name: '极速',
baseUrl: 'https://jszyapi.com/api.php/provide/vod',
id: 'wujin',
name: '无尽资源',
baseUrl: 'https://api.wujinapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 8,
},
{
id: 'mozhua',
name: '魔',
baseUrl: 'https://mozhuazy.com/api.php/provide/vod',
id: 'modu',
name: '魔都资源',
baseUrl: 'https://www.mdzyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 9,
},
{
id: 'modu',
name: '魔都',
baseUrl: 'https://www.mdzyapi.com/api.php/provide/vod',
id: 'sanliuling',
name: '360资源',
baseUrl: 'https://360zy.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 10,
},
{
id: 'zuida',
name: '最大',
baseUrl: 'https://api.zuidapi.com/api.php/provide/vod',
id: 'dytt',
name: '电影天堂',
baseUrl: 'http://caiji.dyttzyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 11,
},
{
id: 'yinghua',
name: '樱花',
baseUrl: 'https://m3u8.apiyhzy.com/api.php/provide/vod',
id: 'ruyi',
name: '如意资源',
baseUrl: 'https://cj.rycjapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 12,
},
{
id: 'baiduyun',
name: '百度云',
baseUrl: 'https://api.apibdzy.com/api.php/provide/vod',
id: 'wangwang',
name: '旺旺资源',
baseUrl: 'https://wwzy.tv/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 13,
},
{
id: 'wujin',
name: '无尽',
baseUrl: 'https://api.wujinapi.me/api.php/provide/vod',
id: 'hongniu',
name: '红牛资源',
baseUrl: 'https://www.hongniuzy2.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 14,
},
{
id: 'wangwang',
name: '旺旺',
baseUrl: 'https://wwzy.tv/api.php/provide/vod',
id: 'guangsu',
name: '光速资源',
baseUrl: 'https://api.guangsuapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
@@ -144,13 +144,211 @@ const DEFAULT_SOURCES: VideoSource[] = [
},
{
id: 'ikun',
name: 'iKun',
name: 'iKun资源',
baseUrl: 'https://ikunzyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 16,
},
{
id: 'youku',
name: '优酷资源',
baseUrl: 'https://api.ukuapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 17,
},
{
id: 'huya',
name: '虎牙资源',
baseUrl: 'https://www.huyaapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 18,
},
{
id: 'xinlang',
name: '新浪资源',
baseUrl: 'http://api.xinlangapi.com/xinlangapi.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 19,
},
{
id: 'lezi',
name: '乐子资源',
baseUrl: 'https://cj.lziapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 20,
},
{
id: 'haihua',
name: '海豚资源',
baseUrl: 'https://hhzyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 21,
},
{
id: 'jiangyu',
name: '鲸鱼资源',
baseUrl: 'https://jyzyapi.com/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 22,
},
{
id: 'yilingba',
name: '1080资源',
baseUrl: 'https://api.1080zyku.com/inc/api_mac10.php',
searchPath: '',
detailPath: '',
enabled: true,
priority: 23,
},
{
id: 'aidan',
name: '爱蛋资源',
baseUrl: 'https://lovedan.net/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 24,
},
{
id: 'leba',
name: '乐播资源',
baseUrl: 'https://lbapi9.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 25,
},
{
id: 'moduzy',
name: '魔都影视',
baseUrl: 'https://www.moduzy.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 26,
},
{
id: 'feifanapi',
name: '非凡API',
baseUrl: 'https://api.ffzyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 27,
},
{
id: 'feifancj',
name: '非凡采集',
baseUrl: 'http://cj.ffzyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 28,
},
{
id: 'feifancj2',
name: '非凡采集HTTPS',
baseUrl: 'https://cj.ffzyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 29,
},
{
id: 'feifan1',
name: '非凡线路1',
baseUrl: 'http://ffzy1.tv/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 30,
},
{
id: 'wolong2',
name: '卧龙采集',
baseUrl: 'https://collect.wolongzyw.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 31,
},
{
id: 'baofeng2',
name: '暴风APP',
baseUrl: 'https://app.bfzyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 32,
},
{
id: 'wujin2',
name: '无尽ME',
baseUrl: 'https://api.wujinapi.me/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 33,
},
{
id: 'tianyazy',
name: '天涯海角',
baseUrl: 'https://tyyszyapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 34,
},
{
id: 'guangsu2',
name: '光速HTTP',
baseUrl: 'http://api.guangsuapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 35,
},
{
id: 'xinlang2',
name: '新浪HTTPS',
baseUrl: 'https://api.xinlangapi.com/xinlangapi.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 36,
},
{
id: 'yilingba2',
name: '1080JSON',
baseUrl: 'https://api.1080zyku.com/inc/apijson.php',
searchPath: '',
detailPath: '',
enabled: true,
priority: 37,
},
{
id: 'lezi2',
name: '乐子HTTP',
baseUrl: 'http://cj.lziapi.com/api.php/provide/vod',
searchPath: '',
detailPath: '',
enabled: true,
priority: 38,
},
];
/**
+44 -18
View File
@@ -1,27 +1,53 @@
export function getSourceName(sourceId: string): string {
const sourceNames: Record<string, string> = {
'zuida': '最大资源',
'wujin': '无尽资源',
'tianya': '天涯资源',
'baofeng': '暴风资源',
'jisu': '极速资源',
'baiduyun': '百度云资源',
'ruyi': '如意资源',
'wolong': '卧龙资源',
'dytt': '电影天堂',
'ruyi': '如意',
'baofeng': '暴风',
'tianya': '天涯',
'feifan': '非凡影视',
'sanliuling': '360',
'wolong': '卧龙',
'jisu': '极速',
'mozhua': '魔爪',
'modu': '魔都',
'zuida': '最大',
'yinghua': '樱花',
'baiduyun': '百度云',
'wujin': '无尽',
'wangwang': '旺旺',
'ikun': 'iKun',
'modu': '魔都资源',
'wangwang': '旺旺资源',
'hongniu': '红牛资源',
'guangsu': '光速资源',
'jiangyu': '鲸鱼资源',
'sanliuling': '360资源',
'haihua': '海豚资源',
'wujin2': '无尽ME',
'tianyazy': '天涯海角',
'guangsu2': '光速HTTP',
'youku': '优酷资源',
'yilingba': '1080资源',
'huya': '虎牙资源',
'xinlang': '新浪资源',
'ikun': 'iKun资源',
'lezi': '乐子资源',
'xinlang2': '新浪HTTPS',
'yilingba2': '1080JSON',
'baofeng2': '暴风APP',
'wolong2': '卧龙采集',
'lezi2': '乐子HTTP',
'feifan': '非凡资源',
'aidan': '爱蛋资源',
'feifanapi': '非凡API',
'feifancj': '非凡采集',
'feifancj2': '非凡采集HTTPS',
'feifan1': '非凡线路1',
'moduzy': '魔都影视',
'leba': '乐播资源',
};
return sourceNames[sourceId] || sourceId;
}
export const SOURCE_IDS = [
'dytt', 'ruyi', 'baofeng', 'tianya', 'feifan', 'sanliuling',
'wolong', 'jisu', 'mozhua', 'modu', 'zuida', 'yinghua',
'baiduyun', 'wujin', 'wangwang', 'ikun'
'zuida', 'wujin', 'tianya', 'baofeng', 'jisu', 'baiduyun',
'ruyi', 'wolong', 'dytt', 'modu', 'wangwang', 'hongniu',
'guangsu', 'jiangyu', 'sanliuling', 'haihua', 'wujin2', 'tianyazy',
'guangsu2', 'youku', 'yilingba', 'huya', 'xinlang', 'ikun',
'lezi', 'xinlang2', 'yilingba2', 'baofeng2', 'wolong2', 'lezi2',
'feifan', 'aidan', 'feifanapi', 'feifancj', 'feifancj2', 'feifan1',
'moduzy', 'leba'
];