Commit graph

8756 commits

Author SHA1 Message Date
Jan Holthuis
ee2cce4280 playlist: Work around Windows' Mandatory File Locking on playlist updates 2019-02-17 22:12:13 +01:00
Jan Holthuis
d991e2a7d8 playlist: Normalize path before lookup in changes dict 2019-02-17 21:51:09 +01:00
Jan Holthuis
76a3e44aad test: Make music dir of playlist tests Windows-compatible 2019-02-17 21:27:37 +01:00
Jan Holthuis
7ec55a5f3b test: Use unicode literals for library queries in playlist tests 2019-02-17 21:27:09 +01:00
Adrian Sampson
9320db21eb
Merge pull request #3150 from beetbox/named-query
Add support for "named queries" and use them in the playlist plugin
2019-02-17 15:08:31 -05:00
Jan Holthuis
fdd41b301d docs: Update documentation regarding playlist plugin 2019-02-17 20:39:54 +01:00
Jan Holthuis
a9dd5a7cdc test: Add testcase for playlist plugin's update functionality 2019-02-17 20:31:15 +01:00
Adrian Sampson
7edba6e9ea Fix test harness for named queries 2019-02-17 14:11:40 -05:00
Adrian Sampson
55ef2ffd39 Add future imports to playlist plugin 2019-02-17 14:02:26 -05:00
Adrian Sampson
420772ea49 Changelog entry for pseudo-field queries 2019-02-17 13:54:18 -05:00
Adrian Sampson
7efc67eb03 playlist: Use new "named query" functionality 2019-02-17 13:52:00 -05:00
Adrian Sampson
22c8289269 Support plugin-provided named queries 2019-02-17 13:49:54 -05:00
Jan Holthuis
1af82cc450 test: Split up playlist test helper class 2019-02-17 19:41:37 +01:00
Adrian Sampson
d8e167637e Prototype support for named (pseudo-field) queries
As discussed here:
https://github.com/beetbox/beets/pull/3145#pullrequestreview-204523870

This would replace the need for #3149.
2019-02-17 13:41:05 -05:00
Jan Holthuis
6d42028057 playlist: Add playlist auto-update functionality 2019-02-17 19:38:21 +01:00
Jan Holthuis
5b68d88346 test: Add more playlist tests for the different relative_to settings 2019-02-17 19:36:26 +01:00
Jan Holthuis
9f3acce2ae test: Add non-existing item to playlist tests 2019-02-17 19:35:54 +01:00
Jan Holthuis
b00b38dab6 test: Add test for relative playlists 2019-02-17 19:35:43 +01:00
Jan Holthuis
14cad04d35 test: Further improve Windows compatibility in playlist plugin test 2019-02-17 19:33:54 +01:00
Adrian Sampson
3633c1e27f Tiny doc refinements for #3145 2019-02-17 13:17:22 -05:00
Adrian Sampson
00667bda0f Merge pull request #3145 from Holzhaus/playlist-plugin
Playlist plugin
2019-02-17 13:16:26 -05:00
Adrian Sampson
7360bbc152 Only pin Jellyfish version on py2 2019-02-17 13:06:55 -05:00
Adrian Sampson
864f9f9167 Merge pull request #3112 from efischer19/master
Maintain python 2 compatibility
2019-02-17 13:03:23 -05:00
Jan Holthuis
4f1a468aa9 playlist: Restore case sensitivity in col_clause method 2019-02-17 17:34:36 +01:00
Jan Holthuis
d6022e28d7 test: Ensure path quoting in playlist tests 2019-02-17 16:43:36 +01:00
Jan Holthuis
31c687c853 test: Fix playlist plugin path handling for Windows compatibility 2019-02-17 16:17:47 +01:00
Jan Holthuis
055f2d3702 playlist: Also catch IOErrors to restore Python 2.7 compatiblity 2019-02-17 16:00:04 +01:00
Jan Holthuis
32b6df046e test: Don't use unix-only paths in playlist plugin testcase 2019-02-17 15:57:40 +01:00
Jan Holthuis
d4039be9c0 test: Get rid of TemporaryDirectory to restore Python 2.7 compatibility 2019-02-17 15:39:47 +01:00
Jan Holthuis
34cdeeefb7 docs: Reword documentation of playlist plugin's relative_to option 2019-02-17 15:35:30 +01:00
Jan Holthuis
d52dcdd48f test: Add playlist testcases for nonexisting playlists 2019-02-17 15:17:10 +01:00
Jan Holthuis
f9f2fa0e26 playlist: Restructure playlist reading code and add error handling 2019-02-17 15:17:10 +01:00
Jan Holthuis
0988a2a186 test: Add test suite for the playlist plugin 2019-02-17 15:17:10 +01:00
Jan Holthuis
d78bade30c docs: Add playlist plugin to the changelog 2019-02-17 14:38:36 +01:00
Jan Holthuis
cc501be2d9 docs: Add documentation for the playlist plugin 2019-02-17 14:38:36 +01:00
Jan Holthuis
19b92e1199 playlist: Improve speed in PlaylistQuery class
Implement the col_clause method for faster, sqlite-based querying. This
will only make a difference if the "fast" kwarg is set to True.
2019-02-17 14:38:36 +01:00
Jan Holthuis
a80a07f093 playlist: Add playlist plugin
Adds M3U playlist support as a query to beets and thus partially
resolves issue #123. The implementation is heavily based on #2380 by
Robin McCorkell.

