nilaoda / BBDown

Bilibili Downloader. 一款命令行式哔哩哔哩下载器.
MIT License
9.81k stars 1.27k forks source link

config文件内 <ownerName>无效 #417

Closed lmst2 closed 2 years ago

lmst2 commented 2 years ago

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

。。。1.5.3

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

。。。Win

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

BBDown "https://www.bilibili.com/video/avxxxxxxxx"

4. 遇到了什么问题?

xxx BBdown.config里指定的没有起到预期效果 image image

如图所示其产生的视频文件名称正常,但是文件夹名称直接是ownerName而不是up主昵称

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

。。。

C:\Users\wujia\Downloads\Compressed\BBDown_1.5.3_20220514_win-x64>BBDown --debug "https://www.bilibili.com/video/av429657121"
BBDown version 1.5.3, Bilibili Downloader.
欢迎到讨论区交流:
https://github.com/nilaoda/BBDown/discussions

[2022-08-18 21:46:49.532] - 加载配置文件: C:\Users\wujia\Downloads\Compressed\BBDown_1.5.3_20220514_win-x64\BBDown.config
[2022-08-18 21:46:49.540] - 新的命令行参数: --debug https://www.bilibili.com/video/av429657121 --file-pattern <ownerName>/[<dfn>]<videoTitle> --multi-file-pattern <ownerName>/<videoTitle>/[P<pageNumberWithZero>][<dfn>]<pageTitle> --download-danmaku
[2022-08-18 21:46:49.546] - AppDirectory: C:\Users\wujia\Downloads\Compressed\BBDown_1.5.3_20220514_win-x64
[2022-08-18 21:46:49.548] - 运行参数:{"Url":"https://www.bilibili.com/video/av429657121","UseTvApi":false,"UseAppApi":false,"UseIntlApi":false,"UseMP4box":false,"EncodingPriority":null,"DfnPriority":null,"OnlyShowInfo":false,"ShowAll":false,"UseAria2c":false,"Interactive":false,"HideStreams":false,"MultiThread":true,"VideoOnly":false,"AudioOnly":false,"SubOnly":false,"Debug":true,"SkipMux":false,"SkipSubtitle":false,"SkipCover":false,"ForceHttp":true,"DownloadDanmaku":true,"FilePattern":"\u003CownerName\u003E/[\u003Cdfn\u003E]\u003CvideoTitle\u003E","MultiFilePattern":"\u003CownerName\u003E/\u003CvideoTitle\u003E/[P\u003CpageNumberWithZero\u003E][\u003Cdfn\u003E]\u003CpageTitle\u003E","SelectPage":"","Language":"","Cookie":"","AccessToken":"","Aria2cProxy":"","WorkDir":"","FFmpegPath":"","Mp4boxPath":"","Aria2cPath":"","DelayPerPage":"0","ConfigFile":null,"OnlyHevc":false,"OnlyAvc":false,"OnlyAv1":false,"AddDfnSubfix":false,"NoPaddingPageNum":false}
[2022-08-18 21:46:49.550] - 加载本地cookie...
[2022-08-18 21:46:49.550] - 文件路径:C:\Users\wujia\Downloads\Compressed\BBDown_1.5.3_20220514_win-x64\BBDown.data
[2022-08-18 21:46:49.551] - 检测账号登录...
[2022-08-18 21:46:50.218] - 获取aid...
[2022-08-18 21:46:50.219] - 获取网页内容:Url: https://api.bilibili.com/x/web-interface/archive/stat?aid=429657121, Headers: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15
Accept-Encoding: gzip, deflate
Cache-Control: no-cache
[2022-08-18 21:46:50.463] - Response: {"code":0,"message":"0","ttl":1,"data":{"aid":429657121,"bvid":"BV1QG411x7d5","view":34899,"danmaku":42,"reply":240,"favorite":245,"coin":395,"share":272,"like":2002,"now_rank":0,"his_rank":0,"no_reprint":1,"copyright":1,"argue_msg":"","evaluation":""}}
[2022-08-18 21:46:50.464] - 获取aid结束: 429657121
[2022-08-18 21:46:50.464] - 获取视频信息...
[2022-08-18 21:46:50.465] - 获取网页内容:Url: https://api.bilibili.com/x/web-interface/view?aid=429657121, Headers: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15
Accept-Encoding: gzip, deflate
Cache-Control: no-cache
[2022-08-18 21:46:50.810] - Response: {"code":0,"message":"0","ttl":1,"data":{"bvid":"BV1QG411x7d5","aid":429657121,"videos":1,"tid":207,"tname":"财经商业","copyright":1,"pic":"http://i2.hdslb.com/bfs/archive/82cf59b3066d39bb0fa96c78856ba83b0dd6c4b0.jpg","title":"就很无奈。对各位银行家。","pubdate":1660843491,"ctime":1660843491,"desc":"-","desc_v2":[{"raw_text":"-","type":1,"biz_id":0}],"state":0,"duration":140,"rights":{"bp":0,"elec":0,"download":1,"movie":0,"pay":0,"hd5":0,"no_reprint":1,"autoplay":1,"ugc_pay":0,"is_cooperation":0,"ugc_pay_preview":0,"no_background":0,"clean_mode":0,"is_stein_gate":0,"is_360":0,"no_share":0,"arc_pay":0,"free_watch":0},"owner":{"mid":1343324216,"name":"老陌Ss","face":"http://i2.hdslb.com/bfs/face/de940ab86fb7fdc690fd24d018c1602c2a8d62b0.jpg"},"stat":{"aid":429657121,"view":34899,"danmaku":42,"reply":240,"favorite":245,"coin":395,"share":272,"now_rank":0,"his_rank":0,"like":2002,"dislike":0,"evaluation":"","argue_msg":""},"dynamic":"","cid":807735886,"dimension":{"width":1920,"height":1080,"rotate":0},"premiere":null,"teenage_mode":0,"is_chargeable_season":false,"is_story":false,"no_cache":false,"pages":[{"cid":807735886,"page":1,"from":"vupload","part":"就很无奈。对各位银行家。","duration":140,"vid":"","weblink":"","dimension":{"width":1920,"height":1080,"rotate":0},"first_frame":"http://i1.hdslb.com/bfs/storyff/n220819qn1b0ebgg67k17i21txety7w5_firsti.jpg"}],"subtitle":{"allow_submit":false,"list":[]},"is_season_display":false,"user_garb":{"url_image_ani_cut":"http://i0.hdslb.com/bfs/garb/item/8d858a545b3b2030fc73c4f75a85b8d6636658c4.bin"},"honor_reply":{}}}
[2022-08-18 21:46:50.813] - 视频标题: 就很无奈。对各位银行家。
[2022-08-18 21:46:50.813] - 发布时间: 2022/8/18 13:24:51
[2022-08-18 21:46:50.813] - P1: [807735886] [就很无奈。对各位银行家。] [02m20s]
[2022-08-18 21:46:50.814] - 共计 1 个分P, 已选择:ALL
[2022-08-18 21:46:50.814] - 开始解析P1...
[2022-08-18 21:46:50.814] - 尝试获取章节信息...
[2022-08-18 21:46:50.815] - 获取网页内容:Url: https://api.bilibili.com/x/player/v2?cid=807735886&aid=429657121, Headers: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15
Accept-Encoding: gzip, deflate
Cache-Control: no-cache
[2022-08-18 21:46:51.150] - Response: {"code":0,"message":"0","ttl":1,"data":{"aid":429657121,"bvid":"BV1QG411x7d5","allow_bp":false,"no_share":false,"cid":807735886,"max_limit":500,"page_no":1,"has_next":false,"ip_info":{"ip":"99.247.38.233","zone_ip":" 172.22.17.205","zone_id":180371696,"country":"加拿大","province":"安大略省","city":"密西沙加"},"login_mid":25281154,"login_mid_hash":"6ec9721d","is_owner":false,"name":"闪电的主人wjc","permission":"10000,1001","level_info":{"current_level":6,"current_min":28800,"current_exp":42652,"next_exp":-1},"vip":{"type":2,"status":1,"due_date":1828108800000,"vip_pay_type":0,"theme_type":0,"label":{"path":"","text":"十年大会员","label_theme":"ten_annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":"","use_img_label":true,"img_label_uri_hans":"","img_label_uri_hant":"","img_label_uri_hans_static":"https://i0.hdslb.com/bfs/vip/adb599797dd171e2d3d6d012f448b49679258344.png","img_label_uri_hant_static":"https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/sGu57N6pgK.png"},"avatar_subscript":1,"nickname_color":"#FB7299","role":7,"avatar_subscript_url":"","tv_vip_status":0,"tv_vip_pay_type":0},"answer_status":0,"block_time":0,"role":"0","last_play_time":2000,"last_play_cid":807735886,"now_time":1660873614,"online_count":51,"dm_mask":{"cid":807735886,"plat":0,"fps":30,"time":0,"mask_url":"//upos-sz-staticcos-cmask.bilivideo.com/cmaskboss/807735886_30_0.webmask?trid=8ab40343c228406d99bc2d18d562b50fB\u0026orderid=0,1\u0026logo=00000000"},"subtitle":{"allow_submit":false,"lan":"","lan_doc":"","subtitles":[]},"view_points":[],"is_ugc_pay_preview":false,"preview_toast":"为创作付费,购买观看完整视频|购买观看","pcdn_loader":{"flv":{"labels":{"pcdn_video_type":"flv","pcdn_stage":"release","pcdn_group":"nil","pcdn_version":"nil","pcdn_vendor":"nil"}},"dash":{"labels":{"pcdn_video_type":"dash","pcdn_stage":"release","pcdn_group":"nil","pcdn_version":"nil","pcdn_vendor":"nil"}}},"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":17509,"ff_version":0},"show_switch":{"long_progress":false},"bgm_info":null}}
[2022-08-18 21:46:51.155] - 下载封面...
[2022-08-18 21:46:51.155] - 下载:http://i2.hdslb.com/bfs/archive/82cf59b3066d39bb0fa96c78856ba83b0dd6c4b0.jpg
[2022-08-18 21:46:51.707] - 获取字幕...
[2022-08-18 21:46:51.708] - 获取网页内容:Url: https://api.bilibili.com/x/web-interface/view?aid=429657121&cid=807735886, Headers: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15
Accept-Encoding: gzip, deflate
Cache-Control: no-cache
[2022-08-18 21:46:52.040] - Response: {"code":0,"message":"0","ttl":1,"data":{"bvid":"BV1QG411x7d5","aid":429657121,"videos":1,"tid":207,"tname":"财经商业","copyright":1,"pic":"http://i2.hdslb.com/bfs/archive/82cf59b3066d39bb0fa96c78856ba83b0dd6c4b0.jpg","title":"就很无奈。对各位银行家。","pubdate":1660843491,"ctime":1660843491,"desc":"-","desc_v2":[{"raw_text":"-","type":1,"biz_id":0}],"state":0,"duration":140,"rights":{"bp":0,"elec":0,"download":1,"movie":0,"pay":0,"hd5":0,"no_reprint":1,"autoplay":1,"ugc_pay":0,"is_cooperation":0,"ugc_pay_preview":0,"no_background":0,"clean_mode":0,"is_stein_gate":0,"is_360":0,"no_share":0,"arc_pay":0,"free_watch":0},"owner":{"mid":1343324216,"name":"老陌Ss","face":"http://i2.hdslb.com/bfs/face/de940ab86fb7fdc690fd24d018c1602c2a8d62b0.jpg"},"stat":{"aid":429657121,"view":34899,"danmaku":42,"reply":240,"favorite":245,"coin":395,"share":272,"now_rank":0,"his_rank":0,"like":2002,"dislike":0,"evaluation":"","argue_msg":""},"dynamic":"","cid":807735886,"dimension":{"width":1920,"height":1080,"rotate":0},"premiere":null,"teenage_mode":0,"is_chargeable_season":false,"is_story":false,"no_cache":false,"pages":[{"cid":807735886,"page":1,"from":"vupload","part":"就很无奈。对各位银行家。","duration":140,"vid":"","weblink":"","dimension":{"width":1920,"height":1080,"rotate":0},"first_frame":"http://i1.hdslb.com/bfs/storyff/n220819qn1b0ebgg67k17i21txety7w5_firsti.jpg"}],"subtitle":{"allow_submit":false,"list":[]},"is_season_display":false,"user_garb":{"url_image_ani_cut":"http://i0.hdslb.com/bfs/garb/item/8d858a545b3b2030fc73c4f75a85b8d6636658c4.bin"},"honor_reply":{}}}
[2022-08-18 21:46:52.045] - aid=429657121,cid=807735886,epId=,tvApi=False,IntlApi=False,appApi=False,qn=0
[2022-08-18 21:46:52.046] - bangumi=False,cheese=False
[2022-08-18 21:46:52.046] - 获取网页内容:Url: https://api.bilibili.com/x/player/playurl?avid=429657121&cid=807735886&qn=0&type=&otype=json&fourk=1&fnver=0&fnval=4048, Headers: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15
Accept-Encoding: gzip, deflate
Cache-Control: no-cache
[2022-08-18 21:46:52.372] - Response: {"code":0,"message":"0","ttl":1,"data":{"from":"local","result":"suee","message":"","quality":64,"format":"flv720","timelength":139388,"accept_format":"hdflv2,flv,flv720,flv480,mp4","accept_description":["高清 1080P+","高清 1080P","高清 720P","清晰 480P","流畅 360P"],"accept_quality":[112,80,64,32,16],"video_codecid":7,"seek_param":"start","seek_type":"offset","dash":{"duration":140,"minBufferTime":1.5,"min_buffer_time":1.5,"video":[......................省略过长内容............................],"dolby":null,"flac":null},"support_formats":[{"quality":112,"format":"hdflv2","new_description":"1080P 高码率","display_desc":"1080P","superscript":"高码率","codecs":["av01.0.08M.08.0.110.01.01.01.0","avc1.640032","hev1.1.6.L150.90"]},{"quality":80,"format":"flv","new_description":"1080P 高清","display_desc":"1080P","superscript":"","codecs":["av01.0.08M.08.0.110.01.01.01.0","avc1.640032","hev1.1.6.L150.90"]},{"quality":64,"format":"flv720","new_description":"720P 高清","display_desc":"720P","superscript":"","codecs":["av01.0.05M.08.0.110.01.01.01.0","avc1.640028","hev1.1.6.L120.90"]},{"quality":32,"format":"flv480","new_description":"480P 清晰","display_desc":"480P","superscript":"","codecs":["av01.0.04M.08.0.110.01.01.01.0","avc1.64001F","hev1.1.6.L120.90"]},{"quality":16,"format":"mp4","new_description":"360P  流畅","display_desc":"360P","superscript":"","codecs":["av01.0.01M.08.0.110.01.01.01.0","avc1.64001E","hev1.1.6.L120.90"]}],"high_format":null,"last_play_time":2000}}
[2022-08-18 21:46:52.434] - aid=429657121,cid=807735886,epId=,tvApi=False,IntlApi=False,appApi=False,qn=127
[2022-08-18 21:46:52.435] - bangumi=False,cheese=False
[2022-08-18 21:46:52.435] - 获取网页内容:Url: https://api.bilibili.com/x/player/playurl?avid=429657121&cid=807735886&qn=127&type=&otype=json&fourk=1&fnver=0&fnval=4048, Headers: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15
Accept-Encoding: gzip, deflate
Cache-Control: no-cache
[2022-08-18 21:46:52.766] - Response: {"code":0,"message":"0","ttl":1,"data":{"from":"local","result":"suee","message":"","quality":112,"format":"hdflv2","timelength":139388,"accept_format":"hdflv2,flv,flv720,flv480,mp4","accept_description":["高清 1080P+","高清 1080P","高清 720P","清晰 480P","流畅 360P"],"accept_quality":[112,80,64,32,16],"video_codecid":7,"seek_param":"start","seek_type":"offset","dash":{"duration":140,"minBufferTime":1.5,"min_buffer_time":1.5,"video":[........................省略过长内容...............................],"dolby":null,"flac":null},"support_formats":[{"quality":112,"format":"hdflv2","new_description":"1080P 高码率","display_desc":"1080P","superscript":"高码率","codecs":["av01.0.08M.08.0.110.01.01.01.0","avc1.640032","hev1.1.6.L150.90"]},{"quality":80,"format":"flv","new_description":"1080P 高清","display_desc":"1080P","superscript":"","codecs":["av01.0.08M.08.0.110.01.01.01.0","avc1.640032","hev1.1.6.L150.90"]},{"quality":64,"format":"flv720","new_description":"720P 高清","display_desc":"720P","superscript":"","codecs":["av01.0.05M.08.0.110.01.01.01.0","avc1.640028","hev1.1.6.L120.90"]},{"quality":32,"format":"flv480","new_description":"480P 清晰","display_desc":"480P","superscript":"","codecs":["av01.0.04M.08.0.110.01.01.01.0","avc1.64001F","hev1.1.6.L120.90"]},{"quality":16,"format":"mp4","new_description":"360P 流畅","display_desc":"360P","superscript":"","codecs":["av01.0.01M.08.0.110.01.01.01.0","avc1.64001E","hev1.1.6.L120.90"]}],"high_format":null,"last_play_time":2000}}
[2022-08-18 21:46:52.838] - 共计15条视频流.
                            0. [1080P 高码率] [1920x1080] [AVC] [29.412] [4043 kbps] [~69.09 MB]
                            1. [1080P 高码率] [1920x1080] [HEVC] [30.303] [2117 kbps] [~36.18 MB]
                            2. [1080P 高码率] [1920x1080] [AV1] [30.019] [1908 kbps] [~32.61 MB]
                            3. [1080P 高清] [1920x1080] [AVC] [29.412] [2469 kbps] [~42.19 MB]
                            4. [1080P 高清] [1920x1080] [HEVC] [30.303] [1262 kbps] [~21.57 MB]
                            5. [1080P 高清] [1920x1080] [AV1] [30.019] [995 kbps] [~17.00 MB]
                            6. [720P 高清] [1280x720] [AVC] [29.412] [1068 kbps] [~18.25 MB]
                            7. [720P 高清] [1280x720] [HEVC] [30.303] [480 kbps] [~8.20 MB]
                            8. [720P 高清] [1280x720] [AV1] [30.019] [464 kbps] [~7.93 MB]
                            9. [480P 清晰] [852x480] [AVC] [29.412] [549 kbps] [~9.38 MB]
                            10. [480P 清晰] [852x480] [HEVC] [30.303] [292 kbps] [~4.99 MB]
                            11. [480P 清晰] [852x480] [AV1] [30.019] [253 kbps] [~4.32 MB]
                            12. [360P 流畅] [640x360] [AVC] [29.412] [352 kbps] [~6.02 MB]
                            13. [360P 流畅] [640x360] [AV1] [30.019] [200 kbps] [~3.42 MB]
                            14. [360P 流畅] [640x360] [HEVC] [30.303] [191 kbps] [~3.26 MB]
