[notifications] Clean up emojis and fix priority

This commit is contained in:
2024-11-08 10:51:44 -05:00
parent 94fed8ae38
commit 2327b1f622
3 changed files with 7 additions and 3 deletions

View File

@ -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):

View File

@ -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 ""

View File

@ -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,
},
)