It supports referencing playlists by absolute path:

    $ beet ls playlist:/path/to/someplaylist.m3u

It also supports referencing playlists by name. The playlist is then
seached in the playlist_dir and the ".m3u" extension is appended to the
name:

    $ beet ls playlist:anotherplaylist

The configuration for the plugin looks like this:

    playlist:
        relative_to: library
        playlist_dir: /path/to/playlists

The relative_to option specifies how relative paths in playlists are
handled. By default, paths are relative to the "library" directory. It
also possible to make them relative to the "playlist" or set the option
or set it to a fixed path.
2019-02-17 14:38:36 +01:00
Adrian Sampson
d4170fe733
Merge pull request #3146 from jackwilsdon/lock-munkres
Lock munkres to 1.0.x
2019-02-15 21:18:48 -05:00
Jack Wilsdon
9ca80dd3fd
Lock munkres to 1.0.x 2019-02-15 23:56:21 +00:00
Adrian Sampson
e8d58432c0
Merge pull request #3142 from vmassuchetto/master
added beets-ydl plugin
2019-02-15 09:52:06 -07:00
Adrian Sampson
69fbba1eed
Merge pull request #3144 from Holzhaus/add-id3v23-to-convert
Add id3v23 option to convert plugin
2019-02-15 09:51:46 -07:00
Jan Holthuis
72f837b0cc docs: Add changelog entry regarding convert plugin's id3v23 option 2019-02-15 13:35:26 +01:00
Jan Holthuis
0579046487 docs: Add new id3v23 config option to convert plugin documentation 2019-02-14 23:42:36 +01:00
Jan Holthuis
7afeb9b2ac convert: Add id3v23 config option to convert plugin 2019-02-14 23:42:36 +01:00
Jan Holthuis
53b63443fb art: Allow overriding id3v23 in embed_item() 2019-02-14 23:42:36 +01:00
Jan Holthuis
305bb64086 library: Allow overriding global id3v23 option in write() 2019-02-14 23:42:36 +01:00
Jan Holthuis
bc5b15f277 library: Pass try_write() kwargs directly to write()
This avoids duplication of the kwargs and their default values.
2019-02-14 23:42:36 +01:00
Vinicius Massuchetto
9090401489
added beets-ydl plugin 2019-02-13 07:48:14 -02:00
Adrian Sampson
f54042f194 Make a comment into a full sentence 2019-02-08 18:18:30 -08:00
Adrian Sampson
5c92388702 Merge pull request #3138 from puhoy/discogs-ratelimit
keep discogs requests below rate limit
2019-02-08 18:17:40 -08:00