Commit graph

7166 commits

Author SHA1 Message Date
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
xarph
fa9cc0ab5f changelog note for unidecode/asciify_paths path separator fixes. 2016-12-03 15:35:26 -08:00
xarph
edd34267c6 modify DestinationTest.test_asciify_and_replace to include unicode
titles that decode to path separator.

Added an empty .mp3 file with problematic characters for asciify_paths
in id3v2 tags for future tests if needed.
2016-12-03 15:29:27 -08:00
xarph
fcc6c6bc80 Merge branch 'master' of https://github.com/beetbox/beets 2016-12-03 14:53:02 -08:00
Adrian Sampson
991c9936fd Fix #2299: non-Unicode logging in badfiles 2016-12-03 11:20:06 -05:00
Adrian Sampson
957bfacf21 Fix Backbone.js link 2016-11-30 08:40:15 -05:00
Adrian Sampson
d08baa4c91 Merge pull request #2295 from musoke/patch-1
Fix rst syntax error in docs
2016-11-28 18:12:38 -05:00
Nathan Musoke
0701e66391 Fix rst syntax error in docs 2016-11-29 12:11:12 +13: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
d8c0a42e6c Avoid TestHelper dependency in MediaFile tests
Part of #1966. This also introduces a nicer, more lightweight way to create and
destroy temporary directories, decoupling that functionality from the
giant morass that is TestHelper.
2016-11-26 18:55:58 -05:00
Adrian Sampson
a88682e7bb Undo from _common import unittest indirection
This was a vestige from when we used to need the unittest2 library for pre-2.7
compatibility. Now that we require Python 2.7, we aren't using that library
and this indirection wasn't doing any good.
2016-11-26 18:46:44 -05:00
Adrian Sampson
24940c0de7 In MediaFile tests, use simpler import path
This will make it easier to copy these tests into their own repository.
2016-11-26 18:27:20 -05:00
Adrian Sampson
788654736d Obviate the need for a beets utility in MF tests
Even more on #1966.
2016-11-26 18:26:18 -05:00
Adrian Sampson
47049e1ff1 Avoid one last beets utility in MediaFile tests
This is a little dirty, what with the hard-coded encoding, but I don't feel
too bad about it because we're only manipulating our test fixtures and
temporary directory that way.

More on #1966.
2016-11-26 18:23:46 -05:00
Adrian Sampson
54cb0b2a15 Separate beets-specific MediaFile tests
Part of the #1966 separation effort.
2016-11-26 18:08:00 -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
c70a9bb873 Enable Python 3 tests by default in Tox config
Now that we're supporting it, I plan to run the Python 3 tests as part of
my normal coding workflow.
2016-11-26 17:32:49 -05:00
Adrian Sampson
fc6658c110 Add a missing __future__ import 2016-11-26 17:31:54 -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
839a316673 Change released version to 1.4.1
Sadly, I uploaded the wrong file to PyPI for 1.4.0. Once you do this, PyPI
never lets you change the file associated with a given released version. So we
need to use 1.4.1 instead. 😢
2016-11-25 22:13:54 -05:00
Adrian Sampson
60ec732e10 Version bump: 1.4.1 2016-11-25 21:38:06 -05:00
Adrian Sampson
d99b46612f Fix version bumping in release.py 2016-11-25 21:37:25 -05:00
Adrian Sampson
d54ef99ea5 Fix a forgotten test 2016-11-25 21:33:44 -05:00
Adrian Sampson
8d902c0da3 Release date for 1.4.0 2016-11-25 21:29:06 -05:00
Adrian Sampson
9fb358d3c0 Even more little changelog fixes 2016-11-25 21:28:41 -05:00
Adrian Sampson
e15bee15f5 More changelog proofreading 2016-11-25 21:11:54 -05:00
Adrian Sampson
55d9233e39 Capitalize Python 2016-11-25 21:06:01 -05:00
Adrian Sampson
bdfa53c503 Changelog updates and proofreading 2016-11-25 21:05:34 -05:00