Commit graph

3221 commits

Author SHA1 Message Date
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
Adrian Sampson
638b2e3321 organize 1.3.2 changelog 2013-12-22 13:14:53 -08:00
Adrian Sampson
5d55c21c38 changelog for scrub mp4 fix 2013-12-22 12:49:06 -08:00
Adrian Sampson
8a105b0cb9 Merged in yevgenybezman/beets/scrub-add-mp4 (BB pull request 1)
scrub: Added MP4 support to scrub plugin
2013-12-22 12:47:34 -08:00
Yevgeny Bezman
7310f0a371 scrub: Added MP4 support to scrub plugin
--HG--
branch : scrub-add-mp4
2013-12-22 22:04:47 +02:00
Adrian Sampson
3e1be1346a deprecate old echonest_tempo plugin 2013-12-18 16:26:29 -08:00
Adrian Sampson
a9b4169ee2 zero out month & day when missing from match 2013-12-18 16:20:40 -08:00
Adrian Sampson
938563e287 echonest: get audio_summary in search (fix #481) 2013-12-18 12:35:31 -08:00
Adrian Sampson
5e405f6b84 Merge pull request #480 from fortes/patch-1
Don't try to parse None as HTML when fetching lyrics
2013-12-18 12:04:45 -08:00
Adrian Sampson
5fb7c424ad use canonical parent, not base tag (#478) 2013-12-18 12:01:55 -08:00
Filipe Fortes
0824ccb85f Don't try to parse None as HTML when fetching lyrics
Fixes #479
2013-12-18 07:37:01 -08:00
Adrian Sampson
3338ef2ff2 lastgenre: multiple + canonical genres (fix #478) 2013-12-17 17:29:37 -08:00
Adrian Sampson
6ab0abfa90 detect missing echonest fingerprints (fix #477) 2013-12-17 17:18:16 -08:00