Fix new variables

This commit is contained in:
Jesse Mullan
2014-10-26 08:49:09 -07:00
parent 48ef8a93a9
commit 2af45fd3fe
+4 -4
View File
@@ -572,14 +572,14 @@ def split(albumpath):
xldprofile = None xldprofile = None
# use xld profile to split cue # use xld profile to split cue
if headphones.ENCODER == 'xld' and headphones.MUSIC_ENCODER and headphones.XLDPROFILE: if headphones.CONFIG.ENCODER == 'xld' and headphones.CONFIG.MUSIC_ENCODER and headphones.CONFIG.XLDPROFILE:
import getXldProfile import getXldProfile
xldprofile, xldformat, _ = getXldProfile.getXldProfile(headphones.XLDPROFILE) xldprofile, xldformat, _ = getXldProfile.getXldProfile(headphones.CONFIG.XLDPROFILE)
if not xldformat: if not xldformat:
raise ValueError('Details for xld profile "%s" not found, cannot split cue' % (xldprofile)) raise ValueError('Details for xld profile "%s" not found, cannot split cue' % (xldprofile))
else: else:
if headphones.ENCODERFOLDER: if headphones.CONFIG.ENCODERFOLDER:
splitter = os.path.join(headphones.ENCODERFOLDER, 'xld') splitter = os.path.join(headphones.CONFIG.ENCODERFOLDER, 'xld')
else: else:
splitter = 'xld' splitter = 'xld'
# use standard xld command to split cue # use standard xld command to split cue