Closed CJN1986 closed 9 months ago
直播已修复。
视频搞不来,byted_acrawler.sign
和浏览器算出来的长度不一样。
修复直播就可以了,因为直播看不了,才顺便试一下视频能不能看。
先这样留着吧,毕竟 sign 的问题没有解决,说不定以后直播也需要。
直播好像又不行了。
ykdl -p mpv.exe https://live.douyin.com/660292215268 --debug
DEBUG:ykdl.util.http:Add <urllib.request.HTTPSHandler object at 0x000002917CE616D0> to default handlers
DEBUG:ykdl.util.http:Add <urllib.request.ProxyHandler object at 0x000002917CE615E0> to default handlers
DEBUG:ykdl.common:host> live.douyin.com
DEBUG:ykdl.common:short_name> douyin
DEBUG:ykdl.util.http:get_response> URL: https://live.douyin.com/660292215268
DEBUG:抖音直播 (Douyin):data:
e:I{"id":"78161","chunks":[6021,8904,7203,7317],"name":"","async":false}
5:["$","$Le",null,{"pathname":"/660292215268","isClient":false,"os":{"os":"Linux","version":"","isMas":false},"isMainland":true}]
DEBUG:YKDL:'int' object is not subscriptable
Traceback (most recent call last):
File "C:\Users\use\AppData\Roaming\Python\Python39\site-packages\cykdl\__main__.py", line 318, in main
for rc in map(handle_video, args.video_urls):
File "C:\Users\use\AppData\Roaming\Python\Python39\site-packages\cykdl\__main__.py", line 227, in handle_video
info = parser(u)
File "C:\Users\use\AppData\Roaming\Python\Python39\site-packages\ykdl\extractor.py", line 81, in parser
info = self.prepare()
File "C:\Users\use\AppData\Roaming\Python\Python39\site-packages\ykdl\extractors\douyin\live.py", line 42, in prepare
video_info = data['state']['roomStore']['roomInfo'].get('room')
TypeError: 'int' object is not subscriptable
好了,短期内可能还会有修正。
昨天才想起来几个月前试过的 X-Bogus
,当时不添加也行。
更新后反而看不了
ykdl -i https://live.douyin.com/208823316033 --debug
DEBUG:ykdl.util.http:Add <urllib.request.HTTPSHandler object at 0x00000209225316D0> to default handlers
DEBUG:ykdl.util.http:Add <urllib.request.ProxyHandler object at 0x00000209225315E0> to default handlers
DEBUG:ykdl.common:host> live.douyin.com
DEBUG:ykdl.common:short_name> douyin
DEBUG:YKDL:get_nonce_cookies() takes 0 positional arguments but 1 was given
Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\cykdl\__main__.py", line 318, in main
for rc in map(handle_video, args.video_urls):
File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\cykdl\__main__.py", line 227, in handle_video
info = parser(u)
File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\ykdl\extractor.py", line 81, in parser
info = self.prepare()
File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\ykdl\extractors\douyin\live.py", line 35, in prepare
html = _byted.get_content(self.url)
File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\ykdl\extractors\_byted.py", line 100, in get_content
response = get_response(*args, **kwargs)
File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\ykdl\extractors\_byted.py", line 93, in get_response
cookies = _cookies.get('nonce') or get_nonce_cookies(url)
TypeError: get_nonce_cookies() takes 0 positional arguments but 1 was given
回退到e72165baed8b7e6a8bccfb8d60de9341fc4f7db6这个版本就可以看直播
在提交前,请确保您已经检查了以下内容!
请将错误输出粘贴在下面:
视频:
直播:
如果你有其他附言,例如问题只在某个视频发生,或者是一般性讨论或者提出新功能,请在下面添加:
YKDL 1.8.2,好像是最近几天开始看不了。