mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 07:58:01 +09:00
removed pylint comments
This commit is contained in:
parent
c22837ba40
commit
8bfea0be3f
1 changed files with 5 additions and 5 deletions
|
|
@ -397,7 +397,7 @@ class Track(Record):
|
||||||
# Handle the VoiceOverData
|
# Handle the VoiceOverData
|
||||||
if isinstance(text, str):
|
if isinstance(text, str):
|
||||||
text = text.encode('utf-8', 'ignore')
|
text = text.encode('utf-8', 'ignore')
|
||||||
self["dbid"] = hashlib.md5(text).digest()[:8] #pylint: disable-msg=E1101
|
self["dbid"] = hashlib.md5(text).digest()[:8]
|
||||||
self.text_to_speech(text, self["dbid"])
|
self.text_to_speech(text, self["dbid"])
|
||||||
|
|
||||||
class PlaylistHeader(Record):
|
class PlaylistHeader(Record):
|
||||||
|
|
@ -414,7 +414,7 @@ class PlaylistHeader(Record):
|
||||||
("unknown2", ("2s", b"\x00" * 2)),
|
("unknown2", ("2s", b"\x00" * 2)),
|
||||||
])
|
])
|
||||||
|
|
||||||
def construct(self, tracks): #pylint: disable-msg=W0221
|
def construct(self, tracks):
|
||||||
# Build the master list
|
# Build the master list
|
||||||
masterlist = Playlist(self)
|
masterlist = Playlist(self)
|
||||||
verboseprint("[+] Adding master playlist")
|
verboseprint("[+] Adding master playlist")
|
||||||
|
|
@ -465,7 +465,7 @@ class Playlist(Record):
|
||||||
# By default use "All Songs" builtin voiceover (dbid all zero)
|
# By default use "All Songs" builtin voiceover (dbid all zero)
|
||||||
# Else generate alternative "All Songs" to fit the speaker voice of other playlists
|
# Else generate alternative "All Songs" to fit the speaker voice of other playlists
|
||||||
if self.playlist_voiceover and (Text2Speech.valid_tts['pico2wave'] or Text2Speech.valid_tts['espeak']):
|
if self.playlist_voiceover and (Text2Speech.valid_tts['pico2wave'] or Text2Speech.valid_tts['espeak']):
|
||||||
self["dbid"] = hashlib.md5(b"masterlist").digest()[:8] #pylint: disable-msg=E1101
|
self["dbid"] = hashlib.md5(b"masterlist").digest()[:8]
|
||||||
self.text_to_speech("All songs", self["dbid"], True)
|
self.text_to_speech("All songs", self["dbid"], True)
|
||||||
self["listtype"] = 1
|
self["listtype"] = 1
|
||||||
self.listtracks = tracks
|
self.listtracks = tracks
|
||||||
|
|
@ -551,10 +551,10 @@ class Playlist(Record):
|
||||||
text = os.path.splitext(os.path.basename(filename))[0]
|
text = os.path.splitext(os.path.basename(filename))[0]
|
||||||
|
|
||||||
# Handle the VoiceOverData
|
# Handle the VoiceOverData
|
||||||
self["dbid"] = hashlib.md5(text.encode('utf-8')).digest()[:8] #pylint: disable-msg=E1101
|
self["dbid"] = hashlib.md5(text.encode('utf-8')).digest()[:8]
|
||||||
self.text_to_speech(text, self["dbid"], True)
|
self.text_to_speech(text, self["dbid"], True)
|
||||||
|
|
||||||
def construct(self, tracks): #pylint: disable-msg=W0221
|
def construct(self, tracks):
|
||||||
self["total_length"] = 44 + (4 * len(self.listtracks))
|
self["total_length"] = 44 + (4 * len(self.listtracks))
|
||||||
self["number_of_songs"] = 0
|
self["number_of_songs"] = 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue