瀏覽代碼

修改快手内容类型如果是note返回三个参数

zhangliang 1 周之前
父節點
當前提交
ddddded8b4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/dy_ks_get_url.py

+ 1 - 1
utils/dy_ks_get_url.py

@@ -119,7 +119,7 @@ class Dy_KS:
                 data = response["data"]["data"]
                 data = response["data"]["data"]
                 content_type = data['content_type']
                 content_type = data['content_type']
                 if content_type == 'note':
                 if content_type == 'note':
-                    return "note","note"
+                    return "note","note",None
                 video_url = data["video_url_list"][0]["video_url"]
                 video_url = data["video_url_list"][0]["video_url"]
                 original_title = data["title"]
                 original_title = data["title"]
                 return video_url, original_title, video_id
                 return video_url, original_title, video_id