Replies: 3 comments 15 replies
-
我自己的修改版 |
Beta Was this translation helpful? Give feedback.
14 replies
-
如果不修改脚本的话,1可以用自动配置解决(只针对B站) [bilibili-add-referrer]
profile-desc = Add referrer for BiliBili video
profile-cond = path:match("https://www.bilibili.com")~=nil
profile-restore = copy
referrer = https://www.bilibili.com/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
mpv-player/mpv@4314733 应该是被修复了 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
目前mpv使用yt-dlp播放B站视频存在2个问题
1.加载视频时不使用yt-dlp提供的http_headers,导致加载视频失败(403错误)
2.把弹幕(xml)当做字幕加载时,播放器卡死,且无选项使yt-dlp排除xml格式
基本上都与ytdl_hook.lua有关,如果解决也需要从此下手
1的话,mpv-player/mpv#9978 ,在脚本579行后添加新一行
set_http_headers(json.http_headers)
,就能解决问题,不过也可以有更好的解决办法2的话,我尝试修改脚本传给yt-dlp的--sub-format选项,发现问题不在这里,而在于当不存在指定格式字幕时,yt-dlp会自动选择一种字幕,即使它违反了sub-format的要求。yt-dlp/yt-dlp#3058 yt-dlp已列入计划
Beta Was this translation helpful? Give feedback.
All reactions