fix iTunes
This commit is contained in:
parent
a894b2ae4f
commit
30a127337a
2 changed files with 3 additions and 3 deletions
|
@ -36,12 +36,12 @@ class iTunes(object):
|
||||||
def load_tracks(self):
|
def load_tracks(self):
|
||||||
tracks = []
|
tracks = []
|
||||||
keys = [
|
keys = [
|
||||||
'id', 'name', 'artist', 'album', 'kind', 'year', 'duration', 'size',
|
'id', 'name', 'artist', 'album', 'year', 'duration', 'size',
|
||||||
'sortArtist', 'albumArtist', 'sortAlbumArtist', 'compliation',
|
'sortArtist', 'albumArtist', 'sortAlbumArtist', 'compliation',
|
||||||
]
|
]
|
||||||
for t in self.library['Tracks']:
|
for t in self.library['Tracks']:
|
||||||
track = self.library['Tracks'][t]
|
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 = {}
|
item = {}
|
||||||
for key in keys:
|
for key in keys:
|
||||||
item[key] = track.get({
|
item[key] = track.get({
|
||||||
|
|
|
@ -30,7 +30,7 @@ class Rhythmbox(object):
|
||||||
def load_tracks(self):
|
def load_tracks(self):
|
||||||
tracks = []
|
tracks = []
|
||||||
keys = [
|
keys = [
|
||||||
'id', 'name', 'artist', 'album', 'kind', 'year', 'duration', 'size',
|
'id', 'name', 'artist', 'album', 'year', 'duration', 'size',
|
||||||
'sortArtist', 'albumArtist', 'sortAlbumArtist', 'compliation',
|
'sortArtist', 'albumArtist', 'sortAlbumArtist', 'compliation',
|
||||||
]
|
]
|
||||||
key_map = {
|
key_map = {
|
||||||
|
|
Loading…
Reference in a new issue