mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-08 00:18:01 +09:00
Added default "All Songs" male voice if voiceover is disabled
This commit is contained in:
parent
e143eb53e6
commit
ed7af6a221
1 changed files with 5 additions and 2 deletions
|
|
@ -378,9 +378,12 @@ class Playlist(Record):
|
||||||
])
|
])
|
||||||
|
|
||||||
def set_master(self, tracks):
|
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["listtype"] = 1
|
||||||
self.text_to_speech("All songs", self["dbid"], True)
|
|
||||||
self.listtracks = tracks
|
self.listtracks = tracks
|
||||||
|
|
||||||
def populate_m3u(self, data):
|
def populate_m3u(self, data):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue