mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2026-01-02 09:50:41 +00:00
Update wave_reader.py
Working on a walk() method, not done yet
This commit is contained in:
@@ -125,7 +125,17 @@ class WavInfoReader():
|
|||||||
ixml_string = ixml_data
|
ixml_string = ixml_data
|
||||||
return WavIXMLFormat(ixml_string)
|
return WavIXMLFormat(ixml_string)
|
||||||
|
|
||||||
|
def walk(self):
|
||||||
|
"""
|
||||||
|
Walk all of the available metadata fields.
|
||||||
|
|
||||||
|
:yields: a string, the :scope: of the metadatum, the string :name: of the
|
||||||
|
metadata field, and the value
|
||||||
|
"""
|
||||||
|
|
||||||
|
scopes = ('fmt','data')#,'bext','ixml','info')
|
||||||
|
|
||||||
|
for scope in scopes:
|
||||||
|
attr = self.__getattribute__(scope)
|
||||||
|
for field in attr._fields:
|
||||||
|
yield scope, field, attr.__getattribute__(field)
|
||||||
|
|||||||
Reference in New Issue
Block a user