From 24ae804e7a88a17dcefd0e671eb08e548de14ae8 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 23 Sep 2022 15:41:53 +0200 Subject: [PATCH] Cover quick import fix. --- src/cover/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cover/views.py b/src/cover/views.py index 638f1c06..25663a09 100644 --- a/src/cover/views.py +++ b/src/cover/views.py @@ -158,7 +158,7 @@ def quick_import(request, pk): if url.startswith('%s://%s/' % ( request.scheme, request.get_host())): - cover_id = url.rsplit('/', 1)[-1] + cover_id = url.rstrip('/').rsplit('/', 1)[-1] cover = Image.objects.get(pk=cover_id) else: data = get_import_data(url) -- 2.20.1