<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - Ruby Tuesday: miPlayer is some iPlayer Ruby shizz for Linux - Comments</title>
 <link>http://townx.org/blog/elliot/ruby-tuesday-miplayer-some-iplayer-ruby-shizz-linux</link>
 <description>Comments for &quot;Ruby Tuesday: miPlayer is some iPlayer Ruby shizz for Linux&quot;</description>
 <language>en</language>
<item>
 <title>Technically, my fault :) I</title>
 <link>http://townx.org/blog/elliot/ruby-tuesday-miplayer-some-iplayer-ruby-shizz-linux#comment-37695</link>
 <description>&lt;p&gt;Technically, my fault :) I should have included an empty /downloads directory inside the zip file. Unfortunately, I had created this file, but because it was empty it was left out of the zip by the archiver program (I think). I&#039;ve rectified this now.&lt;/p&gt;</description>
 <pubDate>Wed, 23 Apr 2008 14:12:08 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 37695 at http://townx.org</guid>
</item>
<item>
 <title>re: Threads</title>
 <link>http://townx.org/blog/elliot/ruby-tuesday-miplayer-some-iplayer-ruby-shizz-linux#comment-37426</link>
 <description>&lt;p&gt;Actually, my fault. My script assumes you want to save to &#039;/downloads&#039;. Removing the threads gave me an error which said so. Threads now work fine. thanks.&lt;/p&gt;</description>
 <pubDate>Wed, 23 Apr 2008 03:03:18 -0500</pubDate>
 <dc:creator>Kevin</dc:creator>
 <guid isPermaLink="false">comment 37426 at http://townx.org</guid>
</item>
<item>
 <title>Hello Kevin. Probably me</title>
 <link>http://townx.org/blog/elliot/ruby-tuesday-miplayer-some-iplayer-ruby-shizz-linux#comment-37194</link>
 <description>&lt;p&gt;Hello Kevin. Probably me doing something wrong with threads (I&#039;m not too hot on those). My suggestion would be to look at iplayer-dl.rb, around line 169. Take out:&lt;/p&gt;



&lt;pre&gt;
t = Thread.new {
&lt;/pre&gt;



&lt;p&gt;and&lt;/p&gt;



&lt;pre&gt;
}

    t.run
&lt;/pre&gt;



&lt;p&gt;a bit further down. This means you won&#039;t be able to do multi-threaded downloads (I don&#039;t think, anyway), and may have to wait for the download to complete before you can go to another page. But it might be a fix. Long term, could be a case of making Ruby threads work properly in the app..&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 17:38:00 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 37194 at http://townx.org</guid>
</item>
<item>
 <title>thread killed?</title>
 <link>http://townx.org/blog/elliot/ruby-tuesday-miplayer-some-iplayer-ruby-shizz-linux#comment-37178</link>
 <description>&lt;p&gt;looks really interesting, under &lt;span class=&quot;caps&quot;&gt;OSX&lt;/span&gt; I get the following error..&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://pastie.textmate.org/private/tyt9itit4uqajwe0sg7eia&quot; title=&quot;http://pastie.textmate.org/private/tyt9itit4uqajwe0sg7eia&quot;&gt;http://pastie.textmate.org/private/tyt9itit4uqajwe0sg7eia&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;any ideas what I need to look at?&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 16:53:35 -0500</pubDate>
 <dc:creator>kwe</dc:creator>
 <guid isPermaLink="false">comment 37178 at http://townx.org</guid>
</item>
<item>
 <title>Ruby Tuesday: miPlayer is some iPlayer Ruby shizz for Linux</title>
 <link>http://townx.org/blog/elliot/ruby-tuesday-miplayer-some-iplayer-ruby-shizz-linux</link>
 <description>&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; Paul&#039;s code is &lt;span class=&quot;caps&quot;&gt;MIT &lt;/span&gt;licenced, so I&#039;m putting mine out under the same licence.&lt;/p&gt;

&lt;p&gt;A while back, &lt;a href=&quot;http://townx.org/blog/elliot/iplayer-ruby-code&quot;&gt;I wrote some simple scripts&lt;/a&gt; for parsing the &lt;a href=&quot;http://bbc.co.uk/iplayer&quot;&gt;&lt;span class=&quot;caps&quot;&gt;BBC &lt;/span&gt;iPlayer&lt;/a&gt; search pages, so I could get emails about programmes I was keeping an eye on. I also wrote a little Rack server interface so I could browse my search results easily. The downer was that I could only watch them online as downloads aren&#039;t supported on Linux, so I ended up having to go to the &lt;span class=&quot;caps&quot;&gt;BBC &lt;/span&gt;website to watch them in a tiny window, or boot my Windows VM to download a &lt;span class=&quot;caps&quot;&gt;DRM&lt;/span&gt;-crippled version. &lt;/p&gt;

&lt;p&gt;However, &lt;a href=&quot;http://www.dynamicorange.com/blog/archives/personal/late_night_arri.html&quot;&gt;Rob Styles&lt;/a&gt; noted today that there&#039;s a Ruby script out there (&lt;a href=&quot;http://po-ru.com/diary/keeping-up-with-iplayer-dl/&quot; title=&quot;http://po-ru.com/diary/keeping-up-with-iplayer-dl/&quot;&gt;http://po-ru.com/diary/keeping-up-with-iplayer-dl/&lt;/a&gt; by Paul Battley) which mimics an Apple iPhone, enabling you to download programmes as &lt;span class=&quot;caps&quot;&gt;MP4 &lt;/span&gt;files without &lt;span class=&quot;caps&quot;&gt;DRM.&lt;/span&gt; I don&#039;t have an iPhone, but I can&#039;t see why it should only be design know-it-alls who get this privilege. So I integrated that script with my Ruby/Rack web front end, spiced it up a bit, and away I go. I can now search for programmes and download the mp4s to my hard disk (if they exist - not every &lt;span class=&quot;caps&quot;&gt;BBC &lt;/span&gt;programme has an mp4 version). Nice. Turns out Rack can also multi-thread in a decent fashion (unlike Rails), so I can even have several downloads running at once.&lt;/p&gt;

&lt;p&gt;The code is attached. There&#039;s no licence on the download script I&#039;m using, so I hesitate to release it under any kind of open source licence (yet). I&#039;ll contact Paul and find out what licence he&#039;s releasing under. I made a few modifications to his script to wrap it in a class for use in my app., but not many. See my previous entry (linked at the top of this post) for proper instructions/installation etc..&lt;/p&gt;

&lt;p&gt;Also, please don&#039;t expect very clean, well-tested code here: it&#039;s something I&#039;ve thrown together for my own use, and I&#039;m putting it out there for others to use if they like. Also, I can&#039;t guarantee it will work on Windows at all. Enjoy.&lt;/p&gt;</description>
 <comments>http://townx.org/blog/elliot/ruby-tuesday-miplayer-some-iplayer-ruby-shizz-linux#comments</comments>
 <category domain="http://townx.org/tech">tech</category>
 <enclosure url="http://townx.org/files/miplayer.zip" length="7749" type="application/zip" />
 <pubDate>Mon, 21 Apr 2008 18:32:11 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">716 at http://townx.org</guid>
</item>
</channel>
</rss>
