From 75e374bb69a4858327cc5cdf750a3b3af4037bba Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sat, 10 Feb 2024 15:23:37 -0500 Subject: [PATCH] [locations] Do not mark geolocs complete automatically --- vrobbler/apps/scrobbles/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vrobbler/apps/scrobbles/utils.py b/vrobbler/apps/scrobbles/utils.py index e7c419f..293ff72 100644 --- a/vrobbler/apps/scrobbles/utils.py +++ b/vrobbler/apps/scrobbles/utils.py @@ -92,6 +92,12 @@ def check_scrobble_for_finish( scrobble: "Scrobble", force_to_100=False, force_finish=False ) -> None: completion_percent = scrobble.media_obj.COMPLETION_PERCENT + if scrobble.media_type == "GeoLocation": + logger.info( + f"{scrobble.id} not complete, GeoLocs are completed when new one is created" + ) + return + if scrobble.percent_played >= completion_percent or force_finish: logger.info(f"{scrobble.id} finished at {scrobble.percent_played}") scrobble.playback_position_seconds = (