mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
No description
So. Apparently, os.listdir() will *try* to give you Unicode when you give it Unicode, but will occasionally give you bytestrings when it can't decode a filename. Also, I've now had two separate reports from users whose filesystems report a UTF-8 filesystem encoding but whose files contain latin1 characters. The choices were to (a) switch over to bytestrings entirely for filenames or (b) just deal with the badly-encoded filenames. Option (a) is very unattractive because it requires me to store bytestrings in sqlite (which is not only complicated but would require more code to deal with legacy databases) and complicates the construction of pathnames from (Unicode) metadata. Therefore, I've implemented a static fallback to latin1 if the default pathname decode fails. Furthermore, if that also fails, the _sorted_walk function just ignores the badly-encoded file (and logs an error). |
||
|---|---|---|
| beets | ||
| beetsplug | ||
| test | ||
| .hgtags | ||
| beet | ||
| LICENSE | ||
| MANIFEST.in | ||
| NEWS | ||
| README | ||
| setup.py | ||
Beets is the media library management system for obsessive-compulsive music geeks. The purpose of beets is to get your music collection right once and for all. It catalogs your collection, automatically improving its metadata as it goes. It then provides a bouquet of tools for manipulating and accessing your music. Here's an example of beets' brainy tag corrector doing its thing:: $ beet import ~/music/ladytron Tagging: Ladytron - Witching Hour (Distance: 0.016165) * Last One Standing -> The Last One Standing * Beauty -> Beauty*2 * White Light Generation -> Whitelightgenerator * All the Way -> All the Way... Because beets is designed as a library, you can easily write Python programs that manipulate your music for you. Report tracks encoded at less than 192kbps? Done. Find albums you're missing from bands you like? Convert everything to Title Case once and for all? Done and done. Beets also includes a music player that speaks the MPD protocol, so you can play music in your beets library using a staggering variety of interfaces. Read More --------- Learn more about beets at `its Web site`_. Check out the `Getting Started`_ guide to learn about installing and using beets. .. _its Web site: http://beets.radbox.org/ .. _Getting Started: http://code.google.com/p/beets/wiki/GettingStarted Authors ------- Beets is by `Adrian Sampson`_. .. _Adrian Sampson: mailto:adrian@radbox.org