[notfications] Dont send ntfy on non-titled geolocations
All checks were successful
build / test (push) Successful in 2m7s

This commit is contained in:
2026-06-04 10:44:21 -04:00
parent 415b32bdc7
commit 811e9c1ce9
2 changed files with 44 additions and 2 deletions

View File

@ -1529,7 +1529,12 @@ class Scrobble(TimeStampedModel):
scrobble_data: dict,
) -> "Scrobble":
scrobble = cls.objects.create(**scrobble_data)
ScrobbleNtfyNotification(scrobble).send()
if not (
scrobble.media_type == cls.MediaType.GEO_LOCATION
and scrobble.media_obj
and not scrobble.media_obj.title
):
ScrobbleNtfyNotification(scrobble).send()
return scrobble
def stop(self, timestamp=None, force_finish=False) -> None: