diff --git a/personal_data/notification.py b/personal_data/notification.py index 3323f8b..a2c2821 100644 --- a/personal_data/notification.py +++ b/personal_data/notification.py @@ -8,6 +8,8 @@ from . import mailgun logger = logging.getLogger(__name__) +SOUND_PATH = 'resource/sound/57808__guitarguy1985__carterattack.mp3' +#SOUND_PATH = 'resource/sound/516855__matrixxx__wake-up-01.wav' class NotificationType(enum.Enum): EMAIL = 1 @@ -30,8 +32,8 @@ def play_loud_and_annoying_sound( scraper_name: str, latest_dict: frozendict, ) -> None: - pass - + import playsound3 + playsound3.playsound(SOUND_PATH, block=False) NOTIFICATION_TYPE_TO_NOTIFIER = { NotificationType.EMAIL: send_email_notification, diff --git a/resource/sound/516855__matrixxx__wake-up-01.wav b/resource/sound/516855__matrixxx__wake-up-01.wav new file mode 100644 index 0000000..e75c553 Binary files /dev/null and b/resource/sound/516855__matrixxx__wake-up-01.wav differ diff --git a/resource/sound/57808__guitarguy1985__carterattack.mp3 b/resource/sound/57808__guitarguy1985__carterattack.mp3 new file mode 100644 index 0000000..40641a0 Binary files /dev/null and b/resource/sound/57808__guitarguy1985__carterattack.mp3 differ