Commit graph

6572 commits

Author SHA1 Message Date
Johnny Robeson
ae4fd64d3a Revert "use six.integer_types in library" for now
It will return post bugfix release
This reverts commit 196176f180.
2016-06-20 00:15:28 -04:00
Johnny Robeson
196176f180 use six.integer_types in library 2016-06-19 22:56:14 -04:00
Johnny Robeson
705557a5d2 add six as a new dependency for beets 2016-06-19 22:55:31 -04:00
Johnny Robeson
e1ede6827b replace a filter() on search_ids with a list comp 2016-06-19 22:33:40 -04:00
Johnny Robeson
09322530ca replace 2 map() calls with a list comprehension 2016-06-19 22:30:58 -04:00
Adrian Sampson
b5e1ac7dbf Merge pull request #2056 from dixoncx/fix_issue_185
Fix issue #185
2016-06-19 13:10:57 -07:00
Dixon Xavier
4d75d4c063 Fix lint error 2016-06-20 00:52:09 +05:30
Dixon Xavier
366a6d7fb2 add validation for configuration 2016-06-20 00:35:47 +05:30
Dixon Xavier
80ca527f76 Fix typo in documentation 2016-06-19 13:20:54 +05:30
Dixon Xavier
fbcc8dbf1e Update changelog and documentation 2016-06-19 12:54:27 +05:30
Dixon Xavier
a73ad99dd8 Add new importer configuration to deal with duplicate items 2016-06-19 12:53:37 +05:30
Johnny Robeson
2669b35945 handle bytes in a py3 compatible way in confit
This applies to Subview and Filename.

However, the Filename support isn't complete, since we can't
implicitly convert bytes to strings in py3. Confit doesn't
seem to have a way to handle this.
2016-06-18 03:23:14 -04:00
Johnny Robeson
da5fb85557 only import OrderedDict from collections in confit
This was only necessary in <=2.6
2016-06-18 03:16:33 -04:00
Johnny Robeson
bc88dae726 rework basestring check in BytesQuery
This makes it possible for this query to work in both py2 and py3,
since strings are bytes in py2
2016-06-18 02:35:43 -04:00
Johnny Robeson
33d451ed2d switch basestring for bytes in HumanReadableException
We already check for unicode first, so this shouldn't cause any issues
on py2
2016-06-18 02:14:05 -04:00
Johnny Robeson
66431ab4de treat tag values as strings in ReadWriteTestBase 2016-06-17 23:58:35 -04:00
Johnny Robeson
a1609ec548 use strings for *StorageStyle keys, not bytes 2016-06-17 23:39:17 -04:00
Johnny Robeson
ab27031360 handle byte values when _safe_cast out_type is float 2016-06-17 23:04:14 -04:00
Johnny Robeson
93e510c1c7 remove an unnecessary b' in test_fetchart 2016-06-17 05:26:21 -04:00
Johnny Robeson
4e2c2a9a2e add noqa to py3 type checks
This prevents `F821 undefined name` warnings
2016-06-17 04:03:41 -04:00
Johnny Robeson
1c761c60fb bytstringify extra cover_names in fetchart 2016-06-17 03:37:28 -04:00
Johnny Robeson
7dcf160d0b make sure extract() in art handles bytestring paths 2016-06-17 02:37:08 -04:00
Johnny Robeson
fda3911323 bytestringify touch call in PathQueryTest 2016-06-17 02:00:20 -04:00
Johnny Robeson
4bbfe85c66 is_path_query takes unicode, so do that test_query
This fixes all but one instance that I'm not yet sure how to fix
2016-06-17 01:48:47 -04:00
Johnny Robeson
a0a9e2f22d mark itunes library files as bytestrings 2016-06-17 01:40:16 -04:00
Johnny Robeson
60a961a751 remove an unnecessary .encode() in create_item_fixture 2016-06-17 01:20:42 -04:00
Johnny Robeson
cf5ab2617a reorient bytestring_path code in convert replace_ext 2016-06-17 01:20:42 -04:00
Johnny Robeson
fff0439b06 add missing blank line in mpdstats 2016-06-17 00:09:22 -04:00
Johnny Robeson
12136e1d32 adapt is_url checking for bytestring paths 2016-06-17 00:00:08 -04:00
Johnny Robeson
1088df7242 bytestringify some more paths in test helper 2016-06-16 23:41:21 -04:00
Johnny Robeson
411e4957b0 bytestringify replace_ext in convert plugin 2016-06-16 23:40:59 -04:00
Johnny Robeson
3184599faa compare bytes to bytes in library TemplateTest 2016-06-16 23:18:24 -04:00
Johnny Robeson
b602faabb8 more bytestringification in thumbnails plugin 2016-06-16 23:11:16 -04:00
Johnny Robeson
15c07613bf decode the filename written to .desktop file 2016-06-16 23:04:52 -04:00
Johnny Robeson
52f2ab2547 encode uri passed to hashlib in thumbnails plugin 2016-06-16 23:00:45 -04:00
Johnny Robeson
a903b57dae encode the passwords passed to hashlib in embyupdate 2016-06-16 21:47:10 -04:00
Johnny Robeson
36b3b20422 bytestringify test_lyrics 2016-06-16 21:34:52 -04:00
Jack Wilsdon
cb5db71a61 Merge pull request #2054 from Gondlar/patch-1
Clarify which fields are searched by default
2016-06-16 22:07:13 +01:00
Gondlar
3ea9706f4e Clarify which fields are searched by default 2016-06-16 18:53:55 +02:00
Johnny Robeson
d3d52da012 bytestringify paths in filefilter plugin 2016-06-16 04:08:49 -04:00
Johnny Robeson
fd01faa241 add missing bytestring_path import :( 2016-06-16 04:02:19 -04:00
Johnny Robeson
4e5ac89b2a bytstringify path in _mediafile_fixture 2016-06-16 04:00:43 -04:00
Johnny Robeson
167544bcbe add F405 to flake8 ignore list 2016-06-16 02:43:01 -04:00
Johnny Robeson
cb54955485 more bytecasting in smartplaylist plugin 2016-06-15 23:55:17 -04:00
Johnny Robeson
7c77201857 bytestringify clutter/ignore paths in utils/__init__ 2016-06-15 04:15:36 -04:00
Johnny Robeson
a02a1f0201 cast year ints to str, not bytes in bucket plugin
This seems to work equally well in py2/3
2016-06-15 03:34:03 -04:00
Johnny Robeson
7df59d5e30 catch codecs hex encoding errors too (from binascii)
binascii is used internally by codecs, and I didn't initially know that
2016-06-15 01:13:49 -04:00
Johnny Robeson
0385937647 complete more bytestrings in test_art 2016-06-15 00:10:20 -04:00
Johnny Robeson
be942c4595 complete more bytestrings in test_embedart 2016-06-15 00:10:01 -04:00
Johnny Robeson
4fbad7dd67 bytestringify path in file_filter 2016-06-14 23:17:08 -04:00