From 2327b1f6221ccf9be06e2c7ade86c99d781e87f4 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 8 Nov 2024 10:51:44 -0500 Subject: [PATCH] [notifications] Clean up emojis and fix priority --- vrobbler/apps/music/models.py | 2 +- vrobbler/apps/podcasts/models.py | 6 +++++- vrobbler/apps/scrobbles/models.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/vrobbler/apps/music/models.py b/vrobbler/apps/music/models.py index a362a07..ce7a0fd 100644 --- a/vrobbler/apps/music/models.py +++ b/vrobbler/apps/music/models.py @@ -430,7 +430,7 @@ class Track(ScrobblableMixin): @property def strings(self) -> ScrobblableConstants: - return ScrobblableConstants(verb="Listening", tags="headphones") + return ScrobblableConstants(verb="Listening", tags="notes") @property def mb_link(self): diff --git a/vrobbler/apps/podcasts/models.py b/vrobbler/apps/podcasts/models.py index 26d0712..9e56f15 100644 --- a/vrobbler/apps/podcasts/models.py +++ b/vrobbler/apps/podcasts/models.py @@ -11,7 +11,7 @@ from django.urls import reverse from django.utils.translation import gettext_lazy as _ from django_extensions.db.models import TimeStampedModel from podcasts.scrapers import scrape_data_from_google_podcasts -from scrobbles.mixins import ScrobblableMixin +from scrobbles.mixins import ScrobblableConstants, ScrobblableMixin logger = logging.getLogger(__name__) BNULL = {"blank": True, "null": True} @@ -91,6 +91,10 @@ class PodcastEpisode(ScrobblableMixin): def subtitle(self): return self.podcast + @property + def strings(self) -> ScrobblableConstants: + return ScrobblableConstants(verb="Listening", tags="microphone") + @property def info_link(self): return "" diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index adbc76b..7659555 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -1196,7 +1196,7 @@ class Scrobble(TimeStampedModel): data=notify_str.encode(encoding="utf-8"), headers={ "Title": scrobble.media_obj.strings.verb, - "Priority": "default", + "Priority": scrobble.media_obj.strings.priority, "Tags": scrobble.media_obj.strings.tags, }, )