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
yoasif
54a34a77f0
Slight grammar improvement
2013-12-26 23:58:09 -05:00
yoasif
8eb30f77f0
Added instructions on how to run manually from CLI
2013-12-26 23:54:33 -05:00
Adrian Sampson
cc5e3d489c
item templates can use album flexattrs ( fix #461 )
2013-12-25 15:49:51 -08:00
Adrian Sampson
da794ffc44
remove vestigial plugin hooks
...
These have been superseded by the new function-based approach.
2013-12-25 00:37:04 -08:00
Adrian Sampson
925a6178ba
expunge pathmod parameter
...
I started using this a long time ago as a misguided attempt to make
path-related functions more testable. Harnessing is better.
2013-12-25 00:35:01 -08:00
Adrian Sampson
d6ff4308f9
fix tests for new path formatting
...
Slowly expunging the terrible idea that was `pathmod`...
2013-12-25 00:28:26 -08:00
Adrian Sampson
a9faa9bf74
restore correct formatting of paths
...
- don't sanitize paths (this is already done separately)
- album.path (or album['path']) is now an alias for album.item_dir(), which
restores the formatting of $path in templates
2013-12-25 00:00:12 -08:00
Adrian Sampson
d752014708
shared formatting/templating logic
2013-12-24 23:50:24 -08:00
Adrian Sampson
141f29aad9
replace old add methods with unified logic
2013-12-24 22:28:01 -08:00
Adrian Sampson
b9d503f846
new Model.add() method
...
This will replace most of the functionality of Library.add and
Library.add_album, completing the set of CRUD methods available on Model
classes.
2013-12-24 16:45:13 -08:00
Adrian Sampson
3e59c158ff
enable queries over computed attributes
...
This makes containment (field in obj) work with all attributes even though
other dict-like methods for iterating over the object don't expose computed
fields by default. I think this is the right compromise to avoid accidental
eager evaluation of computed fields.
2013-12-24 15:30:39 -08:00
Adrian Sampson
b38812b452
collapse model base classes
...
The artificial separation was hurting legibility/maintainability more than it
was helping.
2013-12-24 15:20:52 -08:00
Adrian Sampson
13b1e0f115
first stab at computed fields
...
The idea is to have uniform access to plugin-provided (computed) fields of
items and albums. This also permits queries over these computed fields.
2013-12-24 14:52:40 -08:00
Adrian Sampson
b87de00ba4
Added tag v1.3.2 for changeset d3bb90ef6bc7
2013-12-22 16:18:02 -08:00
Adrian Sampson
aeb9afdbb5
1.3.2: finish up changelog
2013-12-22 16:17:02 -08:00
Adrian Sampson
f9b978a1c7
docs: link to mailing list, not me directly
...
It's about time for beets to "grow up" as an open-source project and to be
more owned by the community rather than just by me alone. Questions should go
to the hive mind. :)
2013-12-22 13:52:02 -08:00
Adrian Sampson
888f76a631
merge
2013-12-22 13:44:37 -08:00
Adrian Sampson
0852f8ff4a
docs: "using plugins" section
...
Plugin pages can now link to :ref:`using-plugins` for instructions.
2013-12-22 13:41:41 -08:00