simonschellaert / spotify2am

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

Errno 61 - Connection refused #8

Open sep2345 opened 9 years ago

sep2345 commented 9 years ago

Hello, Got this going relatively easily but when inserting the playlist into Apple Music the first song inserted successfully but then the remaining ones gave an Errno 61. See below. Not sure what's up. The only deviating from your instructions was that the Headers came from ID-7 not ID-4 as in your description. Pretty sure SSL Proxy is working properly too. I was able to extract the needed headers from ID-7 and place in the insert-songs.py source. Any ideas what went wrong? Thanks for everything so far!

-Scott

Successfuly inserted a song! Something went wrong while inserting 319136607 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 505043366 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 505043409 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 582961193 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 925559305 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 418606885 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 690820139 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 714615837 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 605378882 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 342312349 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 829910927 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 829910927 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 829910927 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 829910927 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 257374174 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 200923494 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 884219013 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 153444846 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 153444846 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 947421436 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 941583036 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 291917674 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 944020126 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 700689873 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 309858759 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 850380096 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 850380091 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 497410040 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 301537185 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 928428141 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 891452572 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 891452577 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 891452572 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 672805896 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 350322526 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 699607089 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 573885278 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 971828530 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 936832279 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 964545871 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 928428141 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 928428141 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 928428141 : <urlopen error [Errno 61] Connection refused> Something went wrong while inserting 928428141 : <urlopen error [Errno 61] Connection refused>

sep2345 commented 9 years ago

Ran the script again (no changes made) a few hours later... This time it appeared to insert all 45 songs! Yea!!! But looking in my iTunes library (My Music), only 17 news songs are showing and many are incorrect: Same or similar song title but wrong artist (ie American Girl by Tom Petty was inserted as American Girl by Bonny McKee). Anyways, I'm still pretty impressed with your scripts but I'm wondering if there is anything I can do differently on my end to improve the matching accuracy? Thanks again! Best Regards, Scott

TheDigitalOrchard commented 9 years ago

Seems like you were hitting the API rate-limiting?

xyng commented 9 years ago

I had this issue too and am pretty sure that this is due to "Charles" disabling the proxy after 30 minutes which then cuts your connection. After really closing it and checking that there is no more proxy (or a correct one at least) everything seems to go well.

sep2345 commented 9 years ago

Thanks "TheDigitalOrchard" and "xyng" for your replies! Very much appreciated. I think you are right, xyng, about Charles cutting the connection after 30 mins. I quit Charles and when I came back to my computer a couple of hours later, the script ran fine. The problem now is that the song matching is not very good in my case. I wonder if I'm having issues with the "retrieve-identifiers.py" script. I will start a new thread to discuss this problem. Thanks again...