mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-19 23:44:01 +01:00
Fix new variables
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user