[2022-08-18 21:46:52.848] - 共计3条音频流.
                            0. [M4A] [129 kbps] [~2.20 MB]
                            1. [M4A] [129 kbps] [~2.20 MB]
                            2. [M4A] [67 kbps] [~1.15 MB]
[2022-08-18 21:46:52.849] - 已选择的流:
                            [视频] [1080P 高码率] [1920x1080] [AVC] [29.412] [4043 kbps] [~68.60 MB]
                            [音频] [M4A] [129 kbps] [~2.19 MB]
[2022-08-18 21:46:52.851] - Format Before: <ownerName>/[<dfn>]<videoTitle>
[2022-08-18 21:46:52.851] - Format After: ownerName/[1080P 高码率]就很无奈。对各位银行家。.mp4
[2022-08-18 21:46:52.851] - 正在下载弹幕Xml文件
[2022-08-18 21:46:52.852] - Start downloading: https://comment.bilibili.com/807735886.xml
[2022-08-18 21:46:53.419] - 正在保存弹幕Ass文件...
[2022-08-18 21:46:53.420] - ownerName/[1080P 高码率]就很无奈。对各位银行家。.mp4已存在, 跳过下载...
[2022-08-18 21:46:53.421] - 任务完成

C:\Users\wujia\Downloads\Compressed\BBDown_1.5.3_20220514_win-x64>

lmst2 commented 2 years ago

image 这一行,替换了但并没有替换。替换成了ownerName,莫非是程序默认的昵称字符?但关键是前面response里有name呀。应该是程序内部没处理好

nilaoda commented 2 years ago

release版本还不支持,请到Actions中下载自动构建版本(最近我抽空发布一下release版本,太久没更新了……)