ソースを参照

[notifications] Clean up emojis and fix priority

Colin Powell 7 ヶ月 前
コミット
2327b1f622

+ 1 - 1
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):

+ 5 - 1
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 ""

+ 1 - 1
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,
                 },
             )