Skip to content

Conversation

@System2c
Copy link

@System2c System2c commented Apr 3, 2025

添加了合集的链接搜索支持,现在可以支持以下合集链接的搜索:
https://space.bilibili.com/{uid}/lists/{sid}?type=season
例如:
https://space.bilibili.com/3493093607213343/lists/3836622?type=season

@System2c System2c changed the title Update search season lists function Update search season lists function && bug fix Apr 5, 2025
@System2c
Copy link
Author

System2c commented Apr 5, 2025

另修复了当前版本下,首次启动扩展页面或刷新扩展页面,

<div role="presentation" class="MuiDialog-root MuiModal-root css-zw3mfo-MuiModal-root-MuiDialog-root">
……

元素带来的页面遮挡问题。

修复前:
111
修复后:
主界面可以正常点击
image

@lovegaoshi
Copy link
Contributor

space.bilibili\.com\/(\d+)\/lists\/(\d+)\?type=season 等于 space.bilibili\.com\/(\d+)\/channel\/collectiondetail\?sid=(\d+) 你复用getBiliColleList就行 你URL_SEASON_INFO 跟 URL_BILICOLLE_INFO 一模一样

另外space.bilibili\.com\/(\d+)\/lists\/(\d+)\?type=series (example) 等于 space.bilibili\.com\/(\d+)\/channel\/seriesdetail\?sid=(\d+) 正则没区分

@System2c
Copy link
Author

这样的吗,我也是参考别人的写法写的,因为之前没接触过这些代码以及相关的前端知识……
两个URL实际上是新版和旧版的区分(参考)。
另外请问一下正则没区分是什么意思?
(话说我参考了别的pr改了bug,怎么不小心就上传上来了)

@System2c
Copy link
Author

(话说我参考了别的pr改了bug,怎么不小心就上传上来了)

已修复,非常抱歉

@lovegaoshi
Copy link
Contributor

lovegaoshi commented Apr 17, 2025

你的正则 reExtracted = /.*\.com\/(\d+)\/lists\/(\d+).*/.exec(input);不会区分space.bilibili\.com\/(\d+)\/lists\/(\d+)\?type=series (example) 和space.bilibili\.com\/(\d+)\/lists\/(\d+)\?type=season

更新接口没必要重写一个函数 直接修旧的

@System2c
Copy link
Author

你的正则 reExtracted = /.*\.com\/(\d+)\/lists\/(\d+).*/.exec(input);不会区分space.bilibili\.com\/(\d+)\/lists\/(\d+)\?type=series (example) 和space.bilibili\.com\/(\d+)\/lists\/(\d+)\?type=season

更新接口没必要重写一个函数 直接修旧的

好的好的,感谢指正

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants