mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +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')
|
help='choose the song to download manually', action='store_true')
|
||||||
parser.add_argument('-nm', '--no-metadata', default=False,
|
parser.add_argument('-nm', '--no-metadata', default=False,
|
||||||
help='do not embed metadata in songs', action='store_true')
|
help='do not embed metadata in songs', action='store_true')
|
||||||
parser.add_argument('-f', '--ffmpeg', default=False,
|
parser.add_argument('-f', '--avconv', default=False,
|
||||||
help='Use ffmpeg for conversion otherwise set defaults to libav',
|
help='Use avconv for conversion otherwise set defaults to ffmpeg',
|
||||||
action='store_true')
|
action='store_true')
|
||||||
parser.add_argument('-v', '--verbose', default=False,
|
parser.add_argument('-v', '--verbose', default=False,
|
||||||
help='show debug output', action='store_true')
|
help='show debug output', action='store_true')
|
||||||
|
|||||||
@@ -153,10 +153,10 @@ def convert_song(music_file):
|
|||||||
# skip conversion if input_ext == output_ext
|
# skip conversion if input_ext == output_ext
|
||||||
if not args.input_ext == args.output_ext:
|
if not args.input_ext == args.output_ext:
|
||||||
print('Converting ' + music_file + args.input_ext + ' to ' + args.output_ext[1:])
|
print('Converting ' + music_file + args.input_ext + ' to ' + args.output_ext[1:])
|
||||||
if args.ffmpeg:
|
if args.avconv:
|
||||||
convert_with_FFmpeg(music_file)
|
convert_with_avconv(music_file)
|
||||||
else:
|
else:
|
||||||
convert_with_libav(music_file)
|
convert_with_FFmpeg(music_file)
|
||||||
os.remove('Music/' + music_file + args.input_ext)
|
os.remove('Music/' + music_file + args.input_ext)
|
||||||
|
|
||||||
def convert_with_libav(music_file):
|
def convert_with_libav(music_file):
|
||||||
|
|||||||
Reference in New Issue
Block a user