<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hear A Blog &#187; podcast</title>
	<atom:link href="http://blog.hearablog.com/tag/podcast/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hearablog.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 26 May 2010 19:15:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=4018</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linking a podcast to Zune</title>
		<link>http://blog.hearablog.com/2009/12/linking-a-podcast-to-zune/</link>
		<comments>http://blog.hearablog.com/2009/12/linking-a-podcast-to-zune/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 16:51:36 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[linking]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[podcasting]]></category>
		<category><![CDATA[subscribe]]></category>
		<category><![CDATA[Zune]]></category>

		<guid isPermaLink="false">http://blog.hearablog.com/?p=44</guid>
		<description><![CDATA[
			
				
			
		
You may have notice that we now provide links to the usual RSS, iTunes, Google (Reader), Zune and pcast (for pcast:// compatible podcatchers):

All the links were trivial to make, except Zune. iTunes took long to have proper links, because you have to submit them to Apple and, obviously, they have to approve them.
Linking to Zune [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hearablog.com%2F2009%2F12%2Flinking-a-podcast-to-zune%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hearablog.com%2F2009%2F12%2Flinking-a-podcast-to-zune%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>You may have notice that we now provide links to the usual RSS, iTunes, Google (Reader), Zune and pcast (for pcast:// compatible podcatchers):</p>
<p><a href="http://blog.hearablog.com/wp-content/uploads/2009/12/links.png"><img class="aligncenter size-full wp-image-45" title="Podcast links" src="http://blog.hearablog.com/wp-content/uploads/2009/12/links.png" alt="Podcast links" width="314" height="105" /></a></p>
<p>All the links were trivial to make, except Zune. iTunes took long to have proper links, because you have to submit them to Apple and, obviously, they have to approve them.</p>
<p>Linking to Zune has many pitfalls. Hopefully you&#8217;ll read about them here and spend only a fraction of the time I&#8217;ve spent on creating them. The format is initially quite simple:</p>
<pre>zune://subscribe/?title=url</pre>
<p><img class="alignright size-medium wp-image-50" title="urlencoded title" src="http://blog.hearablog.com/wp-content/uploads/2009/12/urlencoded-title-300x128.png" alt="" width="300" height="128" /></p>
<p>My first try was to URL-encode both the title and the url which resulted in two undesirable behaviors:</p>
<ol>
<li>The title of the podcast on <strong>the Zune dialog appeared URL-encoded</strong>. That dialog that says &#8220;Do you want to subscribe the A%20Smart%20Bear podcast?&#8221;</li>
<li><strong>It didn&#8217;t work</strong>, it claimed the URL was broken.</li>
</ol>
<p>I&#8217;ve tried not urlencoding and instead of saying &#8220;A%20Smart%20Bear&#8221; it was saying &#8220;A+Smart+Bear&#8221;, and still not working.</p>
<p>I was doing all my testing and debugging with Firefox. Not sure where to go next, I&#8217;ve tried Google Chrome which shows you the command line it is about to run. That command line included hyphens to specify the arguments.</p>
<p><a href="http://blog.hearablog.com/wp-content/uploads/2009/12/command-line-dialog.png"><img class="aligncenter size-full wp-image-51" title="command line dialog" src="http://blog.hearablog.com/wp-content/uploads/2009/12/command-line-dialog.png" alt="" width="442" height="319" /></a></p>
<p>Bingo! We had hyphens in our URL and that was breaking. <strong>Zune cannot deal with hyphens in the URL</strong>.</p>
<p>Our solution was to replace spaces for underscores in the title to reach what we think was the most readable solution:</p>
<ul>
<li>A%20Smart%20Bear</li>
<li>A+Smart+Bear</li>
<li>ASmartBear</li>
<li>A_Smart_Bear</li>
</ul>
<p>and to replace the hyphens in underscores in our URLs and everything just worked. Thankfully our use of hyphens is no critical and changing them to underscores didn&#8217;t require a single line of code, but it could have been much worst. This is something to have in mind when you are defining your routes.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hearablog.com/2009/12/linking-a-podcast-to-zune/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
