|
@@ -236,6 +236,10 @@ class GZH:
|
|
|
# 判断无效文章
|
|
|
if gzh_url == 0:
|
|
|
Common.logger(log_type).info("无效文章\n")
|
|
|
+ elif int(time.time()) - int(create_time) > 3600*24*10:
|
|
|
+ Common.logger(log_type).info(
|
|
|
+ "发布时间{}超过 10 天\n", time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(create_time)))
|
|
|
+ return
|
|
|
# 时长判断
|
|
|
elif int(duration) < 60:
|
|
|
Common.logger(log_type).info("时长:{}<60秒\n", duration)
|
|
@@ -276,7 +280,7 @@ class GZH:
|
|
|
cls.gzh_count = []
|
|
|
return
|
|
|
|
|
|
- time.sleep(60*3)
|
|
|
+ time.sleep(10)
|
|
|
except Exception as e:
|
|
|
Common.logger(log_type).error("get_gzh_url异常:{}\n", e)
|
|
|
|
|
@@ -294,7 +298,7 @@ class GZH:
|
|
|
Common.logger(log_type).info("下载/上传 {} 公众号视频\n", username)
|
|
|
cls.run_download_publish(log_type, env)
|
|
|
Common.logger(log_type).info("休眠 3 - 30 分钟")
|
|
|
- time.sleep(random.randint(60*3, 60*30))
|
|
|
+ time.sleep(random.randint(60*3, 60*15))
|
|
|
except Exception as e:
|
|
|
Common.logger(log_type).error("get_all_gzh异常:{}\n", e)
|
|
|
|