Add description of the new -f option in README.md; Fix minor issues

This commit is contained in:
Linus
2017-07-11 18:48:02 +02:00
parent e1ef35b6b9
commit 75be7285c0
3 changed files with 9 additions and 2 deletions

View File

@@ -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=<playlist_name>.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`

View File

@@ -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

View File

@@ -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')