Open luoyuLianga opened 1 day ago
更换直播间地址也还是有问题: 新地址: https://www.tiktok.com/@yanzkag_/live
更换直播间地址也还是有问题: https://www.tiktok.com/@yanzkag_/live
除了TikTok其他直播能正常录制吗?
更换直播间地址也还是有问题: https://www.tiktok.com/@yanzkag_/live
除了TikTok其他直播能正常录制吗?
测试了抖音的,正常的
Bot detected the issue body's language is not English, translate it automatically.
There are still problems when changing the live broadcast room address: https://www.tiktok.com/@yanzkag_/live
Can live broadcasts other than TikTok be recorded normally?
I tested Douyin and it’s normal.
大概是type hint代码的问题导致报错,python 3.10以下没有 list[dict[str, int | Any]]
使用 |
这样的写法
升级python版本 或者 将DouyinLiveRecorder/douyinliverecorder/stream.py的大概65行
def get_video_quality_url(stream, q_key) -> list[dict[str, int | Any]]:
改为
def get_video_quality_url(stream, q_key) -> list[dict[str, Union[int, Any]]]
大概是type hint代码的问题导致报错,python 3.10以下没有
list[dict[str, int | Any]]
使用|
这样的写法升级python版本 或者 将DouyinLiveRecorder/douyinliverecorder/stream.py的大概65行
def get_video_quality_url(stream, q_key) -> list[dict[str, int | Any]]:
改为
def get_video_quality_url(stream, q_key) -> list[dict[str, Union[int, Any]]]
def get_video_quality_url(stream, q_key) -> list[dict[str, int | Any]]:
改为
def get_video_quality_url(stream, q_key) -> list[dict[str, Union[int, Any]]]:
可以解决上述报错,但是录制中出现了一个新问题:
⚠️ 确认是否已存在类似问题
🔧 运行方式
使用源代码运行
🐍 如果是使用源代码运行,请选择你的Python环境版本
Python 3.9
⚠️ 确认是否已经重试多次
🕹 复现步骤
😯 问题描述
📜 错误信息
No response