spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.15k stars 1.58k forks source link

Specific song not recognized despite being recognized in earlier spotdl versions #1763

Closed Forever-A-Hermit closed 1 year ago

Forever-A-Hermit commented 1 year ago

System OS

Windows

Python Version

3.11 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.1.2

Expected Behavior vs Actual Behavior

For the song to be recognized, downloaded, & not produce an error

Steps to reproduce - Ensure to include actual links!

Run:

spotdl download https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e

Traceback

Processing query: https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
LookupError: No results found for song: Kado - Tired Eyes'

Other details

The song is available on Youtube Music at https://music.youtube.com/watch?v=DKu9fWMpK3A

yzalvov commented 1 year ago

Hi @Forever-A-Hermit, make sure YouTube Music is available for your IP address (area). Switching on a VPN service with a proper IP address fixed the issue for me.

Forever-A-Hermit commented 1 year ago

YouTube Music is available for my IP address & I can properly listen to the song manually at the specified YouTube Music URL without using a VPN. I can also download additional songs in my Spotify playlist using the 'sync' command, just not this one. Is it possible something went wrong in my '{filename}.spotdl' file?

yzalvov commented 1 year ago

Hard to tell what's wrong with your particular setup. But my experience with your song URL on a freshly cloned project on macOS is like: Screenshot 2023-03-07 at 23 09 29

Forever-A-Hermit commented 1 year ago

Is it possible something went wrong in my '{filename}.spotdl' file?

I guess that was silly for me to say, as I can't even get it to work with just the download command.

I uninstalled spotdl using this to start fresh:

pip uninstall spotdl
Found existing installation: spotdl 4.1.2
Uninstalling spotdl-4.1.2:
  Would remove:
    c:\users\user\appdata\local\programs\python\python311\lib\site-packages\spotdl-4.1.2.dist-info\*
    c:\users\user\appdata\local\programs\python\python311\lib\site-packages\spotdl\*
    c:\users\user\appdata\local\programs\python\python311\scripts\spotdl.exe
Proceed (Y/n)? Y
  Successfully uninstalled spotdl-4.1.2

Reinstalled using this:

pip install spotdl
Successfully installed spotdl-4.1.2

Then, once again, ran:

spotdl download https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e

Issue persists.

Screenshot of Youtube Music URL https://music.youtube.com/watch?v=DKu9fWMpK3A without using a VPN:

Screenshot 2023-03-07 150928

xnetcat commented 1 year ago

Youtube search results aren't consistent, and can vary across different countries. They can even change even after sending the exact same search request.

That's why some song can be found and some can not.

I will try to patch this for the next release.

xnetcat commented 1 year ago

spotdl download https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e

image

Works fine for me Polish IP, try using vpn with US IP

Forever-A-Hermit commented 1 year ago

What's interesting, & I didn't even realize it until now, is that the song downloaded in earlier spotdl versions had a very weak match on Youtube Music--almost as if the old song was an original (audibly slower) & the one on Youtube now that I linked to is a remix/updated copy. The old copy no longer exists.

If the patch doesn't fix it in the next release, I'll go ahead & test with a VPN with US IP, but I'm not sure how that would change things, considering I am from the US.

xnetcat commented 1 year ago

Should be fixed in v4.1.4

Forever-A-Hermit commented 1 year ago

Should be fixed in v4.1.4

Issue persists.

spotdl -v
4.1.4
spotdl download https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
Processing query: https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
LookupError: No results found for song: Kado - Tired Eyes

Should I try with a VPN now, or would that be rather pointless?

xnetcat commented 1 year ago

Yeah you can give it a try

Forever-A-Hermit commented 1 year ago

From USA VPN, which fails

spotdl download https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
Processing query: https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
Failed to get results for Tired Eyes - Kado, Powfu, Promoting Sounds, vict molina: Expecting value: line 1 column 1
(char 0)
LookupError: No results found for song: Kado - Tired Eyes

From Poland VPN, which works, but with errors

spotdl download https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
Processing query: https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
Failed to get results for Tired Eyes - Kado, Powfu, Promoting Sounds, vict molina: Expecting value: line 1 column 1
(char 0)
Downloaded "Kado - Tired Eyes": https://www.youtube.com/watch?v=DKu9fWMpK3A
xnetcat commented 1 year ago

From USA VPN, which fails

spotdl download https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
Processing query: https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
Failed to get results for Tired Eyes - Kado, Powfu, Promoting Sounds, vict molina: Expecting value: line 1 column 1
(char 0)
LookupError: No results found for song: Kado - Tired Eyes

From Poland VPN, which works, but with errors

spotdl download https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
Processing query: https://open.spotify.com/track/0MSLJOWljfQr067PYyndK9?si=259dacb8a475409e
Failed to get results for Tired Eyes - Kado, Powfu, Promoting Sounds, vict molina: Expecting value: line 1 column 1
(char 0)
Downloaded "Kado - Tired Eyes": https://www.youtube.com/watch?v=DKu9fWMpK3A

Can you upload more logs with --log-level DEBUG? I haven't seen this error before o.O

Forever-A-Hermit commented 1 year ago

Here is the log file output. This is from a USA VPN server.

xnetcat commented 1 year ago

Failed to get results for Tired Eyes - Kado, Powfu, Promoting Sounds, vict molina: Expecting value: line 1 column 1 (char 0)

I meant this one Failed to get results for Tired Eyes - Kado, Powfu, Promoting Sounds, vict molina: Expecting value: line 1 column 1 (char 0) (Poland VPN)

Forever-A-Hermit commented 1 year ago

I cannot reproduce the error using a Poland VPN. Everything works fine with it now, surprisingly.

beh-10257 commented 1 year ago

I have the exact same problem so should I mix and match vpns and check if some of them work

xnetcat commented 1 year ago

I cannot reproduce the error using a Poland VPN. Everything works fine with it now, surprisingly.

That was a debug log indicating that the lyrics provider failed to get the lyrics. You won't see it again.

xnetcat commented 1 year ago

I have the exact same problem so should I mix and match vpns and check if some of them work

For now that's the best option

Forever-A-Hermit commented 1 year ago

That was a debug log indicating that the lyrics provider failed to get the lyrics. You won't see it again.

Ah, it seems like you're right. I got the error message to appear again using a Poland VPN, but the file downloaded just fine.

Poland VPN debug log: https://privatebin.net/?37b4d4e4d0476584#caAFyYTFPCznEaKz4e4ef9J3QBzj5cotgdR8R4CsVEK

I guess the VPN hopping option will have to do for now regarding audio download completion. Hopefully this is able to be resolved in future versions, but it's such a rare occurrence that I can't complain much. Thank you for all your support on this. I really appreciate it.

xnetcat commented 1 year ago

I guess the VPN hopping option will have to do for now regarding audio download completion. Hopefully this is able to be resolved in future versions, but it's such a rare occurrence that I can't complain much. Thank you for all your support on this. I really appreciate it.

Let's pray that youtube finally fixes their shitty search results