mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Add information about environment variables in Windows (#69)
This commit is contained in:
26
spotdl.py
26
spotdl.py
@@ -168,23 +168,17 @@ def downloadSong(content):
|
||||
|
||||
def convertWithAvconv(music_file):
|
||||
if os.name == 'nt':
|
||||
os.system(
|
||||
'Scripts\\avconv.exe -loglevel 0 -i "' +
|
||||
'Music/' +
|
||||
music_file +
|
||||
'.m4a" -ab 192k "' +
|
||||
'Music/' +
|
||||
music_file +
|
||||
'.mp3"')
|
||||
avconv_path = 'Scripts\\avconv.exe'
|
||||
else:
|
||||
os.system(
|
||||
'avconv -loglevel 0 -i "' +
|
||||
'Music/' +
|
||||
music_file +
|
||||
'.m4a" -ab 192k "' +
|
||||
'Music/' +
|
||||
music_file +
|
||||
'.mp3"')
|
||||
avconv_path = 'avconv'
|
||||
os.system(
|
||||
avconv_path + ' -loglevel 0 -i "' +
|
||||
'Music/' +
|
||||
music_file +
|
||||
'.m4a" -ab 192k "' +
|
||||
'Music/' +
|
||||
music_file +
|
||||
'.mp3"')
|
||||
os.remove('Music/' + music_file + '.m4a')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user