This commit is contained in:
2022-12-10 21:58:23 +01:00
parent e0445f621e
commit 4dc22faeee
3 changed files with 5 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ class SongNotification(UserNotification):
url = NSURL.URLWithString_(f"file://{song.cover_path}")
err = None
atachement = (
attachment = (
UNNotificationAttachment.attachmentWithIdentifier_URL_options_error_(
"",
url,
@@ -68,7 +68,7 @@ class SongNotification(UserNotification):
if err:
print(err)
atachement = None
attachment = None
if top2000:
title = f"{top2000.position}: {song.title}"
@@ -78,5 +78,5 @@ class SongNotification(UserNotification):
self.create_notification(
title,
song.artist,
attachments=[atachement],
attachments=[attachment],
)