Commit graph

7146 commits

Author SHA1 Message Date
Adrian Sampson
641e62f2e0 Vastly simplify main random function
This is the payoff from the earlier refactorings: the control flow is now
consistent and clear, and the two factors (time vs. number, equal-chance or
not) are orthogonal. See also #2322.
2016-12-26 17:04:21 -05:00
Adrian Sampson
33eb4ff91b Refactor time-based selection (#2322) 2016-12-26 17:01:02 -05:00
Adrian Sampson
d053f98e81 random: Refactor equal chance logic 2016-12-26 16:43:47 -05:00
Adrian Sampson
5bbf16c2b1 Refactor length calculation (#2322)
Also, avoid setting an unnecessary field on the album objects. :/
2016-12-26 16:32:03 -05:00
Adrian Sampson
4c2457d6ce Refactor random plugin a bit
Separate the callback function from the random selection logic.
2016-12-26 16:27:31 -05:00
Adrian Sampson
3a650a151e Docs fixes for #2322 2016-12-26 16:10:46 -05:00
Adrian Sampson
c86b309762 Changelog for #2322 (fix #2305) 2016-12-26 16:09:43 -05:00
Adrian Sampson
9adfcbddd1 Merge pull request #2322 from diomekes/random-timelimit
random: add --time option, update docs
2016-12-26 16:08:14 -05:00
Adrian Sampson
22937698e2 Merge pull request #2345 from beetbox/clean-zero
Cleanup zero plugin
2016-12-25 12:35:07 -05:00
nathdwek@laptop
7de97df209 Zero: rewrite tests.
Rely on plugin interface only.
Unregister listeners by hand for the moment.
2016-12-25 17:10:16 +01:00
nathdwek@laptop
96d331ace0 Zero: cleanup plugin 2016-12-24 19:13:10 +01:00
Johnny Robeson
57338f803f Use released version of Python 3.6 for travis (#2341) 2016-12-24 04:39:30 -05:00
Adrian Sampson
10f0d03d79 Test "true" FLAC bitrate from Mutagen 1.35
Fix #2343.
2016-12-23 20:23:23 -05:00
Adrian Sampson
8cc2ac5b39 Remove stray prints (#2333) 2016-12-21 21:11:16 -05:00
Adrian Sampson
3528a675fa Changelog for #2333 2016-12-21 11:17:26 -05:00
Adrian Sampson
85119f77d5 Merge pull request #2333 from ibmibmibm/master
Add Composer, Lyricist and Arranger tags
2016-12-21 11:06:54 -05:00
Shen-Ta Hsieh
97e558185a add compatibility to old version of musicbrainzngs
Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
2016-12-21 10:12:46 +08:00
Adrian Sampson
a063336446 Fix #2332: Unicode trouble in bpd 2016-12-20 15:16:46 -05:00
Shen-Ta Hsieh
7060b512b8 Add Composer, Lyricist and Arranger tags
MusicBrainz provids composer, lyricist and arranger infomations related
to individual recordings. This commit adds query parameters to fetch them, and
write down to media files.

Tagging mapping is implemented according MusicBrainz Picard's data:
https://picard.musicbrainz.org/docs/mappings/

Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
2016-12-21 01:52:42 +08:00
Adrian Sampson
cba30163cd Merge pull request #2328 from jrobeson/add-python3-trove-classifiers
Add Python 3 trove classifiers
2016-12-17 20:08:13 -05:00
Johnny Robeson
88f59e64ea Add Python 3 trove classifiers 2016-12-17 18:55:59 -05:00
diomekes
1bc5456986 random: make --album work with --time 2016-12-17 17:24:58 -05:00
Adrian Sampson
faf2b9feb3 Version bump: 1.4.3 2016-12-16 22:07:34 -05:00
Adrian Sampson
1df66a93db Add date to changelog 2016-12-16 22:05:45 -05:00
Adrian Sampson
30d8b2e212 Tiny changelog fixes 2016-12-16 22:04:42 -05:00
Adrian Sampson
51ba780321 Changelog note about #2266 2016-12-16 22:03:34 -05:00
Adrian Sampson
d803878297 Try linking to the Discourse
It's about time we gave that a try...
2016-12-16 21:56:46 -05:00
Adrian Sampson
46e242b2b9 Roll back zsh completion to 9dc7995
See #2266. The recently introduced caching mechanism is nifty, but it's
causing problems for many users. We're rolling it back until the author can
get to the bottom of the problem.
2016-12-16 21:49:36 -05:00
Adrian Sampson
8e03f9f7b2 Python 3 status note in changelog 2016-12-16 21:48:33 -05:00
Adrian Sampson
e08afea0f0 Mention Python 3 in "getting started" guide 2016-12-16 21:45:58 -05:00
Adrian Sampson
6406918940 Changelog for #2323 2016-12-15 20:39:43 -05:00
Adrian Sampson
2bef20bc2b Merge pull request #2323 from kierdavis/convert-braces
convert plugin: fix braces in filenames causing tracebacks in "pretend" mode
2016-12-15 20:38:51 -05:00
Kier Davis
eb85ff422b
convert plugin: fix braces in filenames causing tracebacks in "pretend" mode
Previously "pretend" mode (a.k.a. dry run mode) passed the command to be
printed directly to _log.info, whose first argument is technically a
format string. Thus the command string was parsed for replacement fields, such
as '{foo}', which could cause the format evaluation to fail if the filenames
contained in the command contained valid (or partially valid) replacement fields.

This fix simply inserts an argument '{0}' to the call to _log.info, which is a
format string that simply evaluates to the second argument to _log.info (the
command string). By doing this, the command string is not parsed for replacement
fields.
2016-12-16 00:21:35 +00:00
diomekes
fc8411f3b8 random: add --time option, update docs 2016-12-15 16:15:38 -05:00
Adrian Sampson
936dc58a1c Changelog note about #2311 2016-12-09 16:46:01 -05:00
Adrian Sampson
351116bde5 Merge pull request #2311 from jrobeson/remove-discogs-logging-override
Remove requests/urllib3 logging override in discogs
2016-12-09 16:44:39 -05:00
Adrian Sampson
3f78578a88 Fix links to pip 2016-12-09 09:26:58 -05:00
Johnny Robeson
bca6d2af01 Remove requests/urllib3 logging override in discogs
Discog plugin overrides the global logging for `requests` for a reason
that seems no longer valid.

I can't seem to reproduce the logging behavior mentioned in the
preceding comment, so I'm removing it.

If we do want to modify `requests` logging in the future, then we should
hook it into beets verbose logging.
2016-12-09 00:52:24 -05:00
Adrian Sampson
f4d9af54b6 Merge pull request #2310 from jrobeson/upgrade-requests-to-satisfy-sphinx
install/update requests to satisfy sphinx
2016-12-08 23:12:20 -05:00
Adrian Sampson
4bbb05b009 Merge pull request #2303 from tweitzel/master
Decompose unicode paths and unidecode each component. Fixes #1087 #1159 #1541 #2286
2016-12-08 21:35:01 -05:00
xarph
5adf053c01 another attempt at fixing windows path stuff 2016-12-07 21:26:10 -08:00
xarph
53a677b8fd * break the asciify-paths code out into the util.asciify_paths function
* make asciifying handle both os.sep and os.altsep (testing needed as I
  don't have a windows box handy)
* make %asciify{} use the same code path as the asciify_paths goop.
* added a discrete test to %asciify{} so my life acts as a warning to
  others
* changelog note now with 80% less antihistamine-induced runon sentences
2016-12-07 20:59:33 -08:00
Johnny Robeson
0e895c8b31 install/update requests to satisfy sphinx 2016-12-06 23:03:28 -05:00
xarph
7546ea8676 Merge branch 'master' of github.com:tweitzel/beets 2016-12-05 22:09:16 -08:00
xarph
cb8e57536c remove unused unicode_path_sep.mp3 2016-12-05 22:04:07 -08:00
xarph
4461835cda sampsyo's better test of unicode path escaping
revert my lame test
2016-12-05 22:03:00 -08:00
Adrian Sampson
ae5e55cad6 Always use syspath to construct MediaFile
Related to #1966. Previously, we used a `syspath` call inside MediaFile, which
probably wasn't right: the constructor should behave like `open` in that we
need to use pass an OS path.
2016-12-04 21:00:56 -05:00
tweitzel
7436f093fe clear trailing whitespace 2016-12-03 17:42:17 -08:00
xarph
87942af4c4 fix line wrapping for py34-flake8 2016-12-03 16:15:40 -08:00
xarph
16056ea6b2 In the changelog note, it should be asciify-paths, not asciify_paths. 2016-12-03 15:47:15 -08:00