{"id":6,"date":"2005-01-05T15:30:30","date_gmt":"2005-01-05T15:30:30","guid":{"rendered":"http:\/\/alephnaught.wordpress.com\/2005\/01\/05\/hacking-the-itunes-music-library\/"},"modified":"2005-01-05T15:30:30","modified_gmt":"2005-01-05T15:30:30","slug":"hacking-the-itunes-music-library","status":"publish","type":"post","link":"https:\/\/www.alephnaught.com\/Blog\/2005\/01\/05\/hacking-the-itunes-music-library\/","title":{"rendered":"Hacking the iTunes Music Library"},"content":{"rendered":"<div id=\"content_div-6\">\n<p><!--more--><\/p>\n<div><font face=\"Helvetica-Bold\"><b>Hacking the iTunes Music<br \/>\nLibrary<\/b><\/font><br \/><font face=\"Helvetica\">Niel Bornstein, XML 2004<br \/>\nConference Proceedings<\/font><\/p>\n<p><font face=\"Helvetica\">&#8220;Apple&#8217;s iTunes<br \/>\nuses XML to store library metadata. What can we do<br \/>\nwith<\/font><br \/><font face=\"Helvetica\">this information? This paper will<br \/>\nexplore ways to work with the iTunes<\/font><br \/><font face=\"Helvetica\">Music<br \/>\nLibrary file for fun and education, including querying<br \/>\nvarious<\/font><br \/><font face=\"Helvetica\">web services for other suggested<br \/>\nrecordings and related information.<\/font><br \/><font face=\"Helvetica\">The<br \/>\niTunes library file, a file called iTunes Music Library.xml,<br \/>\nis<\/font><br \/><font face=\"Helvetica\">created automatically when you launch<br \/>\niTunes. The schema for the library<\/font><br \/><font face=\"Helvetica\">has<br \/>\nnothing to do with music, audio, multimedia, or data files;<br \/>\nit&#8217;s<\/font><br \/><font face=\"Helvetica\">just a generic dictionary, a collection<br \/>\nof key-value pairs. The top-<\/font><br \/><font face=\"Helvetica\">level element is<br \/>\nplist (property list), and it can contain any of<br \/>\nthe<\/font><br \/><font face=\"Helvetica\">elements array, data, date, dict, real,<br \/>\ninteger, string, true, or false.<\/font><br \/><font face=\"Helvetica\">This is a<br \/>\nfairly flexible DTD. Apple provides a browser-based<br \/>\nservice<\/font><br \/><font face=\"Helvetica\">that allows you to look up a<br \/>\nparticular song or artist in the iTunes<\/font><br \/><font face=\"Helvetica\">Music<br \/>\nStore. The ITMS Link Maker allows you to search for a song,<br \/>\nalbum,<\/font><br \/><font face=\"Helvetica\">or artists, and creates a link to<br \/>\ndirect the iTunes music player to the<\/font><br \/><font face=\"Helvetica\">song in<br \/>\nthe music store. This could be useful if, for example,<br \/>\nyou<\/font><br \/><font face=\"Helvetica\">publish a list of recently played songs<br \/>\non your weblog, and you want<\/font><br \/><font face=\"Helvetica\">to let your<br \/>\nreaders buy the songs you&#8217;ve recently listened to.<br \/>\nApple<\/font><br \/><font face=\"Helvetica\">also provides a service to create an<br \/>\nRSS feed of iTunes songs based on<\/font><br \/><font face=\"Helvetica\">criteria<br \/>\nyou select, including genre, regional music store, feed<br \/>\ntype<\/font><br \/><font face=\"Helvetica\">(new releases, just added, iTunes top<br \/>\nsongs, iTunes top albums, or<\/font><br \/><font face=\"Helvetica\">featured albums<br \/>\nand exclusives), feed size, and whether to show<br \/>\nexplicit<\/font><br \/><font face=\"Helvetica\">content.<\/font><\/p>\n<p><font face=\"Helvetica\" color=\"Blue\"><u>http:\/\/www.idealliance.org\/proceedings\/xml04\/papers\/80\/paper.html<\/u><\/font><br \/><font face=\"Helvetica\">See<br \/>\nalso XML and Music:<br \/>\n<\/font><font face=\"Helvetica\" color=\"Blue\"><u>http:\/\/xml.coverpages.org\/xmlMusic.html<\/u><\/font><font face=\"Helvetica\">&#8220;<\/font><\/p>\n<p><font face=\"Helvetica\">(Quoted<br \/>\nfrom the XML.org Daily Newslink)<\/font><\/div>\n<\/div>\n<div class=\"translate_block\" style=\"display: none;\">\n<hr class=\"translate_hr\" \/>\n<a class=\"translate_translate\" id=\"translate_button_post-6\" lang=\"en\" xml:lang=\"en\" href=\"javascript:show_translate_popup('en', 'post', 6);\"><span>Translate<\/span><\/a><img data-recalc-dims=\"1\" src=\"https:\/\/i0.wp.com\/www.alephnaught.com\/Blog\/wp-content\/plugins\/google-ajax-translation\/transparent.gif?resize=16%2C16&#038;ssl=1\" id=\"translate_loading_post-6\" class=\"translate_loading colorbox-6\" style=\"display: none;\" width=\"16\" height=\"16\" alt=\"\" \/>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Translate<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-music"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2w3Qj-6","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.alephnaught.com\/Blog\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alephnaught.com\/Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alephnaught.com\/Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alephnaught.com\/Blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alephnaught.com\/Blog\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":0,"href":"https:\/\/www.alephnaught.com\/Blog\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.alephnaught.com\/Blog\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alephnaught.com\/Blog\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alephnaught.com\/Blog\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}