豆瓣图片增加百度图片代理
This commit is contained in:
@@ -10,6 +10,7 @@ function getDoubanImageProxyConfig(): {
|
||||
| 'img3'
|
||||
| 'cmliussss-cdn-tencent'
|
||||
| 'cmliussss-cdn-ali'
|
||||
| 'baidu'
|
||||
| 'custom';
|
||||
proxyUrl: string;
|
||||
} {
|
||||
@@ -79,6 +80,8 @@ export function processImageUrl(originalUrl: string): string {
|
||||
/img\d+\.doubanio\.com/g,
|
||||
'img.doubanio.cmliussss.com'
|
||||
);
|
||||
case 'baidu':
|
||||
return `https://image.baidu.com/search/down?url=${encodeURIComponent(originalUrl)}`;
|
||||
case 'custom':
|
||||
return `${proxyUrl}${encodeURIComponent(originalUrl)}`;
|
||||
case 'direct':
|
||||
|
||||
Reference in New Issue
Block a user