nilaoda / BBDown

Bilibili Downloader. 一个命令行式哔哩哔哩下载器.
MIT License
9.93k stars 1.29k forks source link

Release 1.6.3使用--sub-only --skip-ai False有很大概率指向错误视频的字幕 #948

Open difsch2077 opened 2 weeks ago

difsch2077 commented 2 weeks ago

1. 你使用的BBDown版本是什么?(指明 Release / Actions / DotnetTool)

Release 1.6.3

2. 你在什么系统使用本软件?(Win/Linux/Mac)

windows

3. 你使用的完整命令是什么?

.\BBDown.exe --sub-only --skip-ai False -F 53266926-43d3-44d4-9166-3be7e6785a86 https://www.bilibili.com/video/BV1XkSoYLEDC

4. 遇到了什么问题?

多次运行命令结果不同,输出有时候是正确的,有时候是错误的,正确概率不高于1/2。

5. 运行截图(最好开启--debug;注意自行将Cookie/Token等敏感信息隐藏)

左边为正确的,右边为错误的: image

imgradeone commented 1 week ago

我这边也遇到了类似的问题

我的配置文件:

-F "<ownerMid>_<ownerName>/<videoDate:yyyy-MM-dd>/av<aid>-<bvid>_<videoTitle>/<pageNumber>-<cid>-<pageTitle>-<dfn>-<videoCodecs>"
-M "<ownerMid>_<ownerName>/<videoDate:yyyy-MM-dd>/av<aid>-<bvid>_<videoTitle>/<pageNumber>-<cid>-<pageTitle>-<dfn>-<videoCodecs>"
-e "avc,hevc,av1"
-p ALL
-dd

--work-dir "C:\Users\imgradeone\Archive\BBDown"
--delay-per-page 1

能表现出问题的日志部分(屏蔽了一部分内容):

