mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-15 14:22:13 +00:00
Final test
This commit is contained in:
@@ -168,8 +168,7 @@ music_file_list = []
|
|||||||
try:
|
try:
|
||||||
logger.info("Attempt to connect to file service")
|
logger.info("Attempt to connect to file service")
|
||||||
response = requests.get(f'{FILE_SERVICE_ADDRESS}{GET_MP3}',timeout=360)
|
response = requests.get(f'{FILE_SERVICE_ADDRESS}{GET_MP3}',timeout=360)
|
||||||
music_file_list = response.json()
|
music_file_list = response.json()["music_file_list"]
|
||||||
logger.info(music_file_list)
|
|
||||||
except:
|
except:
|
||||||
for mp3_item in Path.glob(Path(MUSIC_FOLDER), "**/*.mp3"):
|
for mp3_item in Path.glob(Path(MUSIC_FOLDER), "**/*.mp3"):
|
||||||
temp_music_file = mp3_item.as_posix()
|
temp_music_file = mp3_item.as_posix()
|
||||||
@@ -177,10 +176,6 @@ except:
|
|||||||
temp_music_file = temp_music_file.replace("/", "\\")
|
temp_music_file = temp_music_file.replace("/", "\\")
|
||||||
music_file_list.append(temp_music_file)
|
music_file_list.append(temp_music_file)
|
||||||
logger.error("Service Unavailable")
|
logger.error("Service Unavailable")
|
||||||
finally:
|
|
||||||
sys.exit()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
with open(SYSTEM_GPT_SETTINGS, "r+", encoding=ENCODING) as temp_settings_file:
|
with open(SYSTEM_GPT_SETTINGS, "r+", encoding=ENCODING) as temp_settings_file:
|
||||||
# First we load existing data into a dict.
|
# First we load existing data into a dict.
|
||||||
|
|||||||
Reference in New Issue
Block a user