soporta URLs de Spotify con prefijo de idioma (intl-es, intl-pt, etc.)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,7 @@ templates = Jinja2Templates(directory="app/templates")
|
|||||||
_VALID_TYPES = {"playlist", "album", "artist", "track"}
|
_VALID_TYPES = {"playlist", "album", "artist", "track"}
|
||||||
|
|
||||||
_URI_RE = re.compile(r"spotify:(playlist|album|artist|track):([A-Za-z0-9]+)")
|
_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}$")
|
_BARE_ID_RE = re.compile(r"^[A-Za-z0-9]{22}$")
|
||||||
|
|
||||||
_TYPE_LABELS = {
|
_TYPE_LABELS = {
|
||||||
|
|||||||
Reference in New Issue
Block a user