mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 16:03:59 +01:00
Fixed an issue with headphones not starting when upgrading the encoderfolder to encoder_path
This commit is contained in:
@@ -500,12 +500,7 @@ def initialize():
|
|||||||
|
|
||||||
# Update the config to use direct path to the encoder rather than the encoder folder
|
# Update the config to use direct path to the encoder rather than the encoder folder
|
||||||
if ENCODERFOLDER:
|
if ENCODERFOLDER:
|
||||||
if ENCODER == "xld":
|
ENCODER_PATH = os.path.join(ENCODERFOLDER, ENCODER)
|
||||||
ENCODER_PATH = os.path.join(headphones.ENCODERFOLDER.encode(headphones.SYS_ENCODING), 'xld')
|
|
||||||
elif ENCODER == "ffmpeg":
|
|
||||||
ENCODER_PATH = os.path.join(headphones.ENCODERFOLDER.encode(headphones.SYS_ENCODING), 'ffmpeg')
|
|
||||||
elif ENCODER == "lame":
|
|
||||||
ENCODER_PATH = os.path.join(headphones.ENCODERFOLDER.encode(headphones.SYS_ENCODING), 'lame')
|
|
||||||
CONFIG_VERSION = '3'
|
CONFIG_VERSION = '3'
|
||||||
|
|
||||||
if not LOG_DIR:
|
if not LOG_DIR:
|
||||||
|
|||||||
Reference in New Issue
Block a user