We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf1702 commit 40f6f7aCopy full SHA for 40f6f7a
spotdl/parsers/query_parser.py
@@ -49,14 +49,14 @@ def parse_request(
49
) -> List[SongObject]:
50
song_list: List[SongObject] = []
51
if (
52
- "youtube.com/watch?v=" in request
+ ("youtube.com/watch?v=" in request or "youtu.be/" in request)
53
and "open.spotify.com" in request
54
and "track" in request
55
and "|" in request
56
):
57
urls = request.split("|")
58
59
- if len(urls) <= 1 or "youtube" not in urls[0] or "spotify" not in urls[1]:
+ if len(urls) <= 1 or "youtu" not in urls[0] or "spotify" not in urls[1]:
60
print("Incorrect format used, please use YouTubeURL|SpotifyURL")
61
else:
62
print("Fetching YouTube video with spotify metadata")
0 commit comments