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]
|
return [a.name for a in self.aritsts]
|
||||||
|
|
||||||
def __getitem__(self, item):
|
def __getitem__(self, item):
|
||||||
print(item)
|
|
||||||
print(self.json_data)
|
|
||||||
if item not in self.json_data:
|
if item not in self.json_data:
|
||||||
return None
|
return None
|
||||||
return self.json_data[item]
|
return self.json_data[item]
|
||||||
@ -83,5 +81,5 @@ class Song:
|
|||||||
if item == "path":
|
if item == "path":
|
||||||
self.target.path = value
|
self.target.path = value
|
||||||
return
|
return
|
||||||
print(item, value)
|
|
||||||
self.json_data[item] = value
|
self.json_data[item] = value
|
||||||
|
Loading…
Reference in New Issue
Block a user