simonschellaert / spotify2am

Import your Spotify library into Apple Music
360 stars 68 forks source link

For insert-songs.py to work, it is also necessary to change User-Agent header #5

Open Lotarik opened 9 years ago

Lotarik commented 9 years ago

Without that, the service kept returning 401 error. Of course, the User-Agent needs to be copied from intercepted request, just like with other headers.

TheDigitalOrchard commented 9 years ago

Can you post a sampling of user-agent strings here? If they are consistent, it may be possible to update the script, I imagine.

Lotarik commented 9 years ago

Strings for both my laptop and desktop are the same, since they run on same OS:

iTunes/12.2 (Windows; Microsoft Windows 8 x64 Enterprise Edition (Build 9200); x64) AppleWebKit/7600.5017.0.22

I don't think there is a reliable way to update the script to somehow automatically determine the correct user-agent.

bavan999 commented 9 years ago

Hi!

Thx for the great work, but i get an error trying to run "retrieve-identifiers.py"

~/Desktop/spotify2am-master/retrieve-identifiers.py:3: ImportError: No module named parse

Richard Thygesson Head of Premises & Domestic Service  0706361081 bavan99@gmail.com mailto:bavan99@gmail.com

6 jul 2015 kl. 09:31 skrev Nikola Anusev notifications@github.com:

Strings for both my laptop and desktop are the same, since they run on same OS:

iTunes/12.2 (Windows; Microsoft Windows 8 x64 Enterprise Edition (Build 9200); x64) AppleWebKit/7600.5017.0.22

I don't think there is a reliable way to update the script to somehow automatically determine the correct user-agent.

— Reply to this email directly or view it on GitHub https://github.com/simonschellaert/spotify2am/issues/5#issuecomment-118756413.