mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 02:24:33 +01:00
badfiles: Python 3 compatibility
Discovered while working on #2428 that we were using an implicit bytes-to-str conversion on the extension. This broke dict lookup on Python 3.
This commit is contained in:
parent
0131ce263d
commit
0216ef294a
2 changed files with 2 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ class BadFiles(BeetsPlugin):
|
|||
ui.colorize('text_error', dpath)))
|
||||
|
||||
# Run the checker against the file if one is found
|
||||
ext = os.path.splitext(item.path)[1][1:]
|
||||
ext = os.path.splitext(item.path)[1][1:].decode('utf8', 'ignore')
|
||||
checker = self.get_checker(ext)
|
||||
if not checker:
|
||||
self._log.debug(u"no checker available for {}", ext)
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ Fixes:
|
|||
* :doc:`/plugins/mpdstats`: Fix Python 3 compatibility. The plugin also now
|
||||
requires version 0.4.2 or later of the ``python-mpd2`` library. :bug:`2405`
|
||||
* :doc:`/plugins/mpdstats`: Improve handling of mpd status queries.
|
||||
* :doc:`/plugins/badfiles`: Fix Python 3 compatibility.
|
||||
|
||||
|
||||
1.4.3 (January 9, 2017)
|
||||
|
|
|
|||
Loading…
Reference in a new issue