Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions TikTokTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,12 @@
choices=[str(i) for i in range(1, len(clis) + 1)],
)

# Check if post mode is active and if interval is specified
if ("--mode" in sys.argv and sys.argv[sys.argv.index("--mode") + 1] == "post") or \
("-M" in sys.argv and sys.argv[sys.argv.index("-M") + 1] == "post"):
if not ("--interval" in sys.argv or "-i" in sys.argv):
print("[INFO] No interval specified for post mode. Defaulting to --interval all to download all posts.")
sys.argv.extend(['--interval', 'all'])

# 调用相应的 CLI 函数
clis[int(selected) - 1]()