Comments (4)
Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):
From [email protected] on January 08, 2010 15:20:33
In fact my idea was so good I implemented it months ago. The current EasyID3 module
raises a subclass of KeyError and ValueError, and mutagen.id3.error, for all the
reasons described above.
Status: Invalid
from mutagen.
Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):
From [email protected] on January 08, 2010 15:16:19
Status: Accepted
from mutagen.
Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):
From [email protected] on January 06, 2010 08:52:50
I think __getitem__ (and __delitem__) should never be raising a ValueError. A missing
key and an unsupported key are identical from the perspective of the getter, since an
unsupported key is always missing.
setitem should probably throw a custom subclass of both KeyError and ValueError,
for compatibility.
from mutagen.
Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):
From [email protected] on January 05, 2010 20:01:40
What you propose would make it nearly impossible for a program to determine if a key
was rejected for being missing or for being unsupported. Support varies for keys
across different versions of mutagen.
The current state of play is...
KeyError indicates data not present (read).
ValueError indicates feature not present (read/write).
from mutagen.
Related Issues (20)
- Support for other video formats HOT 1
- Write into FLAC files via cli HOT 1
- File objects with no tags cast to boolean as false
- wav file bps incorrectly identified as absurdly high value HOT 3
- Unclear what the build system is HOT 5
- Mutagen updates ID3v1 tags but does not save ID3v2 tags HOT 4
- MP4.save() makes phone videos unreadable (Invalid NAL unit size)
- Having problems figuring out how to write to ID3 tags for MP3's HOT 2
- Updating APIC tag leads to empty cover art on Spotify's local files
- Performance on NFS-mounted files much helped by specifying buffering
- mutagen-inspect shows tag data but mid3cp shows HOT 4
- OGG Vorbis file save fails: mutagen.ogg.error: unable to read full header; got b'\x00\x00' HOT 3
- Can't open wav ripped from DVD audio: Invalid Chunk - ordinal not in range(128) HOT 6
- OGG Vorbis: wrong (playback) duration / length reported on opus audio HOT 1
- "Universal" audio metadata class HOT 3
- Extensible wave format support HOT 2
- FLAC objects that compare equal do not have the same hash value
- mid3v2 not working with .opus files. HOT 4
- Unable to add artwork to `.ogg` [vorbis] file HOT 9
- Add support for Audiobooks (.m4b) tags to EasyMP4
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 mutagen.