[webpages] Async pushing to archivebox
All checks were successful
build / test (push) Successful in 1m52s

This commit is contained in:
2026-06-16 09:27:40 -04:00
parent ab10758f40
commit 83a046111b
6 changed files with 44 additions and 27 deletions

View File

@ -32,6 +32,7 @@ from scrobbles.constants import (
)
from scrobbles.models import Scrobble
from scrobbles.notifications import ScrobbleNtfyNotification
from scrobbles.tasks import push_scrobble_to_archivebox
from scrobbles.utils import (
convert_to_seconds,
extract_domain,
@ -1028,8 +1029,7 @@ def manual_scrobble_webpage(
if action == "stop":
scrobble.stop(force_finish=True)
else:
# possibly async this?
scrobble.push_to_archivebox()
push_scrobble_to_archivebox.delay(scrobble.id)
return scrobble