diff --git a/templates/index.html b/templates/index.html
index 30ded88..b07b25a 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -125,7 +125,7 @@
let currentDownloadId = null;
let eventSource = null;
- const spotifyPattern = /^https?:\/\/open\.spotify\.com\/(track|album|playlist)\/[\w-]+/;
+ const spotifyPattern = /^https?:\/\/open\.spotify\.com\/[^/]+\/(track|album|playlist)\/[\w-]+/;
function validateUrls(text) {
const urls = text.split('\n').filter(u => u.trim());