Support for a closingsong by config

master
Sebastian Lohff 10 роки тому
джерело 97c2440635
коміт a30906e887

@ -26,7 +26,7 @@ def _check_missing_keys(conf, sec, mandatory, users_choice=[]):
def check_config(conf):
main_keys = ["music", "savedir", "playerInput"]
music_keys = ["startSong", "questionSong"]
music_keys = ["startSong", "questionSong", "closingSong"]
_check_missing_keys(conf, "main", main_keys)
_check_missing_keys(conf["music"], "music", music_keys)

@ -16,6 +16,7 @@
music:
startSong: path/to/theme_song.mp3
questionSong: path/to/question_song.mp3
closingSong: null
# change to path, default is /tmp/seopardy/
savedir: /tmp/seopardy/

Завантаження…
Відмінити
Зберегти