Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Save iTMS Music videos with curl [and a patch to clean()]' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Save iTMS Music videos with curl [and a patch to clean()]
Authored by: hypert on Jun 29, '05 12:16:37AM
My script and miller021's seems broken - for me. Is anyone else having a problem this week? I'm getting an error from the part of the script that pipes curl through gunzip. Gunzip is complaining that the STDIN is not in gzip format. I'm not sure what format is coming back from the "UrlBase" URL - it's some binary format.

Does anyone know how to identify the data coming back from that URL?!?

On a different note, I see that my original clean() function got corrupted because of the special/HTML characters. It should look like:


on clean(myString)
	-- Get rid of HTML characters
	set myString to searchReplace(myString, "&", "&")
	set myString to searchReplace(myString, "'", "'")
	return myString
end clean


[ Reply to This | # ]
The clean() function
Authored by: hypert on Jun 29, '05 09:47:36PM
Aaarrgghh!

The characters in clean() keep getting goofed up. In the first replacement, the first ampersand you see should be the HTML representation of an ampersand (which is an ampersand followed by the characters amp;). The second replacement is to replace the HTML representation of a single-quote. So, the first single-quote (inside the double quotes) is actually supposed to be an ampersand followed by #39;.

This will replace the goofy HTML representation of ampersands and single-quotes with the "normal" (ASCII) representations. You can add more to clean() if you come across them, but those are the only ones I've seen so far.

[ Reply to This | # ]

Save iTMS Music videos with curl [and a patch to clean()]
Authored by: codeman38 on Jul 01, '05 11:00:33PM

Yep... used to work for me, but now I'm getting weird binary garbage when the reference URL is loaded. Argh.



[ Reply to This | # ]
Save iTMS Music videos with curl [and a patch to clean()]
Authored by: codeman38 on Jul 01, '05 11:27:30PM

Aha. Apparently it's AES-encrypted now-- using [i]curl -v[/i], I found that the Content-Encoding header includes "x-aes-cbc", and there are "x-apple-twofish-key" and "x-apple-crypto-iv" headers as well.

Now if only someone can find the magic combination to decrypt this...



[ Reply to This | # ]
Doesn't work any more in iTunes 4.9
Authored by: BSS on Jul 03, '05 12:27:41PM

Hope someone will find a way again.



[ Reply to This | # ]
Doesn't work any more in iTunes 4.9
Authored by: fragmentoflight on Jul 06, '05 12:57:18AM

Actually the solution is really really simple, I just don't like posting it so apple doesn't go and fix it right up a day later. Although i have no desire to keep it to myself.... anyone that's wants the solutions, just let me know and i'll email it to you



[ Reply to This | # ]