From 260ce979c775a1e3ee09f522469e5d34ffc202b6 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sun, 21 Oct 2018 16:10:42 -0700 Subject: [PATCH] Updated documentation and changed array joining method --- dlaudio.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dlaudio.py b/dlaudio.py index f91166a..a11ffbc 100755 --- a/dlaudio.py +++ b/dlaudio.py @@ -1,10 +1,10 @@ #!/usr/bin/env python -""" -Download audio using youtube-dl, passing -a specific set of options specified by the user -Imports: - argparse: for parsing command line arguments - subprocess: for running youtube-dl +"""Download audio using youtube-dl, passing + a specific set of options specified by the user. +===== +Usage +===== +>>> dlaudio -f flac -n something "www.youtube.com" """ import argparse @@ -19,7 +19,7 @@ parser.add_argument('-b', '--batch-dl', parser.add_argument('-f', '--format', type=str, default='ogg', - help='the format to use (default:flac)') + help='the format to use (default:ogg)') parser.add_argument('-n', '--filename', type=str, help='the name of the downloaded file (without extension)') @@ -57,4 +57,4 @@ elif len(args.urls) == 0: else: dl_opts += args.urls -dl = subprocess.run(['youtube-dl'] + dl_opts) +dl = subprocess.run(['youtube-dl'].extend(dl_opts))