Small collection of random styling tweaks, fixes and Pythonism (#35390)
This commit is contained in:
parent
3feb55a8e4
commit
4cf186a47e
14 changed files with 28 additions and 57 deletions
|
@ -438,9 +438,8 @@ class SpeechManager:
|
|||
album = provider.name
|
||||
artist = language
|
||||
|
||||
if options is not None:
|
||||
if options.get("voice") is not None:
|
||||
artist = options.get("voice")
|
||||
if options is not None and options.get("voice") is not None:
|
||||
artist = options.get("voice")
|
||||
|
||||
try:
|
||||
tts_file = mutagen.File(data_bytes, easy=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue