mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2026-01-02 01:40:42 +00:00
Changed name of cue class methoChanged name of cue class method
This commit is contained in:
@@ -169,7 +169,7 @@ class WavCuesReader:
|
|||||||
notes: List[NoteEntry]
|
notes: List[NoteEntry]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def merge(cls, f,
|
def read_all(cls, f,
|
||||||
cues: Optional[ChunkDescriptor],
|
cues: Optional[ChunkDescriptor],
|
||||||
labls: List[ChunkDescriptor],
|
labls: List[ChunkDescriptor],
|
||||||
ltxts: List[ChunkDescriptor],
|
ltxts: List[ChunkDescriptor],
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ class WavInfoReader:
|
|||||||
ltxts = [c for c in adtl.children if c.ident == b'ltxt']
|
ltxts = [c for c in adtl.children if c.ident == b'ltxt']
|
||||||
notes = [c for c in adtl.children if c.ident == b'note']
|
notes = [c for c in adtl.children if c.ident == b'note']
|
||||||
|
|
||||||
return WavCuesReader.merge(f, cue, labls, ltxts, notes,
|
return WavCuesReader.read_all(f, cue, labls, ltxts, notes,
|
||||||
fallback_encoding=self.info_encoding)
|
fallback_encoding=self.info_encoding)
|
||||||
|
|
||||||
def walk(self) -> Generator[str,str,Any]: #FIXME: this should probably be named "iter()"
|
def walk(self) -> Generator[str,str,Any]: #FIXME: this should probably be named "iter()"
|
||||||
@@ -216,7 +216,8 @@ class WavInfoReader:
|
|||||||
"fmt", "data", "ixml", "bext", "info", "dolby", "cues" or "adm".
|
"fmt", "data", "ixml", "bext", "info", "dolby", "cues" or "adm".
|
||||||
"""
|
"""
|
||||||
|
|
||||||
scopes = ('fmt', 'data', 'ixml', 'bext', 'info', 'adm', 'cues', 'dolby')
|
scopes = ('fmt', 'data', 'ixml', 'bext', 'info', 'adm', 'cues',
|
||||||
|
'dolby')
|
||||||
|
|
||||||
for scope in scopes:
|
for scope in scopes:
|
||||||
if scope in ['fmt', 'data']:
|
if scope in ['fmt', 'data']:
|
||||||
|
|||||||
Reference in New Issue
Block a user