[notifications] Clean up emojis and fix priority
This commit is contained in:
@ -430,7 +430,7 @@ class Track(ScrobblableMixin):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def strings(self) -> ScrobblableConstants:
|
def strings(self) -> ScrobblableConstants:
|
||||||
return ScrobblableConstants(verb="Listening", tags="headphones")
|
return ScrobblableConstants(verb="Listening", tags="notes")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def mb_link(self):
|
def mb_link(self):
|
||||||
|
|||||||
@ -11,7 +11,7 @@ from django.urls import reverse
|
|||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from django_extensions.db.models import TimeStampedModel
|
from django_extensions.db.models import TimeStampedModel
|
||||||
from podcasts.scrapers import scrape_data_from_google_podcasts
|
from podcasts.scrapers import scrape_data_from_google_podcasts
|
||||||
from scrobbles.mixins import ScrobblableMixin
|
from scrobbles.mixins import ScrobblableConstants, ScrobblableMixin
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
BNULL = {"blank": True, "null": True}
|
BNULL = {"blank": True, "null": True}
|
||||||
@ -91,6 +91,10 @@ class PodcastEpisode(ScrobblableMixin):
|
|||||||
def subtitle(self):
|
def subtitle(self):
|
||||||
return self.podcast
|
return self.podcast
|
||||||
|
|
||||||
|
@property
|
||||||
|
def strings(self) -> ScrobblableConstants:
|
||||||
|
return ScrobblableConstants(verb="Listening", tags="microphone")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def info_link(self):
|
def info_link(self):
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
@ -1196,7 +1196,7 @@ class Scrobble(TimeStampedModel):
|
|||||||
data=notify_str.encode(encoding="utf-8"),
|
data=notify_str.encode(encoding="utf-8"),
|
||||||
headers={
|
headers={
|
||||||
"Title": scrobble.media_obj.strings.verb,
|
"Title": scrobble.media_obj.strings.verb,
|
||||||
"Priority": "default",
|
"Priority": scrobble.media_obj.strings.priority,
|
||||||
"Tags": scrobble.media_obj.strings.tags,
|
"Tags": scrobble.media_obj.strings.tags,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user