comwrg / bilibiliupload

This project is not maintained anymore.
MIT License
140 stars 35 forks source link

上传时出错{"code":21103,"message":"绋夸欢鏍棰杩榭,宸茬昏? 杩80涓","ttl":1} #35

Closed qianghuohhh closed 5 years ago

qianghuohhh commented 5 years ago

Describe the bug 代码没有改变,之前可以正常运行的代码产生了报错,可能是josn格式变了w

Your code def upbilibili(self,a): y=datetime.today() year=str(y.timetuple().tm_year) month=str(y.timetuple().tm_mon) day=str(y.timetuple().tm_mday) hour=str(y.timetuple().tm_hour) minute=str(y.timetuple().tm_min) c=craw_youtube_class(self.channel_url) c.getvideo('./video',a) c.getphoto('./img',a) videoid=c.getvideoid(a) time.sleep(31) b=Bilibili() b.login(self.user,self.password) self.charu=requ(creaturl("auto","zh",c.gettitle(a).replace("asmr"," ").replace("ASMR"," "))) parts1=VideoPart("./video/"+videoid+".mp4","111","222") '''parts2 = VideoPart("./video/addition.mp4", "防撞车,见谅", "222") parts = [parts1, parts2]''' title='【'+self.channel_name+'】'+self.charu+'('+year+'年'+month+'月'+day+'日'+hour+'时'+minute+'分)' desc=c.gettitle(a).replace("asmr"," ").replace("ASMR"," ")+'\n机器人搬运,格式固定,见谅。\n食用方法:比如想看某博主5月9日的更新视频,直接在初号机的搜索框搜索:博主名 5月9日,就会弹出来当天的更新内容\n欢迎指正错误,侵权会立刻马上删除。' source=c.geturl(a) cover=b.cover_up("./img/"+videoid+".jpg") b.upload(parts1,title,self.tid,self.tag,desc,source,cover) os.remove('./video/'+videoid+'.mp4') os.remove('./img/'+videoid+'.jpg')

Error message

[youtube] zLYqNaWwrKU: Downloading webpage
[youtube] zLYqNaWwrKU: Downloading video info webpage
[download] ./video/zLYqNaWwrKU.mp4 has already been downloaded
[download] 100% of 231.25MiB
0/29 MULTIPART_PUT_SUCCESS
1/29 MULTIPART_PUT_SUCCESS
2/29 MULTIPART_PUT_SUCCESS
3/29 MULTIPART_PUT_SUCCESS
4/29 MULTIPART_PUT_SUCCESS
5/29 MULTIPART_PUT_SUCCESS
6/29 MULTIPART_PUT_SUCCESS
7/29 MULTIPART_PUT_SUCCESS
8/29 MULTIPART_PUT_SUCCESS
9/29 MULTIPART_PUT_SUCCESS
10/29 MULTIPART_PUT_SUCCESS
11/29 MULTIPART_PUT_SUCCESS
12/29 MULTIPART_PUT_SUCCESS
13/29 MULTIPART_PUT_SUCCESS
14/29 MULTIPART_PUT_SUCCESS
15/29 MULTIPART_PUT_SUCCESS
16/29 MULTIPART_PUT_SUCCESS
17/29 MULTIPART_PUT_SUCCESS
18/29 MULTIPART_PUT_SUCCESS
19/29 MULTIPART_PUT_SUCCESS
20/29 MULTIPART_PUT_SUCCESS
21/29 MULTIPART_PUT_SUCCESS
22/29 MULTIPART_PUT_SUCCESS
23/29 MULTIPART_PUT_SUCCESS
24/29 MULTIPART_PUT_SUCCESS
25/29 MULTIPART_PUT_SUCCESS
26/29 MULTIPART_PUT_SUCCESS
27/29 MULTIPART_PUT_SUCCESS
28/29 MULTIPART_PUT_SUCCESS
Traceback (most recent call last):
  File "bili.py", line 370, in <module>
    judge_last_video_exsit(c)
  File "bili.py", line 85, in judge_last_video_exsit
    channel_item.upbilibili(0)
  File "bili.py", line 47, in upbilibili
    b.upload(parts1,title,self.tid,self.tag,desc,source,cover)
  File "/root/anaconda3/lib/python3.7/site-packages/bilibiliupload/bilibili.py", line 338, in upload
    r = retry_add()
  File "/root/anaconda3/lib/python3.7/site-packages/bilibiliupload/bilibili.py", line 334, in retry_add
    raise Exception('Fail to add video, {}'.format(r.text))
Exception: Fail to add video, {"code":21103,"message":"绋夸欢鏍棰杩榭,宸茬昏?
杩80涓","ttl":1}