question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong versions of the songs are getting downloaded

See original GitHub issue

System OS

Windows

Python Version

3.10 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.0.0-rc.2

Expected Behavior vs Actual Behavior

I wanted to download a playlist of around 350 songs. A lot of them downloaded without any problems, but some were completely different songs and some were the clean versions of explicit songs.

For example if I want to download this song “https://open.spotify.com/track/2LTlO3NuNVN70lp2ZbVswF?si=f844d42abbdf4700”, even if the song is explicit I get the clean version. There were also songs like “https://open.spotify.com/track/4u7EnebtmKWzUH433cf5Qv?si=cde697f5c6c84a04” which I downloaded and got completely different versions or live performance versions.

I’ve tried to put “–search-query explicit” and it didn’t get fixed (the same song got downloaded).

This is just one of the songs but a large amount of songs were the clean versions or completely different versions.

Steps to reproduce - Ensure to include actual links!

  1. I opened cmd
  2. I’ve typed this command “spotdl download “https://open.spotify.com/playlist/7aUvyg8JGeHNgSPG8ixMwi?si=d8faa48c068f4b81” --format mp3 --output E:\Skinute_pesme\ –bitrate 320k --lyrics genius”
  3. I’ve tried typing this too “spotdl download “https://open.spotify.com/playlist/7aUvyg8JGeHNgSPG8ixMwi?si=d8faa48c068f4b81” --format mp3 --output E:\Skinute_pesme\ –bitrate 320k --lyrics genius --search-query explicit”
  4. Some songs downloaded correctly, but a large amount of them didn’t

Traceback

I don't have the output because I closed cmd but everything was fine and 95% of the songs were downloaded (one said something along the lines of "failed metadata transfer" and some of them didn't even download cause it couldn't find them).

Other details

I’ve downloaded Python through this website “https://www.python.org/” like it said in the guide. I’m sorry if this is not an issue with the program and it’s actually my fault but I don’t have any experience with stuff like this.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xnetcatcommented, Nov 6, 2022

I’ve fixed some issues with matching, but some songs still can’t be matched correctly because of how youtube implemented searching

Reference: https://www.youtube.com/howyoutubeworks/product-features/search/

Or because of mismatching metadata in some songs.

For example here youtube incorrectly shows the duration, the actual duration of the song is only available when playing the song image

Since v4.0.2 spotdl will be better at rejecting wrong matches, this will allow users to use other audio providers as a fallback (in some edge cases youtube is better than youtube-music in matching).

If you want the best possible matches you can use cookies for youtube-music to get more “personalized” matches.

0reactions
xnetcatcommented, Nov 6, 2022

If anyone still has issues with wrong songs being downloaded after updating to v4.0.2 please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apple Music playing wrong versions of songs
We see you have some questions about song versions in Apple Music, and we'd like to see if we can help. We'd like...
Read more >
Songs randomly becoming the wrong version : r/AppleMusic
So I've noticed recently that songs in Apple Music randomly change into the wrong versions. I've got about 1500 songs, at least 500+...
Read more >
Wrong Version of Song - The Spotify Community
When I try to play that album, even though I've supposedly downloaded it to my device, some of the versions that play are...
Read more >
HD songs linked to the wrong version
Going through my main playlist, I've noticed that two songs play the wrong version of the track now, i.e. censored vs uncensored.
Read more >
Top 9 Ways to Fix YouTube Music Not Downloading Playlist ...
A simple search on YouTube and YouTube Music app shows that the song is gone, but another version is available. I suggest you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found