Add information about environment variables in Windows (#69)

This commit is contained in:
Peter M
2017-06-12 16:28:52 +02:00
committed by Ritiek Malhotra
parent 3495af44df
commit f14633f3c4
2 changed files with 14 additions and 16 deletions

View File

@@ -64,6 +64,10 @@ Shift+right-click on empty area and open cmd and type:
`"Scripts/pip.exe" install -U -r requirements.txt` `"Scripts/pip.exe" install -U -r requirements.txt`
- If you do not want to naviagte to your python folder from the command-line everytime you want to run the script, you can have your python 'PATH' environment variables set and then you can run the script from any directory.
- python install folder: like (C:\Program Files\Python36)
- python scripts folder: like (C:\Program Files\Python36\Scripts)
## Instructions for Downloading Songs ## Instructions for Downloading Songs
- For all available options, run `python spotdl.py --help` (or for windows run `python.exe spotdl.py --help`). - For all available options, run `python spotdl.py --help` (or for windows run `python.exe spotdl.py --help`).

View File

@@ -168,17 +168,11 @@ def downloadSong(content):
def convertWithAvconv(music_file): def convertWithAvconv(music_file):
if os.name == 'nt': if os.name == 'nt':
os.system( avconv_path = 'Scripts\\avconv.exe'
'Scripts\\avconv.exe -loglevel 0 -i "' +
'Music/' +
music_file +
'.m4a" -ab 192k "' +
'Music/' +
music_file +
'.mp3"')
else: else:
avconv_path = 'avconv'
os.system( os.system(
'avconv -loglevel 0 -i "' + avconv_path + ' -loglevel 0 -i "' +
'Music/' + 'Music/' +
music_file + music_file +
'.m4a" -ab 192k "' + '.m4a" -ab 192k "' +