Playlists menu

This commit is contained in:
localhost_frssoft 2022-11-10 18:55:36 +03:00
parent a92706d24c
commit 5f08977faa
4 changed files with 91 additions and 0 deletions

View file

@ -1,6 +1,9 @@
import json, requests, time
from os.path import exists
from loguru import logger
from pyfzf.pyfzf import FzfPrompt
fzf = FzfPrompt()
conf_file = 'config.json'
@ -62,6 +65,7 @@ def check_config():
correct_conf[k] = v
logger.warning(f'{k} added in config. Value: {v}')
set_defaults(correct_conf)
return correct_conf
if not exists(conf_file):