Adrian Sampson
6d68a4855e
per-plugin configuration defaults in __init__()
...
This uses the new BeetsPlugin.config convenience view heavily. Things are
slowly getting less verbose.
2012-12-18 22:35:44 -08:00
Adrian Sampson
4a5594bec6
begin adding convenient plugin defaults
...
We need plugins to set their config values at run time instead of module import
time. That is, defaults should be put in the __init__ method. This is easy
enough, but to make it even more convenient, I added a BeetsPlugin.config
field, which is a Confit view into a subsection of the configuration named
after the plugin.
2012-12-18 20:42:42 -08:00
Adrian Sampson
2c45251db9
clean configuration for testing
...
This way, unit tests will never see a user's global beets configuration.
2012-12-18 20:27:36 -08:00
Adrian Sampson
f606827cb9
fix ordered dictionary methods on views
2012-12-18 20:10:42 -08:00
Adrian Sampson
55cac36d35
sync with latest confit
...
This includes Confit's shift to using OrderedDict, which needs some debugging.
2012-12-18 20:03:52 -08:00
Adrian Sampson
85600df2be
remove outdated test
2012-12-15 13:22:18 -08:00
Adrian Sampson
cbd538de7b
combine TempConfigTestCase and ExtraAsserts
2012-12-15 13:21:09 -08:00
Adrian Sampson
39cd1f6c63
switch from context manager to base class
...
Replaced temp_config context manager with TempConfigTestCase base class. This
lets us clean up even when a test fails.
2012-12-15 13:15:10 -08:00
Adrian Sampson
3e5ef375c8
confit-ify remaining tests except for ConfigTest
2012-12-14 15:23:47 -08:00
Adrian Sampson
ed3a3d1937
confit-ify a bunch more tests
2012-12-14 14:21:06 -08:00
Adrian Sampson
6f19f466fc
tests: temporarily modify global configuration
2012-12-14 13:39:14 -08:00
Adrian Sampson
e84a41b550
start fixing up tests for confit overhaul
2012-12-14 13:18:06 -08:00
Adrian Sampson
582851a6fe
merge fix from master
2012-12-14 12:57:40 -08:00
Adrian Sampson
4222b37bc2
convert: fix processing singletons w/ "embed" on
2012-12-14 12:38:46 -08:00
Adrian Sampson
3ef9e006f4
finish confit-ifying all the plugins
2012-12-13 17:14:19 -08:00
Adrian Sampson
6c94358b13
begin Confit-ifying plugins in alphabetical order
2012-12-13 12:31:10 -08:00
Adrian Sampson
e17cd6beba
merge lots of work on the stable branch
2012-12-12 19:14:30 -08:00
Adrian Sampson
49ae56e455
embedart: changelog for GC-468
2012-12-11 13:53:02 -08:00
Adrian Sampson
909fb85a8e
use Mutagen's API for FLAC images (GC-468)
2012-12-11 13:47:26 -08:00
Daniele Sluijters
faa21390a5
mediafile: Handle FLAC albumart correctly.
...
FLAC's metadata_block_picture should just contain the image, not
base64'ed like ogg/vorbis wants it.
---
beets/mediafile.py | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
2012-12-11 13:36:45 -08:00
Adrian Sampson
2d4b91fa6d
replaygain: handle RG tool invocation errors (GC-469)
2012-12-11 13:09:10 -08:00
Adrian Sampson
531025f799
replaygain: restrict file formats (GC-469)
2012-12-11 13:06:57 -08:00
Adrian Sampson
98892945c2
don't crash when singleton-importing broken files
2012-12-08 12:10:06 -08:00
Adrian Sampson
ae7b29b698
log Mutagen exceptions in debug message
2012-12-08 12:03:42 -08:00
Adrian Sampson
3e9135ee7c
syspath-ify call to pyacoustid (GC-464)
2012-12-07 14:49:11 -08:00
Adrian Sampson
128a881bb4
GH-69/GC-450: docs, changelog, simplification
2012-12-05 09:10:07 -08:00
Adrian Sampson
c50289d34d
Merge pull request #69 from jizz/master
...
Fix for Issue 450: Expand templates in art_filename config option
2012-12-05 08:54:42 -08:00
jizz
fe1b40f7d2
minor tweak
2012-12-05 11:58:10 +11:00
jizz
12aaa2ee34
updated art_destination
...
art_filename now acceptable as a string or a Template
2012-12-05 11:05:12 +11:00
jizz
c56c52c5d5
updated comments
2012-12-05 11:02:34 +11:00
jizz
6b7b54062f
Update beets/library.py
...
Fix for Issue 450: Expand templates in art_filename config option
2012-12-04 16:25:18 +11:00
jizz
131b191885
Update beets/ui/__init__.py
...
Fix for Issue 450: Expand templates in art_filename config option
2012-12-04 16:24:15 +11:00
Adrian Sampson
22d17aaa30
handle non-Unicode exception strings correctly
2012-12-02 16:58:49 -08:00
Adrian Sampson
4f5c5d4e4f
echonest_tempo: docs wording fix
2012-12-02 16:34:05 -08:00
Adrian Sampson
f5628e03f6
include official beets Echo Nest API key
2012-12-02 16:32:19 -08:00
Adrian Sampson
a8cf42d05b
echonest_tempo: changelog + doc fixes + print fix
2012-12-02 16:25:45 -08:00
Adrian Sampson
269f2ced5d
Merge pull request #68 from davidbrenner/master
...
echonest_tempo plugin
2012-12-02 16:12:52 -08:00
David Brenner
0fe2331842
Create echonest_tempo plugin - use EchoNest API to get tempo (bpm).
...
A simple plugin that connects to the EchoNest API to retrieve
tempo (bpm) metadata for tracks. Functions similarly to the lyrics
plugin.
Requires the pyechonest library.
2012-12-02 18:27:20 -05:00
Adrian Sampson
02fe85df89
Merge pull request #67 from mineo/patch-1
...
Some grammar corrections for docs/.../ihate.rst
2012-12-01 10:15:07 -08:00
Wieland Hoffmann
335ce9c73c
Some grammar corrections for docs/.../ihate.rst
2012-12-01 10:53:35 +01:00
Adrian Sampson
c499be05ea
fix some tests under PyPy
...
In PyPy's pure-Python implementation of the sqlite3 module, sqlite3.Row has no
__len__ method. This works around calling len(row).
2012-11-27 21:47:15 -08:00
Adrian Sampson
f06c7dfbef
modernize basic MediaFile tests
...
These tests were written when I knew almost nothing about Python and even less
about unittest. The class-generating magic never worked with nose for a crazy
reason I won't get into here. This has a bit more copypasta but the workings
are more obvious and we no longer generate enormous numbers of independent
tests. There should be a more representative number of dots in the test runner
output now.
2012-11-27 21:42:36 -08:00
Adrian Sampson
0a21d72a79
tolerate non-UTF8 locale in test
2012-11-27 20:38:47 -08:00
Adrian Sampson
56a49b1374
avoid potential error with malformed dates from MB
2012-11-27 19:50:35 -08:00
Adrian Sampson
becd4f957d
long-overdue docs for the "info" plugin
2012-11-27 19:44:46 -08:00
Adrian Sampson
9a4cda60cd
autotag: use albumartist if available (GC-423)
2012-11-27 17:05:56 -08:00
Adrian Sampson
eef87c2189
truncation incorporates extension length (GC-461)
2012-11-27 16:54:50 -08:00
Adrian Sampson
953291f736
truncate bytes instead of unicode (GC-422)
2012-11-27 16:43:57 -08:00
Adrian Sampson
da3ffcbec3
version change: b16 is now 1.0rc1
2012-11-27 15:56:02 -08:00
Adrian Sampson
927759fc00
readme: use default-version RTD links
2012-11-27 15:53:54 -08:00