From 1d5b91b6e2505d8383698400d48cf7e32dab9d95 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 27 Jan 2025 00:41:03 -0500 Subject: [PATCH] [videos] Fix splitting youtube IDs --- vrobbler/apps/scrobbles/scrobblers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index c1dedd3..f8fa6cc 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/vrobbler/apps/scrobbles/scrobblers.py @@ -300,7 +300,7 @@ def manual_scrobble_from_url(url: str, user_id: int) -> Scrobble: except IndexError: pass - if content_key == "-i" and not item_id: + if content_key == "-i": item_id = url.split("v=")[1].split("&")[0] scrobble_fn = MANUAL_SCROBBLE_FNS[content_key]