|
@@ -149,17 +149,12 @@ def emacs_webhook(request):
|
|
|
post_data, user_id, started=task_in_progress, stopped=task_stopped
|
|
|
)
|
|
|
|
|
|
- if scrobble and task_in_progress:
|
|
|
- if post_data.get("notes"):
|
|
|
- scrobble = emacs_scrobble_update_task(
|
|
|
- post_data.get("source_id"),
|
|
|
- post_data.get("notes"),
|
|
|
- user_id,
|
|
|
- )
|
|
|
- if scrobble:
|
|
|
- return Response(
|
|
|
- {"scrobble_id": scrobble.id}, status=status.HTTP_200_OK
|
|
|
- )
|
|
|
+ if scrobble and task_in_progress and post_data.get("notes"):
|
|
|
+ emacs_scrobble_update_task(
|
|
|
+ post_data.get("source_id"),
|
|
|
+ post_data.get("notes"),
|
|
|
+ user_id,
|
|
|
+ )
|
|
|
|
|
|
if not scrobble:
|
|
|
logger.info(
|