Skip to content

Commit

Permalink
v4.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat authored May 1, 2023
2 parents 9da7d5d + 3e8f32f commit 5edc15e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <spotdladmins@googlegroups.com>"]
Expand Down
2 changes: 1 addition & 1 deletion spotdl/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Version module for spotdl.
"""

__version__ = "4.1.9"
__version__ = "4.1.10"
7 changes: 4 additions & 3 deletions spotdl/utils/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import concurrent.futures
import json
import re
import logging
from pathlib import Path
from typing import Dict, List, Optional
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5edc15e

Please sign in to comment.