<?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>LonnieOlson &#187; python</title>
	<atom:link href="http://lonnieolson.com/blog/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://lonnieolson.com/blog</link>
	<description>Words from the geeky sysadmin</description>
	<lastBuildDate>Wed, 30 Jul 2008 00:58:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Updated Rhythmbox iPod sync plugin</title>
		<link>http://lonnieolson.com/blog/2008/04/22/updated-rhythmbox-ipod-sync-plugin/</link>
		<comments>http://lonnieolson.com/blog/2008/04/22/updated-rhythmbox-ipod-sync-plugin/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 23:09:48 +0000</pubDate>
		<dc:creator>fungus</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux/BSD]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.kittypee.com/?p=2277</guid>
		<description><![CDATA[Due to the comments I recrived on the last post on this topic, I decided to make a few changes.
First I want to say thank you to everyone that showed interest.  Apparently this type of plugin is desperately needed.  My initial version was just a quick hack to transfer meta data to and [...]]]></description>
			<content:encoded><![CDATA[<p>Due to the comments I recrived on the <a href="http://www.kittypee.com/2007/11/16/rhythmbox-ipod-sync-plugin/">last post</a> on this topic, I decided to make a few changes.</p>
<p>First I want to say thank you to everyone that showed interest.  Apparently this type of plugin is desperately needed.  My initial version was just a quick hack to transfer meta data to and from my iPod.  Note the extremely hackish nature of the link between iPod and rhythmbox tracks (filename only).</p>
<p>Now for the changes:</p>
<ol>
<li>The most common complaint was the rhythmbox crashing bug (Segmentation Fault).  This is caused by the gpod module when it attempts to locate and read the itunes database on the iPod.  My fix was to just check if gpod found the itunes directory, print an error to the console, and skip any processing at all.  This will prevent killing rhythmbox, but doesn&#8217;t actually fix anything.</li>
<li>More intelligent rating updates.   I used <a href="http://www.kittypee.com/2007/11/16/rhythmbox-ipod-sync-plugin/#comment-10667">mockenh&#8217;s</a> idea to compare last played dates to determine which rating to use in case of a conflict.</li>
</ol>
<p>I don&#8217;t really have the desire to implement playlist, or podcast synchronization since I have very little time, and I am only a mediocre programmer at best.  If someone wants to swipe my code to build on, they are more than welcome to.  </p>
<p>Some notes about my implementation.</p>
<ol>
<li>I just use a periodic rsync to copy music from my iPod to my PC.  <code>rsync -av /media/BFUNGUS/iPod_Control/Music/ ~/Music/</code> Change any paths as necessary.</li>
<li>Since I don&#8217;t copy songs <em>to</em> the iPod using Linux, I didn&#8217;t write that support into it</li>
<li>The detection of the iPod mount location is dependant upon the GnomeVFS module.  It must correctly recognize your iPod as a Music Player</li>
<li>The python gpod module must be installed.  Debian users can <code>apt-get install python-gpod</code></li>
</ol>
<p><a href='http://www.kittypee.com/wp-content/uploads/2008/04/ipodsync-02tar.gz'>ipodsync v0.2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2008/04/22/updated-rhythmbox-ipod-sync-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Rhythmbox iPod sync plugin</title>
		<link>http://lonnieolson.com/blog/2007/11/16/rhythmbox-ipod-sync-plugin/</link>
		<comments>http://lonnieolson.com/blog/2007/11/16/rhythmbox-ipod-sync-plugin/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 19:07:12 +0000</pubDate>
		<dc:creator>fungus</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux/BSD]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.kittypee.com/2007/11/16/rhythmbox-ipod-sync-plugin/</guid>
		<description><![CDATA[Since Rhythmbox doesn&#8217;t handle smart playlists on my iPod, my days of listening to music directly from my iPod are over.  
While I do use iTunes at home to do my normal master sync, I need to have my music on my computer at work.  So I simply rsync my iPod&#8217;s Music to [...]]]></description>
			<content:encoded><![CDATA[<p>Since Rhythmbox doesn&#8217;t handle smart playlists on my iPod, my days of listening to music directly from my iPod are over.  </p>
<p>While I do use iTunes at home to do my normal master sync, I need to have my music on my computer at work.  So I simply rsync my iPod&#8217;s Music to my computer.<br />
<code>rsync -av --delete /media/BFUNGUS/iPod_Control/Music/ ~/Music/</code><br />
Change the location of your iPod if named and/or mounted differently.</p>
<p>This works great.  Rhythmbox found and read the tags of my music, and I have a fully functional music player.  Except for one thing.  I regularly use ratings and time of last play to make smart playlists.  I need this data synchronized to and from my iPod.</p>
<p>Enter the iPodsync plugin for rhythmbox to synchronize ratings, time of last play and play count to and from the iPod.  It will autodetect the iPod via GnomeVFS calls.  It connects the rhythmbox API to the libgpod API to make the mesh.  After installing and enabling the plugin, it will add a Tools -> Sync iPod menu item to initiate the sync.  There is no other GUI yet to give you an indication of progress, but it is pretty darn quick.  Any Rhythmbox GUI experts want to help out??  <img src='http://lonnieolson.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway, here it is.<br />
Just extract this archive to your rhythmbox plugins directory (<em>/usr/lib/rhythmbox/plugins</em>).  Restart rhythmbox, and you should be good to go.<br />
<a href='http://www.kittypee.com/wp-content/uploads/2007/11/ipodsynctar.gz' title='Rhythmbox iPod Sync plugin'>Rhythmbox iPod Sync plugin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2007/11/16/rhythmbox-ipod-sync-plugin/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
