Support for a closingsong by config
This commit is contained in:
parent
97c2440635
commit
a30906e887
|
@ -26,7 +26,7 @@ def _check_missing_keys(conf, sec, mandatory, users_choice=[]):
|
||||||
|
|
||||||
def check_config(conf):
|
def check_config(conf):
|
||||||
main_keys = ["music", "savedir", "playerInput"]
|
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, "main", main_keys)
|
||||||
_check_missing_keys(conf["music"], "music", music_keys)
|
_check_missing_keys(conf["music"], "music", music_keys)
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
music:
|
music:
|
||||||
startSong: path/to/theme_song.mp3
|
startSong: path/to/theme_song.mp3
|
||||||
questionSong: path/to/question_song.mp3
|
questionSong: path/to/question_song.mp3
|
||||||
|
closingSong: null
|
||||||
|
|
||||||
# change to path, default is /tmp/seopardy/
|
# change to path, default is /tmp/seopardy/
|
||||||
savedir: /tmp/seopardy/
|
savedir: /tmp/seopardy/
|
||||||
|
|
Loading…
Reference in New Issue