Browse Source

Fix splitting scrobble key

Colin Powell 2 năm trước cách đây
mục cha
commit
bb9259a82a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      vrobbler/apps/scrobbles/views.py

+ 3 - 1
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":