Ver Fonte

[locations] Need to be specific to geolocs

Colin Powell há 1 ano atrás
pai
commit
3d1ad8da3a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      vrobbler/apps/scrobbles/models.py

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

@@ -830,7 +830,7 @@ class Scrobble(TimeStampedModel):
             )
             return scrobble.update(scrobble_data)
 
-        if scrobble:
+        if scrobble and scrobble.media_type == "GeoLocation":
             logger.info(
                 f"[scrobbling] stopping existing scrobble {scrobble.id} before creating new one"
             )