Added default "All Songs" male voice if voiceover is disabled

This commit is contained in:
NicoHood 2016-01-17 14:04:46 +01:00
parent e143eb53e6
commit ed7af6a221

View file

@ -378,9 +378,12 @@ class Playlist(Record):
])
def set_master(self, tracks):
# 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["listtype"] = 1
self.text_to_speech("All songs", self["dbid"], True)
self["listtype"] = 1
self.listtracks = tracks
def populate_m3u(self, data):