From ba232605db7b765731102c529dce43b17b4b3dca Mon Sep 17 00:00:00 2001 From: Elijah Lopez Date: Fri, 14 Aug 2020 14:48:49 -0400 Subject: [PATCH] fix bugs --- .travis.yml | 2 +- README.md | 16 ++++------------ wavinfo/wave_reader.py | 2 +- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 33f77d2..fd3334a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ dist: xenial language: python python: # - "2.7" - - "3.6" - "3.5" + - "3.6" - "3.7" - "3.8" script: diff --git a/README.md b/README.md index 8a47c69..03e88a3 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,16 @@ # wavinfo - -The `wavinfo` package allows you to probe WAVE and [RF64/WAVE files][eburf64] and extract extended metadata, with an emphasis on film, video and professional music production metadata. +The `wavinfo` package allows you to probe WAVE and [RF64/WAVE files][eburf64] and extract extended metadata, with an emphasis on film, video and professional music production metadata. `wavinfo` reads: -* __Broadcast-WAVE__ metadata[1][ebu], including embedded program +* __Broadcast-WAVE__ metadata[1][ebu], including embedded program loudness and coding history, if extant. This also includes the SMPTE UMID[2][smpte_330m2011]. -* __iXML__ production recorder metadata[3][ixml], including project, scene, and take tags, recorder notes +* __iXML__ production recorder metadata[3][ixml], including project, scene, and take tags, recorder notes and file family information. * Most of the common __RIFF INFO__[4][info-tags] metadata fields. -* The __wav format__ is also parsed, so you can access the basic sample rate and channel count +* The __wav format__ is also parsed, so you can access the basic sample rate and channel count information. In progress: @@ -32,8 +31,6 @@ In progress: [eburf64]:https://tech.ebu.ch/docs/tech/tech3306v1_1.pdf [info-tags]:https://exiftool.org/TagNames/RIFF.html#Info - - ## Demonstration The entry point for wavinfo is the WavInfoReader class. @@ -67,11 +64,6 @@ The length of the file in frames (interleaved samples) and bytes is available, a Python 3.5 support is deprecated. - ## Other Resources * For other file formats and ID3 decoding, look at [audio-metadata](https://github.com/thebigmunch/audio-metadata). - - - - diff --git a/wavinfo/wave_reader.py b/wavinfo/wave_reader.py index 16cc407..d2b12a7 100644 --- a/wavinfo/wave_reader.py +++ b/wavinfo/wave_reader.py @@ -132,7 +132,7 @@ class WavInfoReader: scopes = ('fmt', 'data') # 'bext', 'ixml', 'info') for scope in scopes: - attr: WavAudioFormat = self.__getattribute__(scope) + attr = self.__getattribute__(scope) for field in attr._fields: yield scope, field, attr.__getattribute__(field)