Bruno Cauet
dfa18b1119
Make beets loggers level thread local.
...
This updates the beets logger class. Tests are missing.
2015-03-25 12:55:40 +01:00
Adrian Sampson
127b92598c
Clarify plugin verbosity docs (taken from sampsyo/thread-safe-logging)
2015-03-25 12:55:39 +01:00
Bruno Cauet
998d04d3eb
Update logging tests (taken from sampsyo/thread-safe-logging)
2015-03-25 12:55:37 +01:00
Bruno Cauet
86559bcb1a
Implement repr() on Query & its subclasses.
...
This should help with #1359-style issues.
2015-03-25 10:56:17 +01:00
Bruno Cauet
8f5bae26fd
Smartplaylists: improve tests & code modularization
2015-03-25 10:44:33 +01:00
Tom Jaspers
f4ed3e16b1
Config: Add redacted fields from included plugins
2015-03-24 17:01:33 +01:00
Tom Jaspers
778138f2cd
Config: redact sensitive fields with -r option
...
- `config -r` will show 'REDACTED' instead of the actual value
- Has a default list of field names that should be redacted (e.g., 'password')
- Plugins can add redacted fields that they introduce
2015-03-24 17:00:37 +01:00
Bruno Cauet
adec09de96
Fix outdated docstring in test.TestHelper
2015-03-23 19:15:14 +01:00
Bruno Cauet
9b5d78bad0
Fix album emptiness test in duplicates resolution
...
Fix #1367 .
Tests are missing for I've not found yet a satisfying way to build them.
2015-03-23 19:11:09 +01:00
Tom Jaspers
c4d7dd0d6d
Add beets-setlister to community plugins docs
...
(shameless self-promotion!)
2015-03-23 07:56:20 +01:00
Amish Bhadeshia
d2a95158f2
Updated ftintitle plugin to follow a format
2015-03-21 15:36:39 +00:00
Adrian Sampson
a70f8bb91f
Fix #1365 : lastimport config
2015-03-20 19:52:36 -04:00
Adrian Sampson
d09c8c66b3
Merge pull request #1359 from brunal/more_info_in_db_changes
...
Smartplaylist only updates playlists that may have changed
2015-03-19 09:42:52 -04:00
Bruno Cauet
a96f2fd3c9
Fix pep8
2015-03-19 13:51:20 +01:00
Bruno
d34a498e77
Merge pull request #1358 from brunal/more-tolerant-summaries
...
ui.commands.summarize_items(): don't crash when there is no item
2015-03-19 13:45:37 +01:00
Bruno Cauet
7be7a78d5a
Restore recent html_theme value in docs/conf.py
...
The old value got restored in commit 86443c076 by mistake.
2015-03-19 13:43:52 +01:00
Bruno Cauet
7f34c101d7
Plugin events: restore backwards compatibility
...
An event listener that expects too few arguments won't crash, arguments
will be cut off instead. This restores a backwards-compatibility hack
that was removed in commit 327b62b6 .
2015-03-19 13:37:53 +01:00
Bruno Cauet
12c2511b1f
Smartplaylist tests: don't use a dict literal
...
fucking py26!
2015-03-19 13:37:29 +01:00
Bruno Cauet
86443c076d
Document smartplaylist sorting behavior.
2015-03-18 19:05:16 +01:00
Bruno Cauet
bcd57bd2b5
Test queries building sort management in smartplaylist
...
Slighly modify Sort parsing: avoid building MultiplSort() instances
comptised of a single sort, but return that sort instead, since it wraps
things with any gain.
2015-03-18 18:53:41 +01:00
Bruno Cauet
45c0c9b3cb
Deal with sorting
...
Try to follow any sort found & manage absence of sort. When there are
multiple sort directives given, concatenate them.
Tests not extended yet.
2015-03-18 18:09:42 +01:00
Bruno Cauet
bcfdcdc4b7
Automatically remove dups when they're all empty
2015-03-18 17:38:24 +01:00
Bruno Cauet
65b52b9c48
python 2.6 compat: don't use set literals
...
In smartplaylist and test_smartplaylist.
2015-03-16 19:42:54 +01:00
Bruno Cauet
7bee2f093b
changelog: fix an extra ':' after a bug #
2015-03-16 18:48:28 +01:00
Bruno Cauet
5d1ee0457f
Document the smartplaylist plugin updates
2015-03-16 18:47:38 +01:00
Bruno Cauet
191ff61c53
Document the database_change parameter update
2015-03-16 18:44:52 +01:00
Bruno Cauet
b79c025142
CLI tests for smartplaylist plugin
...
No import CLI test.
2015-03-16 18:36:08 +01:00
Bruno Cauet
8b6b938a37
SmartPlaylistPlugin: add unit tests
...
They're not exhaustive but still quite heavy.
2015-03-16 18:04:00 +01:00
Bruno Cauet
e00282b4fe
Implement hash() for query subclasses
...
It is implemented on mutable queries as well, which is bad. IMPORTANT:
don't mutate your queries if you want to put them in a set or in a dict
(as keys).
2015-03-16 17:28:00 +01:00
Bruno Cauet
64614ff579
Query.__eq__: fix indents
2015-03-16 17:28:00 +01:00
Bruno Cauet
4151e81969
Implement __eq__ for all Query subclasses
...
Tests are a bit light.
2015-03-16 17:01:14 +01:00
Bruno Cauet
a1b048f5de
RegexpQuery: fix typo: false → fast
2015-03-16 17:01:11 +01:00
Bruno Cauet
40e793cdb1
Fix flake8 errors
2015-03-16 16:25:43 +01:00
Bruno Cauet
774decda7d
Smartplayist: parse_query_parts() → ...ry_string()
2015-03-16 16:21:49 +01:00
Bruno Cauet
2d9f665848
Smartplaylist: offer "splupdate <playlist names>"
...
splupdate command of the SmartPlaylistPlugin looks in "args" for matches
of playlist names.
2015-03-16 16:03:14 +01:00
Bruno Cauet
f06c33cb71
Smartplaylist: update only if item changed
2015-03-16 15:16:40 +01:00
Bruno Cauet
8e25a70e40
summarize_items(): sort format by decr. freq
...
Make the summary deterministic.
2015-03-16 14:41:43 +01:00
Bruno Cauet
4bfa439ee1
database_change: send model that changed
2015-03-16 14:32:37 +01:00
Bruno Cauet
1e2d481ac0
Add tests for summarize_items()
2015-03-16 14:29:09 +01:00
Bruno Cauet
18fc0cd3de
summarize_items(): work even with 0 items
...
It crashed on empty albums.
Fix #1357
2015-03-16 14:28:56 +01:00
Adrian Sampson
cf3388fae7
Merge pull request #1344 from jmwatte/bs1770gainsupport
...
Bs1770gainsupport-tests
2015-03-15 15:35:39 -07:00
Adrian Sampson
f6df14a798
Isolate bugs in pylast
...
Should fix crashes like this:
http://hastebin.com/nizusukuli.log
2015-03-14 15:13:07 -07:00
Adrian Sampson
736eab412c
Bytes arguments to bs1770gain command
2015-03-14 14:43:00 -07:00
Tom Jaspers
96a565a614
info: error msg instead of traceback on IOError
...
IOErrors were previously not caught, displaying full traceback to the user
2015-03-13 17:55:09 +01:00
Bruno Cauet
02855a44bd
Fix exception construction in util.command_output()
...
`cmd` being a byte string array, it should be joined by b" " and not
u" ".
2015-03-13 11:51:26 +01:00
Adrian Sampson
2f7128f1d7
Merge pull request #1353 from guibog/add-log
...
Add debug log for plugin paths
2015-03-12 08:42:36 -07:00
guibog
295ebc0bc6
Add debug log for plugin paths
2015-03-12 16:01:02 +08:00
Bruno Cauet
e71caded81
Update docs' html_theme value: default → classic
...
New proposed default is 'alabaster', which looks nice but leaves less
room to the core content. 'classic' replaces 'default'.
Anyway readthedocs.org applies its own theme so this only impacts local
builds.
2015-03-11 11:08:40 +01:00
David Logie
ee6fba1e82
Fix call to add_format_option() missing plugin.
2015-03-08 12:59:00 +00:00
Bruno
f6c6c35614
Merge pull request #1346 from brunal/subcommand-auto-format-path
...
Generalize --path, --format and --album options
2015-03-07 14:05:05 +01:00