Sometimes the download hangs
Opened this issue · 6 comments
Once in a while a song doesn't complete the download and the download stays at a certain point.
I had it with a song from Sting, R Kelly and Queen.
The Queen song is spotify:track:1lCRw5FEZ1gPDNPzy1K4zW.
Doe you have any idea what this could be?
Otherwise the program is top.
Hi,
is it only with this song? Are you able to download it with you spotify app on mobile device or spotify-application on pc?
I can download the songs ok to my phone for offline listening. It's not only the queen song, but another one from Sting - Desert rose : spotify:track:0QFqIyJJ5BdOHyKBVW90I6.
It always stops at the same position.
Okay,
I will try and look into this and will report back ;)
Edit:
I could reproduce it. I will look into code will look if I can do sth.
Hi guys, is there any update with this issue? i face it as well? cant figure out why it happens from the code. any idea?
I've narrowed it down to the point that session.PlayerLoad(track) is having an error. still looking for help
Guys, the issue is that by default Downtify tries to stream the track in 320kbps, however some of the tracks seem not to be available in that quality. I tested for the same track, adding the following line before loading, and it seems to prove the point
in SpotifyDownloader.cs :
this does not work and hangs as before
session.PreferredBitrate(BitRate._320k);
session.PlayerLoad(track);
session.PlayerPlay(true);
and the following seem to work like a charm
session.PreferredBitrate(BitRate._160k); //<- solution
session.PlayerLoad(track);
session.PlayerPlay(true);
The only problem now is to figure out how to dynamically set the bitrate to 160 if 320 does not work.