date added
This commit is contained in:
@@ -194,6 +194,7 @@ class ITunesParser:
|
|||||||
# 'Album Artist': '',
|
# 'Album Artist': '',
|
||||||
"Total Time": 0,
|
"Total Time": 0,
|
||||||
"Location": "",
|
"Location": "",
|
||||||
|
"Date Added": track["Date Added"],
|
||||||
}
|
}
|
||||||
|
|
||||||
# Compute information
|
# Compute information
|
||||||
@@ -236,6 +237,11 @@ class ITunesParser:
|
|||||||
if "Album Artist" in track:
|
if "Album Artist" in track:
|
||||||
self._albums[persistent_id]["Album Artist"] = track["Album Artist"]
|
self._albums[persistent_id]["Album Artist"] = track["Album Artist"]
|
||||||
|
|
||||||
|
if "Date Added" in track:
|
||||||
|
if track["Date Added"] < self._albums[persistent_id]["Date Added"]:
|
||||||
|
print(f"Lower date for {akey} - {track['Album']}")
|
||||||
|
self._albums[persistent_id]["Date Added"] = track["Date Added"]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def calc_average(cls, added_value, current_value, nb_values):
|
def calc_average(cls, added_value, current_value, nb_values):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user