fix iTunes

This commit is contained in:
j 2012-09-08 19:43:20 +02:00
parent a894b2ae4f
commit 30a127337a
2 changed files with 3 additions and 3 deletions

View file

@ -36,12 +36,12 @@ class iTunes(object):
def load_tracks(self):
tracks = []
keys = [
'id', 'name', 'artist', 'album', 'kind', 'year', 'duration', 'size',
'id', 'name', 'artist', 'album', 'year', 'duration', 'size',
'sortArtist', 'albumArtist', 'sortAlbumArtist', 'compliation',
]
for t in self.library['Tracks']:
track = self.library['Tracks'][t]
if track.get('kind') in ('MPEG audio file', ) and not track.get('podcast'):
if track.get('Kind') in ('MPEG audio file', ) and not track.get('Podcast'):
item = {}
for key in keys:
item[key] = track.get({

View file

@ -30,7 +30,7 @@ class Rhythmbox(object):
def load_tracks(self):
tracks = []
keys = [
'id', 'name', 'artist', 'album', 'kind', 'year', 'duration', 'size',
'id', 'name', 'artist', 'album', 'year', 'duration', 'size',
'sortArtist', 'albumArtist', 'sortAlbumArtist', 'compliation',
]
key_map = {