fix(result): 修复1080p清晰度链接

This commit is contained in:
imgyh 2023-04-21 16:40:48 +08:00
parent 9aaab2f691
commit ada1851e86

View File

@ -256,8 +256,9 @@ class Result(object):
if item == "play_addr": if item == "play_addr":
dataNew[item]["uri"] = dataRaw["bit_rate"][0]["play_addr"]["uri"] dataNew[item]["uri"] = dataRaw["bit_rate"][0]["play_addr"]["uri"]
# 使用 这个api 可以获得1080p # 使用 这个api 可以获得1080p
dataNew[item]["url_list"] = "https://aweme.snssdk.com/aweme/v1/play/?video_id=%s&ratio=1080p&line=0" \ # dataNew[item]["url_list"] = "https://aweme.snssdk.com/aweme/v1/play/?video_id=%s&ratio=1080p&line=0" \
% dataNew[item]["uri"] # % dataNew[item]["uri"]
dataNew[item]["url_list"] = dataRaw["bit_rate"][0]["play_addr"]["url_list"][0]
continue continue
# 常规 递归遍历 字典 # 常规 递归遍历 字典