zhangyong 5 months ago
parent
commit
391dd3ea9c
2 changed files with 2 additions and 1 deletions
  1. 1 0
      carry_video/carry_video.py
  2. 1 1
      common/redis.py

+ 1 - 0
carry_video/carry_video.py

@@ -98,6 +98,7 @@ class CarryViode:
                     original_title = data["title"]
                     if ".mp4" in video_url:
                         return video_url, original_title
+                    time.sleep(5)
             if video_url:
                 return video_url, original_title
             else:

+ 1 - 1
common/redis.py

@@ -47,7 +47,7 @@ def get_carry_data(REDIS_NAME):
     """获取一条需要打标签的视频"""
     helper = SyncRedisHelper()
     client = helper.get_client()
-    ret = client.rpop(REDIS_NAME)
+    ret = client.lpop(REDIS_NAME)
     return ret
 
 def in_carry_video_data(REDIS_NAME, ret):