Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
Merge 9fe3f00 into 506f17f
Browse files Browse the repository at this point in the history
  • Loading branch information
tkem committed Dec 16, 2018
2 parents 506f17f + 9fe3f00 commit 80b05b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mopidy_local_images/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def _extract_images(self, uri, tags):
logger.warn('Error extracting images for %r: %r', uri, e)
# look for external album art
path = translator.local_uri_to_path(uri, self.media_dir)
dirname = os.path.dirname(path)
# replace brackets with character classes for use with glob
dirname = os.path.dirname(path).replace(b'[', b'[[]')
for pattern in self.patterns:
for path in glob.glob(os.path.join(dirname, pattern)):
try:
Expand Down

0 comments on commit 80b05b8

Please sign in to comment.