refactored using the song and src object instead of dict
This commit is contained in:
parent
7b241d8655
commit
e7e315ed42
@ -77,5 +77,11 @@ class Song:
|
||||
return self.json_data[item]
|
||||
|
||||
def __setitem__(self, item, value):
|
||||
if item == "file":
|
||||
self.target.file = value
|
||||
return
|
||||
if item == "path":
|
||||
self.target.path = value
|
||||
return
|
||||
print(item, value)
|
||||
self.json_data[item] = value
|
||||
|
Loading…
Reference in New Issue
Block a user