xarph
fcc6c6bc80
Merge branch 'master' of https://github.com/beetbox/beets
2016-12-03 14:53:02 -08:00
xarph
c3e63084d2
fix for unidecode converting ¢ into C/, ruining paths.
2016-11-26 23:08:35 -08:00
Adrian Sampson
9de27c6b70
Sync up with separate MediaFile repository
2016-11-26 20:48:12 -05:00
Adrian Sampson
2cc1a61ea4
MediaFile: Remove one last utility function ( #1966 )
2016-11-26 17:40:40 -05:00
Adrian Sampson
075a4b6b85
MediaFile: Avoid using some beets utilities
...
Modularization: #1966
2016-11-26 17:37:01 -05:00
Adrian Sampson
692dea39e8
MediaFile: Use stock logging
...
This is part of the effort to separate MediaFile from beets (#1966 ). It avoids
using the beets-specific logging infrastructure. This commit is part of
fdebab657d6e85de56b3996e8fdece09796940ae from the new MediaFile repository.
2016-11-26 17:30:02 -05:00
Adrian Sampson
cf5fa501e2
Version bump: 1.4.2
2016-11-25 22:16:03 -05:00
Adrian Sampson
60ec732e10
Version bump: 1.4.1
2016-11-25 21:38:06 -05:00
Adrian Sampson
55d9233e39
Capitalize Python
2016-11-25 21:06:01 -05:00
nathdwek@laptop
7dc458aaf5
tagger: finish generator-decorator simplifications
...
* Propagate generators upwards without realizing them
* Use plugins.notify_info_yielded decorator
2016-11-21 13:43:00 +01:00
nathdwek@laptop
6e3a9d9bc5
collect search results from plugins with yield
2016-11-21 13:39:44 +01:00
nathdwek@laptop
a7fed5b2c4
plugins: document notify_info_yielded
2016-11-21 10:15:51 +01:00
nathdwek@laptop
2b468c1872
plugins: make the signature of notify_info_yielded clearer
2016-11-21 10:15:51 +01:00
nathdwek@laptop
91d1aa9763
plugins: rename notify_info_received->notify_info_yielded
2016-11-21 10:15:51 +01:00
nathdwek@laptop
18a14e8005
Use generators and decorators to match items:
...
The easy parts
2016-11-21 10:15:51 +01:00
Christoph Reiter
31f91129f3
Use mutagen id3 encoding constants
2016-11-19 10:36:31 +01:00
Christoph Reiter
31898111ed
mediafile: prefer latin-1 encoding for ID3 APIC descriptions. Fixes #899
...
iTunes has problems with everything but latin-1
Try to use latin-1 if possible and fall back to utf-16.
2016-11-18 01:09:53 +01:00
nathdwek@laptop
b8213181f2
drop IdentityFallbackDict:
...
Used by mediafile to determine the preferred extension of an image
That solution looked cool for 2 days, but in hindsight it was pretty bad
2016-11-16 23:10:15 +01:00
Adrian Sampson
dafde564f3
Add __future__ imports to a new module
2016-11-16 11:58:18 -05:00
walt
c3b70b5098
Removed call to .decode('utf-8') when printing flexible attributes
2016-11-16 11:33:16 +01:00
nath@home
3b4b9085ea
utils.collections: rename IdentityUnlessDict to IdentityFallbackDict
2016-11-08 18:48:44 +01:00
nathdwek@laptop
92ee141662
images: use jpg extensions for jpeg files everywhere
...
fix #2254
2016-11-08 18:48:44 +01:00
nathdwek@laptop
a0877dc092
images: Make sure all jpegs work everywhere
...
Apply #1545 to a public function used everywhere
2016-11-08 18:48:44 +01:00
nathdwek@laptop
3b372c05d6
art: fix a docstring typo
2016-11-07 16:03:56 +01:00
Adrian Sampson
dab54043a1
Merge pull request #2231 from dangmai/selective-update
...
Selective field updates
2016-10-23 16:36:33 -04:00
Dang Mai
05377ee7c4
Fixing line too long
2016-10-23 16:00:36 -04:00
Dang Mai
04560bd88e
Stop passing in fields to be stored for Item.move and Album.move
2016-10-23 15:52:27 -04:00
nathdwek@laptop
cee6c5fe52
Rewrite match_by_id to fix next vs __next__
2016-10-22 12:37:38 +02:00
nathdwek@laptop
e94676e322
Refactor match_by_id:
...
* Drop reduce
* Readability
2016-10-22 10:37:53 +02:00
Dang Mai
f91362a069
Cosmetic refactors based on feedback
2016-10-21 16:56:03 -04:00
Dang Mai
406f3ce843
Add tests and make sure they pass
2016-10-20 21:07:12 -04:00
Dang Mai
f17601e4cd
Fix update test failures
2016-10-20 20:25:38 -04:00
Dang Mai
acd2b0ef77
First attempt for selective field updates
2016-10-20 00:04:07 -04:00
Diego M. Rodríguez
9dcd4f7367
Merge pull request #2213 from diego-plan9/template-comma-behaviour
...
Revise comma handling on templates
2016-10-04 18:17:49 +02:00
Diego Moreda
c5da6296c4
Use flag instead of subclass for comma in Parser
...
Use a `in_argument` flag on Parser constructor for specifying if the
parser should treat commas as a special character, including the logic
in parse_expression.
2016-10-03 23:01:50 +02:00
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
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
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
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
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
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
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
Adrian Sampson
15a5512ea5
Require Unicode format strings
...
Fallout from #2188 . Following @jrobeson's suggestion, I just turned the check
in LibModel.__format__ into an assert. This turned up a few badly-behaved
clients, which are also fixed.
2016-09-07 21:42:59 -04:00
Adrian Sampson
139d22fe9f
Template strings must always be unicode ( #2188 )
...
This seems to be half the problem.
2016-09-07 21:01:24 -04:00
Johnny Robeson
7a2bdf502f
s/utf8/utf-8/ in all encoding/decoding contexts
...
This matches up with the python documentation.
2016-09-06 23:10:24 -04:00
Johnny Robeson
2edc58c032
Merge pull request #2176 from jrobeson/bug-2172-2
...
Compare case insensitive paths with SUBSTR and BYTELOWER
2016-09-04 22:40:31 -04:00