mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
Added default "All Songs" male voice if voiceover is disabled
This commit is contained in:
parent
594ca8f964
commit
255bd8931b
1 changed files with 5 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue