refactored using the song and src object instead of dict
This commit is contained in:
parent
e7e315ed42
commit
1108768e4c
@ -70,8 +70,6 @@ class Song:
|
||||
return [a.name for a in self.aritsts]
|
||||
|
||||
def __getitem__(self, item):
|
||||
print(item)
|
||||
print(self.json_data)
|
||||
if item not in self.json_data:
|
||||
return None
|
||||
return self.json_data[item]
|
||||
@ -83,5 +81,5 @@ class Song:
|
||||
if item == "path":
|
||||
self.target.path = value
|
||||
return
|
||||
print(item, value)
|
||||
|
||||
self.json_data[item] = value
|
||||
|
Loading…
Reference in New Issue
Block a user