From bb9259a82a97d6a6e5a0d1d1bcacc30e0b087c44 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 8 Mar 2023 12:51:59 -0500 Subject: [PATCH] Fix splitting scrobble key --- vrobbler/apps/scrobbles/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index d5bc89b..53594f2 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -200,7 +200,9 @@ class ManualScrobbleView(FormView): def form_valid(self, form): - key, item_id = form.cleaned_data.get("item_id").split(" ") + item_str = form.cleaned_data.get("item_id") + key = item_str[:2] + item_id = item_str[3:] data_dict = None if key == "-v":