This commit is contained in:
Martin Brodbeck 2015-02-18 14:20:25 +01:00
parent 0e643c1f5d
commit 3980c09bf9
1 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ def record(args):
target_dir = os.path.expandvars(settings['GLOBAL']['target_dir'])
stoprec = threading.Event()
recthread = threading.Thread(target = record_worker,
recthread = threading.Thread(target = record_worker,
args = (stoprec, streamurl, target_dir, args))
recthread.setDaemon(True)
recthread.start()
@ -126,9 +126,9 @@ def main():
parser_record = subparsers.add_parser('record', help='Record a station')
parser_record.add_argument('station', type=str, help='Name of the radio station '
'(see `radiorec.py list`)')
parser_record.add_argument('duration', type=check_duration,
parser_record.add_argument('duration', type=check_duration,
help='Recording time in minutes')
parser_record.add_argument('name', nargs='?', type=str,
parser_record.add_argument('name', nargs='?', type=str,
help='A name for the recording')
parser_record.add_argument('-p', '--public', action='store_true', help="Public write permissions (Linux only)")
parser_record.add_argument('-v', '--verbose', action='store_true', help="Verbose output")