refactored using the song and src object instead of dict

This commit is contained in:
Lars Noack 2022-11-22 12:46:45 +01:00
parent 7b241d8655
commit e7e315ed42

View File

@ -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