|
@@ -22,7 +22,7 @@ def get_relevant_videos_with_excel():
|
|
|
recommend_vid = int(df.iloc[i]['recommendVid'])
|
|
|
# 状态过滤
|
|
|
filtered_videos = filter_video_status(video_ids=[recommend_vid])
|
|
|
- if not filtered_videos or len(filtered_videos) == 0:
|
|
|
+ if filtered_videos is None or len(filtered_videos) == 0:
|
|
|
continue
|
|
|
# 将时间转换为10位时间戳
|
|
|
start_time = int(time.mktime(time.strptime(df.iloc[i]['startTime'].split(r'.')[0], '%Y-%m-%d %H:%M:%S')))
|