From ed7af6a2216e2d190f2dedc7a8a23d1f53e13e7b Mon Sep 17 00:00:00 2001 From: NicoHood Date: Sun, 17 Jan 2016 14:04:46 +0100 Subject: [PATCH] Added default "All Songs" male voice if voiceover is disabled --- shuffle.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shuffle.py b/shuffle.py index 8193cbe..7480934 100755 --- a/shuffle.py +++ b/shuffle.py @@ -378,9 +378,12 @@ class Playlist(Record): ]) def set_master(self, tracks): - self["dbid"] = hashlib.md5("masterlist").digest()[:8] #pylint: disable-msg=E1101 + # By default use "All Songs" builtin voiceover (dbid all zero) + # Else generate alternative "All Songs" to fit the speaker voice of other playlists + if self.voiceover: + self["dbid"] = hashlib.md5("masterlist").digest()[:8] #pylint: disable-msg=E1101 + self.text_to_speech("All songs", self["dbid"], True) self["listtype"] = 1 - self.text_to_speech("All songs", self["dbid"], True) self.listtracks = tracks def populate_m3u(self, data):