(back) Add location for albums
This commit is contained in:
@@ -192,7 +192,8 @@ class ITunesParser:
|
||||
'Avg Bit Rate': track['Bit Rate'],
|
||||
'Min Bit Rate': track['Bit Rate'],
|
||||
# 'Album Artist': '',
|
||||
'Total Time': 0
|
||||
'Total Time': 0,
|
||||
'Location': ''
|
||||
}
|
||||
|
||||
# Compute information
|
||||
@@ -207,6 +208,8 @@ class ITunesParser:
|
||||
self._albums[akey]['Play Count'] += play_count
|
||||
self._albums[akey]['Total Time'] += total_time
|
||||
|
||||
self._albums[akey]['Location'] = os.path.dirname(track['Location'])
|
||||
|
||||
if self._albums[akey]['Min Bit Rate'] > track['Bit Rate']:
|
||||
self._albums[akey]['Min Bit Rate'] = track['Bit Rate']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user