Update
This commit is contained in:
@@ -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],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user