Updating requirements and fixing small bug

This commit is contained in:
Rafael Vargas
2022-09-16 21:33:09 -03:00
parent ba57a3e18d
commit d10264b97c
5 changed files with 27 additions and 11 deletions

View File

@@ -28,6 +28,12 @@ class Song:
if key in info.keys():
self.__info[key] = info[key]
self.__cleanTitle()
def __cleanTitle(self) -> None:
self.__info['title'] = ''.join(char if char.isalnum() or char ==
' ' else ' ' for char in self.__info['title'])
@property
def source(self) -> str:
if 'url' in self.__info.keys():