Fix #1700: Tolerate missing Location in iTunes

This commit is contained in:
Adrian Sampson 2015-11-04 20:11:58 -08:00
parent be49955884
commit 19cf37263d
2 changed files with 4 additions and 1 deletions

View file

@ -94,7 +94,8 @@ class Itunes(MetaSource):
# Make the iTunes library queryable using the path
self.collection = {_norm_itunes_path(track['Location']): track
for track in raw_library['Tracks'].values()}
for track in raw_library['Tracks'].values()
if 'Location' in track}
def sync_from_source(self, item):
result = self.collection.get(util.bytestring_path(item.path).lower())

View file

@ -28,6 +28,8 @@ Fixes:
* :doc:`/plugins/thumbnails`: Fix a crash with Unicode paths. :bug:`1686`
* :doc:`/plugins/embedart`: The ``remove_art_file`` option now works on import
(as well as with the explicit command). :bug:`1662` :bug:`1675`
* :doc:`/plugins/metasync`: Fix a crash when syncing with recent versions of
iTunes. :bug:`1700`
1.3.15 (October 17, 2015)