Commits

Lucas Duailibe committed eb76f40

fixing things

  • Participants
  • Parent commits 791f7d9

Comments (0)

Files changed (3)

File beets/ui/commands.py

                 item.read()
             except Exception as exc:
                 log.error(u'error reading {0}: {1}'.format(
-                    repr(item.path), exc))
+                    displayable_path(item.path), exc))
                 continue
 
             # Special-case album artist when it matches track artist. (Hacky

File beetsplug/embedart.py

 from beets import mediafile
 from beets import ui
 from beets.ui import decargs
-from beets.util import syspath, normpath
+from beets.util import syspath, normpath, displayable_path
 from beets.util.artresizer import ArtResizer
 from beets import config
 
             f = mediafile.MediaFile(syspath(item.path))
         except mediafile.UnreadableFileError as exc:
             log.warn('Could not embed art in {0}: {1}'.format(
-                repr(item.path), exc
+                displayable_path(item.path), exc
             ))
             continue
         f.art = data
     try:
         mf = mediafile.MediaFile(syspath(item.path))
     except mediafile.UnreadableFileError as exc:
-        log.error('Could not extract art from {0}: {1}'.format(
-            repr(item.path), exc
+        log.error(u'Could not extract art from {0}: {1}'.format(
+            displayable_path(item.path), exc
         ))
         return
 
         try:
             mf = mediafile.MediaFile(syspath(item.path))
         except mediafile.UnreadableFileError as exc:
-            log.error('Could not clear art from {0}: {1}'.format(
-                repr(item.path), exc
+            log.error(u'Could not clear art from {0}: {1}'.format(
+                displayable_path(item.path), exc
             ))
             continue
         mf.art = None

File beetsplug/mbsync.py

                 item.write()
             except Exception as exc:
                 log.error(u'could not sync {0}: {1}'.format(
-                    repr(item.path), exc))
+                    util.displayable_path(item.path), exc))
                 return False
         lib.store(item)