Small collection of random styling tweaks, fixes and Pythonism (#35390)

This commit is contained in:
Franck Nijhof 2020-05-09 00:10:17 +02:00 committed by GitHub
parent 3feb55a8e4
commit 4cf186a47e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 28 additions and 57 deletions

View file

@ -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)