mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Change defaults to FFmpeg
This commit is contained in:
@@ -46,8 +46,8 @@ def get_arguments():
|
||||
help='choose the song to download manually', action='store_true')
|
||||
parser.add_argument('-nm', '--no-metadata', default=False,
|
||||
help='do not embed metadata in songs', action='store_true')
|
||||
parser.add_argument('-f', '--ffmpeg', default=False,
|
||||
help='Use ffmpeg for conversion otherwise set defaults to libav',
|
||||
parser.add_argument('-f', '--avconv', default=False,
|
||||
help='Use avconv for conversion otherwise set defaults to ffmpeg',
|
||||
action='store_true')
|
||||
parser.add_argument('-v', '--verbose', default=False,
|
||||
help='show debug output', action='store_true')
|
||||
|
||||
@@ -153,10 +153,10 @@ def convert_song(music_file):
|
||||
# skip conversion if input_ext == output_ext
|
||||
if not args.input_ext == args.output_ext:
|
||||
print('Converting ' + music_file + args.input_ext + ' to ' + args.output_ext[1:])
|
||||
if args.ffmpeg:
|
||||
convert_with_FFmpeg(music_file)
|
||||
if args.avconv:
|
||||
convert_with_avconv(music_file)
|
||||
else:
|
||||
convert_with_libav(music_file)
|
||||
convert_with_FFmpeg(music_file)
|
||||
os.remove('Music/' + music_file + args.input_ext)
|
||||
|
||||
def convert_with_libav(music_file):
|
||||
|
||||
Reference in New Issue
Block a user