simonschellaert / spotify2am

Import your Spotify library into Apple Music
368 stars 71 forks source link

"Continous" Adding track does not seem to work - iTunes Api Old Version? #27

Open benmarten opened 9 years ago

benmarten commented 9 years ago

Looks like apple has update their api, does it still work for you guys?

When adding a song I am seeing this:

screen shot 2015-09-05 at 22 10 20

Here are my headers:

headers = {
    "X-Apple-Store-Front" : "143446-10,32 ab:rSwnYxS0",
    "Client-iTunes-Sharing-Version" : "3.12",
    "Accept-Language" : "nl-nl, nl;q=0.83, fr-fr;q=0.67, fr;q=0.50, en-us;q=0.33, en;q=0.17",
    "Client-Cloud-DAAP-Version" : "1.0/iTunes-12.2.0.145",
    "Accept-Encoding" : "gzip",
    "X-Apple-itre" : "0",
    "Client-DAAP-Version" : "3.13",
    "User-Agent" : "iTunes/12.2.2 (Macintosh; OS X 10.10.5) AppleWebKit/600.8.9",
    "Connection" : "keep-alive",
    "Content-Type" : "application/x-dmap-tagged",
    # Replace the values of the next three headers with the values you intercepted
    "X-Dsid": "...",
    "Cookie": "...",
    "X-Guid": "...",
    "Content-Length" : "77"
}

Looks like there is a newer version of the api out there already?

"Client-Cloud-DAAP-Version": "1.0/iTunes-12.2.2.25",
benmarten commented 9 years ago

Hm, second try it worked... let's close for now...

benmarten commented 9 years ago

So here it is again... Any ideas???

screen shot 2015-09-08 at 16 02 04
sircodesalittle commented 8 years ago

If you continually have "Something went wrong while inserting : HTTP Error 401: Apple WebObjects" make sure you check that the rest of the header data in insert-songs.py matches what you get from your recorded session (I had to change a few more than what's specified in the readme).