Commit graph

10167 commits

Author SHA1 Message Date
Diego Moreda
bc8f422433 Do not attempt matching unset fields on DateQuery
Add a comparison at DateQuery.match in order to avoid comparing if the
field is not in the item.
Revise the existing types_plugin unit tests for explicitely checking the
behaviour when the values are unset.
2016-10-03 19:52:44 +02:00
vapniks
8671c83817 Delete _beet_cached 2016-10-02 19:54:39 +01:00
vapniks
5282d2882e Automatically generate cache file
This makes updating cache files easier; you just delete the old one and try completing again.
2016-10-02 19:54:10 +01:00
Diego Moreda
3e82007036 Add ArgumentParser, taking into account commas
Add ArgumentParser as a subclass of Parser that considers ARG_SEP a
special character (ie. always needs escaping, terminates a block); and
use it for parsing the substring that contains the list of arguments at
parse_argument_list().
2016-10-02 19:44:13 +02:00
Diego Moreda
657a711f17 Remove comma from special chars, class variables
Remove ARG_SEP from Parser.special_chars, and promote some groups of
characters used in parse_expression to class variables.
ARG_SEP is still considered an "escapable" character, pending a decision
on whether both escaped ('$,') and unescaped (',') syntax would be
allowed.
2016-10-02 19:36:32 +02:00
Diego Moreda
518c6b8801 Add tests for comma outside functions in templates
Add unit tests for the use of the separator special character (comma)
outside a function argument.
2016-10-02 19:17:56 +02:00
vapniks
be69f52b69 Update _beet_cached 2016-10-02 16:31:02 +01:00
vapniks
873a6251af Update comments in _beet_cached 2016-10-02 16:29:36 +01:00
vapniks
df3a4317a6 Cached completion file (faster)
A cached completion file for faster initial completions.
Completes the following plugins: fuzzy play info lyrics fromfilename check lastgenre badfiles chroma edit smartplaylist
2016-10-02 16:27:22 +01:00
vapniks
9dc79950d3 Update comments section of _beet
More accurate instructions on how to create a cached completion file (previous instructions where incorrect)
2016-10-02 16:20:55 +01:00
Johnny Robeson
8d7a626074 Move timeout config getter to library from dbcore
I wanted to move it up even higher, but I wanted to hold off on that
for a bit longer.
2016-10-01 05:01:55 -04:00
vapniks
c1e04ac039 Update _beet
Some fixes to make it work with new plugins
2016-09-29 15:05:50 +01:00
Adrian Sampson
4ae02e0d27 Merge pull request #2211 from heylookltsme/better-genre
Proposal: Add specificity option to lastgenre plugin
2016-09-27 09:07:39 -04:00
Corinne Hoener
a7e3bf2d0b third time's a charm 2016-09-27 06:21:51 -04:00
Corinne Hoener
1c9202cc86 moar indents! 2016-09-26 21:21:15 -04:00
Corinne Hoener
a9ac2fa9c8 add some docs 2016-09-26 19:21:58 -04:00
Corinne Hoener
c10fe1e126 change option name to prefer_specific 2016-09-26 19:06:34 -04:00
Corinne Hoener
be5ce3194f better syntax; better comments 2016-09-26 19:02:10 -04:00
Johnny Robeson
fa70c48bf9 Add unrar installation to appveyor.yml 2016-09-26 17:02:46 -04:00
Corinne Hoener
288ff6ba19 Add specificity option to lastgenre in order to prefer the most specific genres 2016-09-26 16:13:04 -04:00
Johnny Robeson
ffa4dfaac0 Remove deprecated list_format_{album|item} config
It was deprecated in f14f47f059 on 2015-03-04.
2016-09-25 23:28:44 -04:00
Johnny Robeson
be8fe8753c Remove deprecated top level colors config option (#2209)
It was deprecated in d3fce35481
on 2015-01-25.
2016-09-25 22:56:29 -04:00
Johnny Robeson
2e0775c0fe add site-packages tests to the travis build matrix (#2183)
Add `with_system_site_packages` variants of the two installed pythons (2.7, 3.4) so any plugin requiring pygobject/gstreamer can be tested with the CI system.

[appveyor skip]
2016-09-25 15:34:01 -04:00
Fabrice Laporte
0140f2f287 Merge pull request #2206 from Kraymer/issue2205
Issue2205: search for lyrics using part of song title preceding ':'
2016-09-25 21:24:56 +02:00
Fabrice Laporte
7226624405 replace strip_part() by generate_alternatives()
Delegate the update of titles and artists lists to the helper
generate_alternatives() function.
2016-09-25 19:37:14 +02:00
Fabrice Laporte
e2703b9a7c always yield item artist and title first
Rather than using an unordered set for storing pairs, append to a list
and build an OrderedDict from it to filter duplicated strings while
keeping order.
2016-09-25 15:46:22 +02:00
Johnny Robeson
623dee064a Use as_str_seq in pluginpath 2016-09-25 03:20:36 -04:00
Johnny Robeson
1a8b20f354 Expose split arg from StrSeq in as_str_seq 2016-09-25 03:20:33 -04:00
Johnny Robeson
3db656a685 use py3_path on gstreamer location prop setters
Location properties require strings, so we give them to them!
2016-09-24 01:16:56 -04:00
Fabrice Laporte
7e15ac0695 add changelog 2016-09-23 23:11:27 +02:00
Fabrice Laporte
059be3b94c test_lyrics: fix too many blank lines 2016-09-23 22:41:44 +02:00
Fabrice Laporte
8b4f39da42 lyrics: search for song title part preceding colon. fix #2205 2016-09-23 22:23:32 +02:00
Fabrice Laporte
4b702b338e lyrics: reduce code duplication in search_pairs() 2016-09-23 22:21:00 +02:00
Johnny Robeson
6b73aa25d2 Use b'' in discogs medium query regex
Since the first arg to `re.sub()` is bytes, thus must be the
replacement string.
2016-09-20 17:38:39 -04:00
Johnny Robeson
009108627d Add python 3.6-dev to Travis (#2198)
[appveyor skip]
2016-09-18 17:57:43 -04:00
Johnny Robeson
49fc2ac5e9 Use run_with_command in write_cmd in test_ui.py 2016-09-18 03:31:00 -04:00
Johnny Robeson
ec4eb8368e Replace capture_stdout in test_config_command
I didn't see a good reason not to use `run_with_command` here
2016-09-18 03:29:04 -04:00
Johnny Robeson
ddaa94003b add yaml output command func to config_command tests 2016-09-18 03:17:44 -04:00
Johnny Robeson
d585019ab3 Remove indirect run_command() in test_info.py
This was breaking the `info` command in the click branch. I assume
that was because `run_command` was aliased to `run_with_output`.

It was also confusing in its own right, so I consider it a win
either way.
2016-09-17 21:59:56 -04:00
Johnny Robeson
bdb2de69bb add python 3.6 to tox.ini 2016-09-16 23:29:29 -04:00
Johnny Robeson
db782a2404 wrap 2 results in a list in cue and random plugin 2016-09-14 00:40:53 -04:00
Johnny Robeson
7c33d6858c Merge pull request #2196 from codyopel/py3/fromfilename
fromfilename: fix dict view conversion for python3 (fix #2195)
2016-09-12 21:53:17 -04:00
Cody W. Opel
d384b07914 fromfilename: fix dict view conversion for python3 (fix #2195)
dict.values() returns a view rather than a list in python3
2016-09-12 09:29:32 -04:00
Johnny Robeson
925d7bebf9 drop vararg_callback as the only caller is gone.
It was used only in the duplicates plugin
2016-09-10 16:59:04 -04:00
Johnny Robeson
cc5012fda2 slight language tweak in duplicates plugin docs
Suggested by @sampsyo in https://github.com/beetbox/beets/pull/2193
2016-09-10 16:53:53 -04:00
Johnny Robeson
55f37bc127 Merge pull request #2193 from jrobeson/replace-varargs_callback-in-duplicates
Use -k for each arg in duplicates plugin
2016-09-10 16:50:29 -04:00
Johnny Robeson
079d083a4b add docs and changelog for --keys change 2016-09-10 05:13:06 -04:00
Adrian Sampson
d00c0fb5cf Replace varargs_callback in duplicates
Now you just use `-k KEY1 -k KEY2`, which seems more natural to me anyway.
2016-09-10 05:13:06 -04:00
Johnny Robeson
b779917043 ConfigView.set_args() can now accept dicts
Credit goes to @duailibe for implementing this in the click branch
2016-09-10 02:42:17 -04:00
Adrian Sampson
b63ac3aef7 Fix a missing Python 3 dict view conversion 2016-09-09 20:12:05 -04:00