From d47f6f4a5239ccbee76d92fdc4ed066c6693379a Mon Sep 17 00:00:00 2001 From: David Inostroza Date: Thu, 23 Apr 2026 17:55:45 -0400 Subject: [PATCH] soporta URLs de Spotify con prefijo de idioma (intl-es, intl-pt, etc.) Co-Authored-By: Claude Sonnet 4.6 --- app/routers/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/admin.py b/app/routers/admin.py index 1dcd157..e455d89 100644 --- a/app/routers/admin.py +++ b/app/routers/admin.py @@ -20,7 +20,7 @@ templates = Jinja2Templates(directory="app/templates") _VALID_TYPES = {"playlist", "album", "artist", "track"} _URI_RE = re.compile(r"spotify:(playlist|album|artist|track):([A-Za-z0-9]+)") -_URL_RE = re.compile(r"open\.spotify\.com/(playlist|album|artist|track)/([A-Za-z0-9]+)") +_URL_RE = re.compile(r"open\.spotify\.com/(?:[a-z-]+/)?(playlist|album|artist|track)/([A-Za-z0-9]+)") _BARE_ID_RE = re.compile(r"^[A-Za-z0-9]{22}$") _TYPE_LABELS = {