Skip to content

Commit

Permalink
Clean up remaining batch mode flags
Browse files Browse the repository at this point in the history
  • Loading branch information
arkrow authored May 22, 2020
1 parent 6e85514 commit b6ee700
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pymusiclooper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ def loop_track(filename, min_duration_multiplier):

default_out = os.path.join(os.path.dirname(args.path), "looper_output")
output_dir = args.output_dir if args.output_dir != "" else default_out

if args.batch and not args.verbose:
warnings.filterwarnings("ignore")
logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.ERROR)
elif args.verbose:

if args.verbose:
logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.INFO)
else:
warnings.filterwarnings("ignore")
Expand Down Expand Up @@ -189,5 +186,5 @@ def batch_handler(dir_path):
else:
batch_handler(args.path)

if args.play and not (args.export or args.json or args.batch):
loop_track(args.path, args.min_duration_multiplier)
if args.play and not (args.export or args.json):
loop_track(args.path, args.min_duration_multiplier)

0 comments on commit b6ee700

Please sign in to comment.