From ada1851e869ae4a65a43fb07eff3c22baeced087 Mon Sep 17 00:00:00 2001 From: imgyh <1974355683@qq.com> Date: Fri, 21 Apr 2023 16:40:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(result):=20=E4=BF=AE=E5=A4=8D1080p=E6=B8=85?= =?UTF-8?q?=E6=99=B0=E5=BA=A6=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TikTokResult.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TikTokResult.py b/TikTokResult.py index 8d13667..a3e69e2 100644 --- a/TikTokResult.py +++ b/TikTokResult.py @@ -256,8 +256,9 @@ class Result(object): if item == "play_addr": dataNew[item]["uri"] = dataRaw["bit_rate"][0]["play_addr"]["uri"] # 使用 这个api 可以获得1080p - dataNew[item]["url_list"] = "https://aweme.snssdk.com/aweme/v1/play/?video_id=%s&ratio=1080p&line=0" \ - % dataNew[item]["uri"] + # dataNew[item]["url_list"] = "https://aweme.snssdk.com/aweme/v1/play/?video_id=%s&ratio=1080p&line=0" \ + # % dataNew[item]["uri"] + dataNew[item]["url_list"] = dataRaw["bit_rate"][0]["play_addr"]["url_list"][0] continue # 常规 递归遍历 字典