Change defaults to FFmpeg

This commit is contained in:
Ritiek
2017-06-20 20:25:47 +05:30
parent ccf2c818a0
commit 20d4d7c2d5
2 changed files with 5 additions and 5 deletions

View File

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

View File

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