Comments (1)
So, I think the best thing to do to start is to strip everything down to a small number of generic exceptions:
AudioMetadataException
- The base exception for all exceptions deriving fromaudio-metadata
.UnsupportedFormat
- The exception raised when encountering a file format not supported byaudio-metadata
. This includes formats that are generally supported, but a specific version or profile of that format is not supported.FormatError
- The exception raised when the binary format of the file is invalid in some way. This would encompass the previous exceptions:InvalidBlock
InvalidChunk
InvalidFormat
InvalidFrame
in the context of MPEG frames, and invalid binary format of ID3v2 frames.InvalidHeader
TagError
- The exception raised when there is an issue with a tag not related to the binary format. For example. an ID3v2TYER
frame containg an ISO-8601 datetime instead of just a year. This might be changed to a warning in #18.
Adding any more exceptions or adding arguments to these exceptions can be discussed as potential needs arise.
from audio-metadata.
Related Issues (20)
- Add Ogg Vorbis load(s) support
- Achieve 100% test coverage
- Better support Ogg files with multiple streams
- Add support for common non-standard ID3v2 frames HOT 2
- Class loading/dumping method naming
- Docs, docs, and more docs HOT 1
- Handle frame flags and unsynchronization in ID3v2
- Add ability to modify/save FLAC
- Add ability to modify/save MP3
- Add ability to modify/save WAV
- Add ability to modify/save Ogg Opus
- Add ability to modify/save Ogg Vorbis
- Add ability to modify/save MP4
- Invalid duration for wav files HOT 1
- frame_data.split(b'\x00') may return more than two values HOT 1
- Add __*attr__ methods to Tags class
- Handle ValueError: year 0 is out of range HOT 1
- Docs: Why? HOT 1
- audio_Metadata.load() hangs forever with some MP3 files.
- Block Size 0 doesn't always mean an invalid flac file, so ignore rather than fail.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio-metadata.