Skip to content

Commit

Permalink
more explicit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Robert Stöter committed Dec 20, 2017
1 parent a413166 commit a230019
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions stempeg/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ def write_stems(
"""
if codec is None:
avail = check_available_aac_encoders()
if 'libfdk_aac' in avail:
codec = 'libfdk_aac'

if avail is not None:
if 'libfdk_aac' in avail:
codec = 'libfdk_aac'
else:
codec = 'aac'
warnings.warn("For better quality, please install libfdc_aac")
else:
codec = 'aac'
warnings.warn("For better quality, please install libfdc_aac")
Expand Down

0 comments on commit a230019

Please sign in to comment.