Fix #1686: thumbnails using unicode paths

This commit is contained in:
Adrian Sampson 2015-11-02 11:03:43 -08:00
parent f891184f0a
commit a18506f471
2 changed files with 3 additions and 2 deletions

View file

@ -39,8 +39,8 @@ from beets.util.artresizer import ArtResizer, has_IM, has_PIL
BASE_DIR = os.path.join(BaseDirectory.xdg_cache_home, "thumbnails")
NORMAL_DIR = os.path.join(BASE_DIR, "normal")
LARGE_DIR = os.path.join(BASE_DIR, "large")
NORMAL_DIR = util.bytestring_path(os.path.join(BASE_DIR, "normal"))
LARGE_DIR = util.bytestring_path(os.path.join(BASE_DIR, "large"))
class ThumbnailsPlugin(BeetsPlugin):

View file

@ -19,6 +19,7 @@ Fixes:
* :doc:`plugins/fetchart`: Fix a bug where a database reference to a
non-existent album art file would prevent the command from fetching new art.
:bug:`1126`
* :doc:`/plugins/thumbnails`: Fix a crash with Unicode paths. :bug:`1686`
1.3.15 (October 17, 2015)