Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
加入运行结束后等待10秒的功能,便于exe文件查看日志,也能在批量运行时增加一个等待。
  • Loading branch information
ZJC-GH authored Feb 22, 2024
1 parent 07a26ff commit c15f5a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import m3u8dl
import sys
import os
import time

headers = {
'Origin': 'https://www.yanhekt.cn',
Expand Down Expand Up @@ -63,3 +64,8 @@
print(f"{fileNameVideo}.mp4 already exists. Skipping download.")

# input("按 Enter 键退出...")
# 输出等待信息
print("此处等待10秒,之后将自动退出或进行批处理文件中的下一命令。")

# 等待10秒,也能避免拥塞
time.sleep(10)

0 comments on commit c15f5a3

Please sign in to comment.