[notifications] Clean up emojis and fix priority
This commit is contained in:
@ -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):
|
||||
|
||||
@ -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 ""
|
||||
|
||||
@ -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,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user