Adrian Sampson
f7ff8e9f99
changelog/thanks for #499
2014-01-20 18:57:54 -08:00
Adrian Sampson
28d4b9320c
Merge pull request #499 from geigerzaehler/master
...
Make pluginpath configuration useable
2014-01-20 18:55:20 -08:00
Adrian Sampson
1cdb30fd56
remove superfluous py_type field from Type
2014-01-20 18:06:42 -08:00
Adrian Sampson
00829c1a6c
use PathQueries declaratively
...
Now PathQuery is just another type-based query, just like NumericQuery.
2014-01-20 18:01:29 -08:00
Adrian Sampson
4026c4b707
add query field to types
...
This is starting to get at the heart of the matter: now each type gets to
declare which Query subclass it wants to use, starting with NumericQuery.
2014-01-20 17:47:02 -08:00
Adrian Sampson
9ee4adc5e1
move remaining generic Query types to dbcore.query
...
NumericQuery is still broken. This, of course, is the whole reason for the
change.
2014-01-20 16:40:50 -08:00
Thomas Scholtes
712358fab4
Keep old pluginpath mechanism for compatibility
2014-01-21 01:07:52 +01:00
Adrian Sampson
680524197c
new dbcore.query module
...
Splitting off the Query hierarchy for easier navigation.
2014-01-20 16:05:17 -08:00
Adrian Sampson
61b6f04036
tests: silence logging output
2014-01-20 15:58:33 -08:00
Adrian Sampson
72c6b6feba
reorganize dbcore into a package
2014-01-20 15:51:19 -08:00
Adrian Sampson
1f6c185378
header on dbcore.py
2014-01-20 15:47:20 -08:00
Adrian Sampson
77daa542c8
fix infinite-recursion regression in rewrite
...
Reported by axion on IRC.
2014-01-20 11:39:33 -08:00
Adrian Sampson
9162267960
Merge pull request #500 from geigerzaehler/logger_fix
...
Use default beets logger
2014-01-20 11:19:36 -08:00
Thomas Scholtes
1f53b658bb
Use default beets logger
2014-01-20 19:25:55 +01:00
Thomas Scholtes
a4b6976755
Make plugin path configuration useable
2014-01-20 17:39:46 +01:00
Thomas Scholtes
3b39e0f193
Test plugin commands from plugin paths
2014-01-20 17:39:46 +01:00
Adrian Sampson
54763878d7
Merge pull request #498 from geigerzaehler/master
...
Running `./setup.py test` works again
2014-01-20 08:05:11 -08:00
Thomas Scholtes
34f113bbcf
Running ./setup.py test works again
2014-01-20 14:33:40 +01:00
Adrian Sampson
dffa13e0a4
fix migration field detection
2014-01-18 17:01:10 -08:00
Adrian Sampson
a0ffde7114
a bit more dbcore testing
2014-01-18 16:49:22 -08:00
Adrian Sampson
dcee7b6219
dbcore: terminology
...
Replace "library" and "lib" references in dbcore with "database" and "db" for
short.
2014-01-18 16:36:04 -08:00
Adrian Sampson
236de2be86
give test_db a better name: test_library
2014-01-18 16:28:17 -08:00
Adrian Sampson
72a1b9bafb
add tests for dbcore
...
Based on the old migration tests for Library.
2014-01-18 16:27:43 -08:00
Adrian Sampson
a3a25612ea
sort items by disc and track
...
Now album.items() returns results in a reasonable order.
2014-01-14 18:33:04 -08:00
Adrian Sampson
3787b59430
changelog/thanks for #493
2014-01-14 13:04:56 -08:00
Adrian Sampson
95b2221f2c
Merge pull request #493 from silb/item_copied_event
...
Send a plugin event when a file is copied.
2014-01-14 13:02:24 -08:00
Stig Inge Lea Bjørnsen
6ed430d730
Send a plugin event when a file is copied.
...
I use this event in a plugin that needs to know which file outside the
library an item was copied from during import.
2014-01-14 21:53:12 +01:00
Adrian Sampson
3d5d071fe7
fix docs to refer to dbcore module
2014-01-13 17:25:07 -08:00
Adrian Sampson
faa66dba0d
dbcore: subsume schema setup, add Type class
...
Type will also include fields for parsing, emitting, and querying a given
type.
2014-01-13 17:11:50 -08:00
Adrian Sampson
cbbb38c417
new BytesQuery factors out MatchQuery's path logic
2014-01-13 16:17:30 -08:00
Adrian Sampson
7f3a8ac505
fix some mistakes introduced during refactor
2014-01-13 15:33:19 -08:00
Adrian Sampson
529d2db0ce
move basic queries to dbcore
...
I don't yet know where to divide the query hierarchy: maybe we even need a new
"queries" module for all this.
2014-01-13 15:21:34 -08:00
Adrian Sampson
f46c8b0623
move database_change events back to library.py
...
dbcore is abstractable. Should not depend on any beets internals.
2014-01-13 15:04:48 -08:00
Adrian Sampson
c5b92919c6
new Database class in dbcore
...
This moves most of the abstract Library functionality. Much more to come. Some
stuff is temporarily broken, to be followed up on in the next few commits.
2014-01-13 15:02:16 -08:00
Adrian Sampson
a9ef11c311
begin database refactor: move Model to new module
2014-01-13 14:37:04 -08:00
Adrian Sampson
f239489549
docs: remove outdated path_format config option
...
The example config contained a configuration key that's been unsupported for
years! How embarrassing.
2014-01-10 19:12:45 -08:00
Adrian Sampson
960e6b2593
changelog/thanks for #489
2014-01-09 22:30:46 -08:00
Adrian Sampson
ec77d92cf9
Merge pull request #489 from neomilium/master
...
events: add item_removed event
2014-01-09 22:28:53 -08:00
Romuald Conty
f0483ccd85
doc: add documentation about 'item_removed' event
2014-01-10 01:23:47 +00:00
Adrian Sampson
a046551304
handle some exceptions while writing during import
...
A few people get freaky crashes at this point, even though it theoretically
should be impossible (since reading the file succeeded earlier). This should
help the import process not croak at that point.
2014-01-09 12:07:08 -08:00
Adrian Sampson
1ad1f7634c
py26 compatible format strings ( fix #490 )
2014-01-09 11:22:49 -08:00
Romuald Conty
f18481d427
events: add item_removed event
2014-01-09 15:14:50 +00:00
Adrian Sampson
d30db10d10
mpdupdate: remove debug clause
...
Thanks to @phmongeau for pointing out this embarrassing mistake.
2014-01-08 22:43:10 -08:00
Adrian Sampson
fe725fb9a9
changelog/thanks for #487
2014-01-05 13:34:13 -08:00
Adrian Sampson
7f76ae4a17
Merge pull request #487 from pprkut/bpm_int
...
Make sure bpm values coming from echonest are stored as integers.
2014-01-05 13:32:58 -08:00
Heinz Wiesinger
7158f7aefc
Make sure bpm values coming from echonest are stored as integers.
2014-01-05 20:21:04 +01:00
Adrian Sampson
55cea24b7b
don't attempt to string-format strings
2014-01-02 09:46:01 -08:00
Adrian Sampson
04c0bd50fd
smartplaylist: use new evaluate_template signature
2013-12-29 12:30:44 -08:00
Adrian Sampson
806c6bf1fa
Merge pull request #483 from yoasif/patch-1
...
Added instructions on how to run manually from CLI
2013-12-26 21:36:46 -08:00
Adrian Sampson
8ff54b35e4
Merge pull request #484 from yoasif/patch-2
...
Slight grammar improvement
2013-12-26 21:35:20 -08:00