rc-plugin/constants/tools.js
zhiyu 4046905c83 🎈 perf: V1.3.2 优化油管解析性能
1. 优化了寻找最佳解析分辨率的算法
2. 优化“魔法值”,增加后期可维护性
3. 说明 X 的不可维护性
2024-02-06 16:34:12 +08:00

50 lines
1.8 KiB
JavaScript

/**
* AI总结API
* https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/misc/sign/wbi.md
* @type {string}
*/
export const BILI_SUMMARY = "https://api.bilibili.com/x/web-interface/view/conclusion/get"
/**
* 视频基本信息API
* https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/video/info.md
* @type {string}
*/
export const BILI_VIDEO_INFO = "http://api.bilibili.com/x/web-interface/view"
/**
* 登录基本信息
* https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/login/login_info.md#%E5%AF%BC%E8%88%AA%E6%A0%8F%E7%94%A8%E6%88%B7%E4%BF%A1%E6%81%AF
* @type {string}
*/
export const BILI_NAV = "https://api.bilibili.com/x/web-interface/nav"
/**
* 视频请求链接CDN
* @type {string}
*/
export const XHS_VIDEO = "http://sns-video-bd.xhscdn.com/"
/**
* dy API
* @type {string}
*/
export const DY_INFO = "https://www.douyin.com/aweme/v1/web/aweme/detail/?device_platform=webapp&aid=6383&channel=channel_pc_web&aweme_id={}&pc_client_type=1&version_code=190500&version_name=19.5.0&cookie_enabled=true&screen_width=1344&screen_height=756&browser_language=zh-CN&browser_platform=Win32&browser_name=Firefox&browser_version=118.0&browser_online=true&engine_name=Gecko&engine_version=109.0&os_name=Windows&os_version=10&cpu_core_num=16&device_memory=&platform=PC&webid=7284189800734082615&msToken=B1N9FM825TkvFbayDsDvZxM8r5suLrsfQbC93TciS0O9Iii8iJpAPd__FM2rpLUJi5xtMencSXLeNn8xmOS9q7bP0CUsrt9oVTL08YXLPRzZm0dHKLc9PGRlyEk="
/**
* Tiktok API
* @type {string}
*/
export const TIKTOK_INFO = "https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/?aweme_id={}"
/**
* X API
* @type {string}
*/
export const TWITTER_TWEET_INFO = "https://api.twitter.com/2/tweets?ids={}"
/**
* XHS 的请求链接
* @type {string}
*/
export const XHS_REQ_LINK = "https://www.xiaohongshu.com/explore/"