[scrobbling] End around for locations
This commit is contained in:
@ -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
|
||||
)
|
||||
|
||||
@ -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')]}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user