[scrobbling] End around for locations

This commit is contained in:
2024-03-12 12:41:00 -04:00
parent c22a306840
commit 651fc7a745
2 changed files with 8 additions and 1 deletions

View File

@ -840,6 +840,9 @@ class Scrobble(TimeStampedModel):
# GeoLocations are a special case scrobble
if mtype == cls.MediaType.GEO_LOCATION:
logger.warn(
f"[scrobbling] use create_or_update_location for GeoLocations"
)
scrobble = cls.create_or_update_location(
media, scrobble_data, user_id
)

View File

@ -353,7 +353,11 @@ def gpslogger_scrobble_location(data_dict: dict, user_id: int) -> Scrobble:
"source": "GPSLogger",
}
scrobble = Scrobble.create_or_update(location, user_id, extra_data)
scrobble = Scrobble.create_or_update_location(
location,
extra_data,
user_id,
)
provider = f"data source: {LOCATION_PROVIDERS[data_dict.get('prov')]}"