Izumiko / jellyfin-danmaku

Jellyfin danmaku extension
MIT License
118 stars 11 forks source link

[UR/FR] Add authentication method when add danmaku from URL 在手动添加弹幕源时,为个别网站添加账号密码验证,使用Cookies? #22

Open languede opened 6 months ago

languede commented 6 months ago

Is your feature request related to a problem? Please describe. 当自动识别不到弹幕,需要手动找弹幕源时: 有些视频网站必须登录后才能获取到弹幕,直接输入视频url返回0弹幕

Describe the solution you'd like 填入cookies来验证身份, 发送GET请求的时候附上Cookies信息? 也可以根据网站的Domain来对应别处理, 比如识别输入的url是 *.acfun.cn.

A clear and concise description of what you want to happen. 成功通过网站验证,获取到只有登录用户才能观看的视频弹幕

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context 不熟悉JavaScript,不知道是否有难度和可行性?

Add any other context or screenshots about the feature request here. 例子:https://www.acfun.cn/v/ac10077196_3

Izumiko commented 6 months ago

这个用的是弹弹play的/api/v2/extcomment接口,它没实现登录或者cookie的功能。要想实现的话就得自己写了,可行性是没问题,只不过我js也只是新手水平。