wangkun 2 years ago
parent
commit
abf7c57d17
3 changed files with 12 additions and 3 deletions
  1. 3 0
      README.md
  2. 0 3
      main/demo.py
  3. 9 0
      main/xigua_follow.py

+ 3 - 0
README.md

@@ -18,6 +18,9 @@
 2. python3 /main/run_xigua_follow.py
 
 #### 需求
+2022/11/19
+1. 增加已下载表_11月之前
+
 2022/9/28
 1. 排除置顶过期(发布时间超过10天)视频
 

File diff suppressed because it is too large
+ 0 - 3
main/demo.py


+ 9 - 0
main/xigua_follow.py

@@ -243,6 +243,8 @@ class Follow:
                         Common.logger(log_type).info('标题已中过滤词:{}\n', video_title)
                     elif str(video_id) in [x for y in Feishu.get_values_batch(log_type, 'xigua', 'e075e9') for x in y]:
                         Common.logger(log_type).info('视频已下载\n')
+                    elif str(video_id) in [x for y in Feishu.get_values_batch(log_type, 'xigua', '3Ul6wZ') for x in y]:
+                        Common.logger(log_type).info('视频已下载\n')
                     elif str(video_id) in [x for y in Feishu.get_values_batch(log_type, 'xigua', 'wjhpDs') for x in y]:
                         Common.logger(log_type).info('视频已存在\n')
                     else:
@@ -575,6 +577,8 @@ class Follow:
                             Common.logger(log_type).info('标题已中过滤词:{}\n', video_title)
                         elif str(video_id) in [x for y in Feishu.get_values_batch(log_type, 'xigua', 'e075e9') for x in y]:
                             Common.logger(log_type).info('视频已下载:{}\n', video_title)
+                        elif str(video_id) in [x for y in Feishu.get_values_batch(log_type, 'xigua', '3Ul6wZ') for x in y]:
+                            Common.logger(log_type).info('视频已下载\n')
                         elif str(video_id) in [x for y in Feishu.get_values_batch(log_type, 'xigua', 'wjhpDs') for x in y]:
                             Common.logger(log_type).info('视频已存在:{}\n', video_title)
                         else:
@@ -679,6 +683,11 @@ class Follow:
                     Feishu.dimension_range(log_type, 'xigua', 'wjhpDs', 'ROWS', i + 1, i + 1)
                     Common.logger(log_type).info('视频已下载,删除成功\n')
                     return
+                elif str(download_video_id) in [x for y in Feishu.get_values_batch(log_type, 'xigua', '3Ul6wZ') for x in
+                                                y]:
+                    Feishu.dimension_range(log_type, 'xigua', 'wjhpDs', 'ROWS', i + 1, i + 1)
+                    Common.logger(log_type).info('视频已下载,删除成功\n')
+                    return
                 else:
                     # 下载封面
                     Common.download_method(log_type=log_type, text='cover', d_name=download_video_title,

Some files were not shown because too many files changed in this diff