feat: improved cleanup of song title
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Hellow
2024-04-26 00:23:04 +02:00
parent 90a352153d
commit a015b8918e
3 changed files with 12 additions and 4 deletions

View File

@@ -161,3 +161,8 @@ class Collection(Generic[T]):
def __getitem__(self, item: int):
return self._data[item]
def get(self, item: int, default = None):
if item >= len(self._data):
return default
return self._data[item]