Commit graph

126 commits

Author SHA1 Message Date
Adrian Sampson
7a410f636b happy new year
For future reference, this command did the trick:
ack -l 'Copyright 201' | xargs perl -pi -E 's/Copyright 201./Copyright 2013/'
2013-01-11 10:43:41 -08:00
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
3ef9e006f4 finish confit-ifying all the plugins 2012-12-13 17:14:19 -08:00
Zach Denton
6c6ae5a7c0 Send correct filename when downloading a file. 2012-08-26 15:19:03 -04:00
Adrian Sampson
473fe04f91 web: add size to item JSON in API
This is to be used by the Tomahawk resolver, which wants file sizes.
2012-08-24 19:20:27 -07:00
Adrian Sampson
00c47b6811 library has per-thread transaction stacks (GC-399)
The Library object is now (almost) safe to share across threads. Per-thread
resources are now automatically managed internally. There is no longer any need
for the _reopen_lib hack to get multiple copies of the Library object.
2012-06-08 11:09:45 -07:00
Adrian Sampson
d88afbad11 library maintains per-thread DB conns. (GC-399) 2012-06-08 10:49:47 -07:00
Adrian Sampson
b68e87b92c The Great Trailing Whitespace Purge of 2012
What can I say? I used to use TextMate!
2012-05-13 20:22:17 -07:00
Adrian Sampson
a28f930c52 transaction objects to control DB access
In an attempt to finally address the longstanding SQLite locking issues, I'm
introducing a way to explicitly, lexically scope transactions. The Transaction
class is a context manager that always fully fetches after SELECTs and
automatically commits on exit. No direct access to the library is allowed, so
all changes will eventually be committed and all queries will be completed. This
will also provide a debugging mechanism to show where concurrent transactions
are beginning and ending.

To support composition (transaction reentrancy), an internal, per-Library stack
of transactions is maintained. Commits only happen when the outermost
transaction exits. This means that, while it's possible to introduce atomicity
bugs by invoking Library methods outside of a transaction, you can conveniently
call them *without* a currently-active transaction to get a single atomic
action.

Note that this "transaction stack" concepts assumes a single Library object per
thread. Because we need to duplicate Library objects for concurrent access due
to sqlite3 limitation already, this is fine for now. Later, the interface should
provide one transaction stack per thread for shared Library objects.
2012-05-06 23:24:05 -07:00
Adrian Sampson
6f5beff8e0 use non-minified JavaScript libraries (#259) 2011-11-23 18:26:08 -08:00
Adrian Sampson
f48fefdf61 merge 2011-09-18 15:39:38 -07:00
Adrian Sampson
521131bc2b screenshot image and syntax cleanup 2011-09-17 15:32:27 -07:00
Adrian Sampson
9348c6a2b8 port and host options for web plugin 2011-09-16 12:00:05 -07:00
Adrian Sampson
05aa907e23 move player to the left 2011-08-08 18:41:25 -07:00
Adrian Sampson
4dc020e4a7 show a few more file details 2011-08-08 16:38:02 -07:00
Adrian Sampson
8e0638512d automatically play next track 2011-08-08 16:27:28 -07:00
Adrian Sampson
7a28dcecb0 player improvements: double-click to play; visual indicator 2011-08-08 16:19:22 -07:00
Adrian Sampson
b6ac0e4d36 replace audio.js with a hand-rolled player 2011-08-08 15:11:49 -07:00
Adrian Sampson
952dbad142 in-page media player using audio.js 2011-08-07 10:30:44 -07:00
Adrian Sampson
ba45cf6964 show more detail about items 2011-08-07 01:08:08 -07:00
Adrian Sampson
e06f3247fd UI tweaks 2011-08-07 00:42:24 -07:00
Adrian Sampson
586371a4e2 show detail for selected item 2011-08-07 00:30:57 -07:00
Adrian Sampson
e8baeb0c07 a little style for the web interface 2011-08-06 23:56:40 -07:00
Adrian Sampson
568683af21 basic Backbone.js-based frontend 2011-08-06 11:20:17 -07:00
Adrian Sampson
8493909a81 albums and queries in web plugin 2011-08-06 09:52:22 -07:00
Adrian Sampson
c11c7fe4cc playing around with a Web API 2011-08-05 17:35:47 -07:00