Commits

Anonymous committed e9c0910

Fix zero length field error under Python 2.6

* missing.py (_missing): add field indexes to format spec
* duplicates.py (commands): add field indexes to format spec

  • Participants
  • Parent commits 0b9cd1d

Comments (0)

Files changed (2)

File beetsplug/duplicates.py

                     fmt = '$albumartist - $album'
                 else:
                     fmt = '$albumartist - $album - $title'
-                fmt += ': {}'
+                fmt += ': {0}'
 
             for obj_id, obj_count, objs in _duplicates(items, full):
                 if obj_id:  # Skip empty IDs.

File beetsplug/missing.py

         for track_info in getattr(album_info, 'tracks', []):
             if track_info.track_id not in item_mbids:
                 item = _item(track_info, album_info, album.id)
-                log.debug('{}: track {} in album {}'
+                log.debug('{0}: track {1} in album {2}'
                           .format(PLUGIN,
                                   track_info.track_id,
                                   album_info.album_id))