Explorar el Código

[scrobbles] Try tweaking completion time for tracks

Colin Powell hace 1 año
padre
commit
1fb29304a3
Se han modificado 2 ficheros con 2 adiciones y 3 borrados
  1. 1 1
      vrobbler/apps/music/models.py
  2. 1 2
      vrobbler/apps/scrobbles/constants.py

+ 1 - 1
vrobbler/apps/music/models.py

@@ -404,7 +404,7 @@ class Album(TimeStampedModel):
 
 
 class Track(ScrobblableMixin):
-    COMPLETION_PERCENT = getattr(settings, "MUSIC_COMPLETION_PERCENT", 90)
+    COMPLETION_PERCENT = getattr(settings, "MUSIC_COMPLETION_PERCENT", 95)
 
     class Opinion(models.IntegerChoices):
         DOWN = -1, "Thumbs down"

+ 1 - 2
vrobbler/apps/scrobbles/constants.py

@@ -15,8 +15,7 @@ PLAY_AGAIN_MEDIA = {
 }
 
 MEDIA_END_PADDING_SECONDS = {
-    "Video": 1800,  # 30 min
-    "Track": 1,  # 1 second
+    "Video": 3600,  # 60 min
 }
 
 EXCLUDE_FROM_NOW_PLAYING = ("GeoLocation",)