diff --git a/pyproject.toml b/pyproject.toml index 409b53faa..c9e854b33 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "spotdl" -version = "4.1.9" +version = "4.1.10" description = "Download your Spotify playlists and songs along with album art and metadata" license = "MIT" authors = ["spotDL Team "] diff --git a/spotdl/_version.py b/spotdl/_version.py index a50146c5d..8164b3862 100644 --- a/spotdl/_version.py +++ b/spotdl/_version.py @@ -2,4 +2,4 @@ Version module for spotdl. """ -__version__ = "4.1.9" +__version__ = "4.1.10" diff --git a/spotdl/utils/search.py b/spotdl/utils/search.py index 7f0dfa4bf..0fe11285d 100644 --- a/spotdl/utils/search.py +++ b/spotdl/utils/search.py @@ -7,6 +7,7 @@ import concurrent.futures import json +import re import logging from pathlib import Path from typing import Dict, List, Optional @@ -123,6 +124,9 @@ def get_simple_songs( for request in query: logger.info("Processing query: %s", request) + # Remove /intl-xxx/ from Spotify URLs with regex + request = re.sub(r"\/intl-\w+\/", "/", request) + if ( ("youtube.com/watch?v=" in request or "youtu.be/" in request) and "open.spotify.com" in request @@ -196,9 +200,6 @@ def get_simple_songs( song.download_url = ytm_list.songs[index].download_url lists.append(spot_list) - elif "open.spotify.com/intl-" in request and "track" in request: - request = request.split("/intl-")[0] + "/track" + request.split("/track")[1] - songs.append(Song.from_url(url=request)) elif "open.spotify.com" in request and "track" in request: songs.append(Song.from_url(url=request)) elif "https://spotify.link/" in request: