X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flaunch.py;h=179f1c40be5d62a7b7875f310f53a4bbcb7b8825;hb=HEAD;hp=9c31397301316ca57dae50a29f4ab42d18c8bb17;hpb=3b4178f64c0785435930537c1e14edb7ad458008;p=mpd-sima.git diff --git a/sima/launch.py b/sima/launch.py index 9c31397..179f1c4 100644 --- a/sima/launch.py +++ b/sima/launch.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2013, 2014, 2015, 2020, 2021 kaliko +# Copyright (c) 2013, 2014, 2015, 2020-2022 kaliko # # This file is part of sima # @@ -136,6 +136,10 @@ def start(sopt, restart=False): sys.exit(1) SimaDB(db_path=db_file).purge_history(duration=0) sys.exit(0) + if cmd == 'random': + config['sima']['internal'] = 'Crop, Random' + if sopt.options.get('nbtracks'): + config['random']['track_to_add'] = str(sopt.options.get('nbtracks')) logger.info('Starting (%s)...', info.__version__) sima = core.Sima(config)