|
@@ -327,7 +327,11 @@ class AgcVidoe():
|
|
|
uid, srt, title_list = Material.get_all_data(feishu_id, link, mark)
|
|
|
# 获取已入库的用户id
|
|
|
user_id = cls.get_user_id(platform, mark)
|
|
|
- user = random.choice(user_id)
|
|
|
+ if user_id:
|
|
|
+ user = random.choice(user_id)
|
|
|
+ else:
|
|
|
+ Common.logger("video").info(f"{mark}的{platform} 渠道无抓取的数据")
|
|
|
+ return ""
|
|
|
user = str(user).replace('(', '').replace(')', '').replace(',', '')
|
|
|
Common.logger("video").info(f"{mark}的{platform}渠道获取的用户ID:{user}")
|
|
|
# 获取 未使用的视频链接
|