mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Fix error on conversion in python3
This commit is contained in:
@@ -27,7 +27,7 @@ def compare(file, metadata):
|
||||
|
||||
def embed(music_file, meta_tags, output_ext):
|
||||
if sys.version_info < (3, 0):
|
||||
music_file = music_file.encode('utf-8')
|
||||
music_file = misc.fix_encoding(music_file)
|
||||
if meta_tags is None:
|
||||
print('Could not find meta-tags')
|
||||
elif output_ext == '.m4a':
|
||||
|
||||
@@ -161,7 +161,7 @@ def download_song(content):
|
||||
def convert_song(music_file):
|
||||
# skip conversion if input_ext == output_ext
|
||||
if not args.input_ext == args.output_ext:
|
||||
music_file = music_file.encode('utf-8')
|
||||
music_file = misc.fix_encoding(music_file)
|
||||
print('Converting ' + music_file + args.input_ext + ' to ' + args.output_ext[1:])
|
||||
if args.avconv:
|
||||
convert_with_avconv(music_file)
|
||||
|
||||
Reference in New Issue
Block a user