[2024-11-12 14:32:23.763] - 开始解析P2: 243463548... (2 of 4)
[2024-11-12 14:32:23.763] - 尝试获取章节信息...
[2024-11-12 14:32:23.764] - 获取网页内容: Url: https://api.bilibili.com/x/player/v2?cid=201196075&aid=243463548, Headers: User-Agent: Mozilla/5.0 (X11; Linux x86_64) Gecko/20100101 Firefox/96.843
Accept-Encoding: gzip, deflate
Cookie: [REDACTED]
Referer: https://www.bilibili.com/
Cache-Control: no-cache
[2024-11-12 14:32:24.840] - Response: {"code":0,"message":"0","ttl":1,"data":{"aid":243463548,"bvid":"BV1gv41167p3","allow_bp":false,"no_share":false,"cid":201196075,"max_limit":8000,"page_no":2,"has_next":true,"ip_info":{[REDACTED]},"login_mid":[REDACTED],"login_mid_hash":"[REDACTED]","is_owner":false,"name":"[REDACTED]","permission":"10000,1001","level_info":{[REDACTED]},"vip":{[REDACTED]},"avatar_subscript":1,"nickname_color":"#FB7299","role":7,"avatar_subscript_url":"","tv_vip_status":1,"tv_vip_pay_type":0,"tv_due_date":[REDACTED],"avatar_icon":{"icon_type":1,"icon_resource":{}}},"answer_status":0,"block_time":0,"role":"0","last_play_time":0,"last_play_cid":0,"now_time":1731393141,"online_count":1,"need_login_subtitle":false,"subtitle":{"allow_submit":false,"lan":"","lan_doc":"","subtitles":[]},"player_icon":{"ctime":1708660800},"view_points":[],"preview_toast":"为创作付费,购买观看完整视频|购买观看","options":{"is_360":false,"without_vip":false},"guide_attention":[],"jump_card":[],"operation_card":[],"online_switch":{"enable_gray_dash_playback":"500","new_broadcast":"1","realtime_dm":"1","subtitle_submit_switch":"1"},"fawkes":{"config_version":30787,"ff_version":21289},"show_switch":{"long_progress":true},"bgm_info":null,"toast_block":false,"is_upower_exclusive":false,"is_upower_play":false,"is_ugc_pay_preview":false,"elec_high_level":{"privilege_type":0,"title":"","sub_title":"","show_button":false,"button_text":"","jump_url":"","intro":"","new":false},"disable_show_up_info":false}}
[2024-11-12 14:32:24.843] - 获取字幕...
[2024-11-12 14:32:24.844] - 获取网页内容: Url: https://api.bilibili.com/x/player/v2?cid=201196075&aid=243463548, Headers: User-Agent: Mozilla/5.0 (X11; Linux x86_64) Gecko/20100101 Firefox/96.843
Accept-Encoding: gzip, deflate
Cookie: [REDACTED]
Referer: https://www.bilibili.com/
Cache-Control: no-cache
[2024-11-12 14:32:25.120] - Response: {"code":0,"message":"0","ttl":1,"data":{"aid":243463548,"bvid":"BV1gv41167p3","allow_bp":false,"no_share":false,"cid":201196075,"max_limit":8000,"page_no":2,"has_next":true,"ip_info":{[REDACTED]},"login_mid":[REDACTED],"login_mid_hash":"[REDACTED]","is_owner":false,"name":"[REDACTED]","permission":"10000,1001","level_info":{[REDACTED],"vip":{[REDACTED]},"avatar_subscript":1,"nickname_color":"#FB7299","role":7,"avatar_subscript_url":"","tv_vip_status":1,"tv_vip_pay_type":0,"tv_due_date":1740844800,"avatar_icon":{"icon_type":1,"icon_resource":{}}},"answer_status":0,"block_time":0,"role":"0","last_play_time":0,"last_play_cid":0,"now_time":1731393142,"online_count":1,"need_login_subtitle":false,"subtitle":{"allow_submit":false,"lan":"","lan_doc":"","subtitles":[{"id":1610829317703712512,"lan":"zh-Hans","lan_doc":"中文(简体)","is_lock":false,"subtitle_url":"//aisubtitle.hdslb.com/bfs/subtitle/a17fb0aca6beb35b7ce7036ae811bd77b78461a5.json?auth_key=1731393142-203d20f2ba35405fb36e6ce1a5440634-0-bc99ea42c1724cd1011692a31a0b50bc","type":0,"id_str":"1610829317703712512","ai_type":0,"ai_status":0},{"id":1609649368040747776,"lan":"ai-zh","lan_doc":"中文(自动生成)","is_lock":false,"subtitle_url":"//aisubtitle.hdslb.com/bfs/ai_subtitle/prod/113379586870997264914889511e41498b892ec1297abf054d8367519e?auth_key=1731393142-029a3fc8cf9f46af9dab624794f34c65-0-5bd72cff5f195d3a35353aac38073d72","type":1,"id_str":"1609649368040747776","ai_type":0,"ai_status":2}]},"player_icon":{"ctime":1708660800},"view_points":[],"preview_toast":"为创作付费,购买观看完整视频|购买观看","options":{"is_360":false,"without_vip":false},"guide_attention":[],"jump_card":[],"operation_card":[],"online_switch":{"enable_gray_dash_playback":"500","new_broadcast":"1","realtime_dm":"1","subtitle_submit_switch":"1"},"fawkes":{"config_version":30787,"ff_version":21289},"show_switch":{"long_progress":true},"bgm_info":null,"toast_block":false,"is_upower_exclusive":false,"is_upower_play":false,"is_ugc_pay_preview":false,"elec_high_level":{"privilege_type":0,"title":"","sub_title":"","show_button":false,"button_text":"","jump_url":"","intro":"","new":false},"disable_show_up_info":false}}
[2024-11-12 14:32:25.122] - 跳过下载AI字幕
[2024-11-12 14:32:25.124] - 下载字幕 zh-Hans => 中文(简体)...
[2024-11-12 14:32:25.125] - 下载:https://aisubtitle.hdslb.com/bfs/subtitle/a17fb0aca6beb35b7ce7036ae811bd77b78461a5.json?auth_key=1731393142-203d20f2ba35405fb36e6ce1a5440634-0-bc99ea42c1724cd1011692a31a0b50bc
[2024-11-12 14:32:25.126] - 获取网页内容: Url: https://aisubtitle.hdslb.com/bfs/subtitle/a17fb0aca6beb35b7ce7036ae811bd77b78461a5.json?auth_key=1731393142-203d20f2ba35405fb36e6ce1a5440634-0-bc99ea42c1724cd1011692a31a0b50bc, Headers: User-Agent: Mozilla/5.0 (X11; Linux x86_64) Gecko/20100101 Firefox/96.843
Accept-Encoding: gzip, deflate
Cookie: [REDACTED]
Cache-Control: no-cache
[2024-11-12 14:32:25.344] - Response: {"font_size":0.4,"font_color":"#FFFFFF","background_alpha":0.5,"background_color":"#9C27B0","stroke":"none","body":[{"from":0.397,"to":27.425,"location":2,"content":"敲重点 ↓↓↓敲重点\n投降 包村 拥 威信 扫\n投降 包村 拥 威信 扫\n投降 包村 拥 威信 扫敲重点 ↓↓↓敲重点\n投降 包村 拥 威信 扫\n投降 包村 拥 威信 扫\n投降 包村 拥 威信 扫"}]}
[2024-11-12 14:32:25.346] - aid=243463548,cid=201196075,epId=,tvApi=False,IntlApi=False,appApi=False,qn=0
[2024-11-12 14:32:25.346] - bangumi=False,cheese=False

根据我个人分析日志,虽然下载字幕时请求的确实是同一个 URL,但由于未知原因而解析出了十分异常的字幕。

My-Responsitories commented 1 week ago

服务器问题, 可能是服务器刻意为之, 网页端的接口换成了这个api.bilibili.com/x/player/wbi/v2

back2yes commented 1 day ago

请问这个有办法解决吗