diff --git a/README.md b/README.md index 9984e63..e6daaca 100755 --- a/README.md +++ b/README.md @@ -88,6 +88,9 @@ optional arguments: -m, --manual choose the song to download manually (default: False) -a, --avconv Use avconv for conversion. If not set defaults to FFmpeg (default: False) + -f FOLDER, --folder FOLDER + path to folder where files will be stored in (default: + Music/) -v, --verbose show debug output (default: False) -i INPUT_EXT, --input_ext INPUT_EXT prefered input format .m4a or .webm (Opus) (default: @@ -153,6 +156,10 @@ http://open.spotify.com/track/64yrDBpcdwEdNY9loyEGbX - Then you can simply run `python spotdl.py --list=.txt` to download them all! +#### Specify the target directory + +If you don't want to download all the songs to the `Music/` folder relative to the `spotdl.py` script, you can use the `-f`/`--file` option. E.g. `python spotdl.py -s "adele hello" -f "/home/user/Music/"`. This works with both relative and absolute paths. + ## Running tests `python -m pytest test` diff --git a/core/convert.py b/core/convert.py index 9696535..3ad2c24 100644 --- a/core/convert.py +++ b/core/convert.py @@ -10,7 +10,7 @@ def song(input_song, output_song, folder, avconv=False, verbose=False): if avconv: exit_code = convert_with_avconv(input_song, output_song, folder, verbose) else: - exit_code = convert_with_ffmpeg(input_song, output_song, folder, verbose) + exit_code = convert_with_ffmpeg(input_song, output_song, folder, verbose) return exit_code return 0 diff --git a/core/misc.py b/core/misc.py index ece20de..58f1d48 100755 --- a/core/misc.py +++ b/core/misc.py @@ -54,7 +54,7 @@ def get_arguments(): action='store_true') parser.add_argument( '-f', '--folder', default='Music/', - help='path to folder where files will stored in') + help='path to folder where files will be stored in') parser.add_argument( '-v', '--verbose', default=False, help='show debug output', action='store_true')