Notes


Patch iTunes Radio support back in

If you’re using an older version of iTunes (10.6.3 in my case) you have probably noticed that the Radio part is gone, due to the fact that Apple’s Kerbango Tuning Service (KTS) was turned off. The address iTunes tries to contact is pri.kts-af.net, and that’s not working as expected anymore. Some kind soul has provided an alternate KTS server at pri.kts-af.org, but you’ll still need to patch the iTunes binary to work with the new hostname.

Here’s an one-liner that replaces two occurrences of pri.kts-af.net with pri.kts-af.org inside the binary (and preserving a backup copy of the binary in case something goes wrong, named iTunes_orig:

$ mv /Applications/iTunes.app/Contents/MacOS/iTunes /Applications/iTunes.app/Contents/MacOS/iTunes_orig && hexdump -ve '1/1 "%.2X"' "/Applications/iTunes.app/Contents/MacOS/iTunes_orig" | sed "s/7072692E6B74732D61662E6E6574/7072692E6B74732D61662E6F7267/g" | xxd -r -p > "/Applications/iTunes.app/Contents/MacOS/iTunes" && chmod +x "/Applications/iTunes.app/Contents/MacOS/iTunes"

7072692E6B74732D61662E6E6574 is pri.kts-af.net in hex and 7072692E6B74732D61662E6F7267 is hex for pri.kts-af.org. It should work with older iTunes versions but I haven’t tested those.