mirror of https://gitlab.com/bashrc2/epicyon
Type check
parent
5c18b3b50f
commit
1a66c39656
|
@ -147,10 +147,12 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
title = speakerJson['notify']['title']
|
title = speakerJson['notify']['title']
|
||||||
soundsDir = 'theme/default/sounds'
|
soundsDir = 'theme/default/sounds'
|
||||||
if speakerJson['notify'].get('theme'):
|
if speakerJson['notify'].get('theme'):
|
||||||
soundsDir = \
|
if isinstance(speakerJson['notify']['theme'], str):
|
||||||
'theme/' + speakerJson['notify']['theme'] + '/sounds'
|
soundsDir = \
|
||||||
if not os.path.isdir(soundsDir):
|
'theme/' + \
|
||||||
soundsDir = 'theme/default/sounds'
|
speakerJson['notify']['theme'] + '/sounds'
|
||||||
|
if not os.path.isdir(soundsDir):
|
||||||
|
soundsDir = 'theme/default/sounds'
|
||||||
if speakerJson['notify']['dm'] != prevDM:
|
if speakerJson['notify']['dm'] != prevDM:
|
||||||
if speakerJson['notify']['dm'] is True:
|
if speakerJson['notify']['dm'] is True:
|
||||||
_playNotificationSound(soundsDir + '/' +
|
_playNotificationSound(soundsDir + '/' +
|
||||||
|
|
Loading…
Reference in New Issue