瀏覽代碼

[locations] Need to be specific to geolocs

Colin Powell 1 年之前
父節點
當前提交
3d1ad8da3a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"
             )