Closed Flova closed 5 years ago
I also had look on the issue #420, but it didn't solve this behavior.
So are you IPv4 only? I'd like you to confirm whether you can reach IPv6 sites here https://test-ipv6.com/, just to be sure.
My connection supports full dual stack (confirmed with your link), with IPv4 and IPv6. After i read your first answer to #420 i tried to set IPv4 as preferred protocol, which didn't solve the Problem.
A interesting behavior is, that after a restart the tool downloads the next few songs (including the ones that previously stuck) before stopping again.
Quite obvious but mentionable: It hangs at self._sslobj.do_handshake()
every time I terminate it.
I see. I don't know much about how IPv6 works and there's nothing I can test IPv6 with at the moment.
So, from the log it gets stuck while making an SSL handshake with http://lyrics.wikia.com. Lyricwikia python library uses HTTPS but since the website itself doesn't support HTTPS, changing it to use HTTP shouldn't make a difference.
That said, this Python code would probably behave the same (getting stuck 1/5 times). Could you try it out:
import lyricwikia
# some songs to test against
lyricwikia.get_lyrics("Alan Walker", "Faded")
lyricwikia.get_lyrics("Against_The_Current", "Gravity")
lyricwikia.get_lyrics("Porter Robinson & Madeon", "Shelter")
lyricwikia.get_lyrics("Marshmello & Bastille", "Happier")
And what if you now replace the url to use HTTP:
import lyricwikia
lyricwikia.lyricwikia.__BASE_URL__ = "http://lyrics.wikia.com"
# some songs to test against
lyricwikia.get_lyrics("Alan Walker", "Faded")
lyricwikia.get_lyrics("Against_The_Current", "Gravity")
lyricwikia.get_lyrics("Porter Robinson & Madeon", "Shelter")
lyricwikia.get_lyrics("Marshmello & Bastille", "Happier")
Does it still get stuck with HTTP?
Sorry i had some busy days. Maybe i am able to test it today.
I just tested the lyricwikia package. Ironically both tests worked absolutely fine... It downloaded the Lyrics via HTTPS and HTTP, while the same song at the same time hang in the playlist download.
Dats weird. Let's try using HTTP in the code anyway. See if adding this line:
lyricwikia.lyricwikia.__BASE_URL__ = "http://lyrics.wikia.com"
just after the import lyricwikia
line here:
https://github.com/ritiek/spotify-downloader/blob/b72eb773f3981d0f27b85792002845ecf0b69911/spotdl/spotify_tools.py#L3-L4
makes any difference.
I tried it and the same error occurs. Now I deactivated the Lyrics manually in the code. Should I maybe add an config parameter for it?
What is the purpose of your issue?
Description
Hi, Sometimes when I try to download a playlist, the tool freezes, while fetching the lyrics. This happens only at a few songs, like one of five. I also had look on the issue #420, but it didn't solve this behavior. Terminating the tool by hand shows the following log.
Thanks Flova
Log