mirror of
https://github.com/chev2/shitpost-video-generator.git
synced 2026-04-24 11:42:52 +00:00
Linting
This commit is contained in:
parent
002e8104ec
commit
686df6cd7c
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
|
@ -53,7 +53,7 @@ random_speed_amount = (0.7, 3)
|
|||
contrast_amount = (0.3, 2)
|
||||
|
||||
chosenSeed = input("Video seed (or 'any' to pick one automatically): ")
|
||||
while not chosenSeed.isdecimal() and not chosenSeed in ["any", "skip", "default", "time"]:
|
||||
while not chosenSeed.isdecimal() and chosenSeed not in ("any", "skip", "default", "time"):
|
||||
chosenSeed = input("Video seed (or 'any' to pick one automatically): ")
|
||||
|
||||
seed = int(chosenSeed) if chosenSeed.isdecimal() else random.randrange(maxsize) #get a chosen or random seed to use and reference later
|
||||
|
|
@ -191,10 +191,10 @@ while not videoAmount.isdecimal():
|
|||
videoAmount = int(videoAmount)
|
||||
|
||||
shouldUseEffects = input("Apply video effects? (y/n): ")
|
||||
while not shouldUseEffects.lower() in ["y", "yes", "true", "n", "no", "false"]:
|
||||
while shouldUseEffects.lower() not in ("y", "yes", "true", "n", "no", "false"):
|
||||
shouldUseEffects = input("Apply video effects? (y/n): ")
|
||||
|
||||
shouldUseEffects = True if shouldUseEffects.lower() in ["y", "yes", "true"] else False
|
||||
shouldUseEffects = True if shouldUseEffects.lower() in ("y", "yes", "true") else False
|
||||
|
||||
randomVideos = rng.sample(videoFiles, min(videoAmount, len(videoFiles)))
|
||||
#randomVideos = rng.choices(videoFiles, k=min(videoAmount, len(videoFiles)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue