AsaChiri / DDRecorder

📺Headless全自动B站直播录播、切片、上传一体工具
Apache License 2.0
442 stars 71 forks source link

录制正常,上传显示'新增稿件分P不能为空' #70

Closed Sakuranda closed 2 years ago

Sakuranda commented 2 years ago

下面是Processor的log Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 Processor.py[line:273] INFO Processing clipper Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 retry.py[line:351] DEBUG Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None) Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): api.live.bilibili.com:443 Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /room/v1/Room/get_info?room_id=1991211 HTTP/1.1" 200 None Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 BiliLive.py[line:26] DEBUG [Site:BiliBili Room:1991211] 房间API消息:ok Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /live_user/v1/UserInfo/get_anchor_in_room?roomid=1991211 HTTP/1.1" 200 740 Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /room/v1/Room/get_info?room_id=1991211 HTTP/1.1" 200 None Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 BiliLive.py[line:26] DEBUG [Site:BiliBili Room:1991211] 房间API消息:ok Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /live_user/v1/UserInfo/get_anchor_in_room?roomid=1991211 HTTP/1.1" 200 740 Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 BaseLive.py[line:66] INFO [Site:BiliBili Room:1991211] 等待开播 Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): api.bilibili.com:443 Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.bilibili.com:443 "GET /x/web-interface/nav HTTP/1.1" 200 None Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): member.bilibili.com:443 Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://member.bilibili.com:443 "GET /x/geetest/pre/add HTTP/1.1" 200 None Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:228] DEBUG Starting new HTTP connection (1): api.bilibili.com:80 Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG http://api.bilibili.com:80 "GET /x/space/myinfo HTTP/1.1" 200 None Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 bili_webup.py[line:547] INFO 用户权重: 1 Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 bili_webup.py[line:570] INFO 使用客户端api端提交 Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:228] DEBUG Starting new HTTP connection (1): member.bilibili.com:80 Wed, 06 Jul 2022 22:07:24 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG http://member.bilibili.com:80 "POST /x/vu/client/add?access_key=2780e54b8b72a27b69be55325f3cba71 HTTP/1.1" 200 None Wed, 06 Jul 2022 22:07:24 140207663871552 Thread-3 Uploader.py[line:132] ERROR [Site:BiliBili Room:1991211] Error while uploading:{'code': 21011, 'message': '新增稿件分P不能为空', 'ttl': 1}Traceback (most recent call last): File "/root/ddrec/DDRecorder-main/Uploader.py", line 86, in upload clips_video_ret = self.uploader.submit() File "/usr/local/lib/python3.10/dist-packages/biliup/plugins/bili_webup.py", line 562, in submit raise Exception(ret) Exception: {'code': 21011, 'message': '新增稿件分P不能为空', 'ttl': 1}

Sakuranda commented 2 years ago

自己解决了orz 原来是默认的config.json里面spec1和spec2不一样 每一个参数调对就好了