<?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>Wandsea.com &#187; Python</title>
	<atom:link href="http://wandsea.com/blog/tag/python/feed" rel="self" type="application/rss+xml" />
	<link>http://wandsea.com/blog</link>
	<description>好吧..大家都要加油哦～</description>
	<lastBuildDate>Wed, 08 Sep 2010 15:17:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>一个&quot;正在播放&quot;信息发布器</title>
		<link>http://wandsea.com/blog/397.htm</link>
		<comments>http://wandsea.com/blog/397.htm#comments</comments>
		<pubDate>Sun, 22 Feb 2009 14:15:31 +0000</pubDate>
		<dc:creator>Wandsea</dc:creator>
				<category><![CDATA[Program Impossible]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[网络]]></category>
		<category><![CDATA[脚本]]></category>

		<guid isPermaLink="false">http://wandsea.com/blog/?p=397</guid>
		<description><![CDATA[这名字起得真纠结，Wandsea's"正在播放"信息发布器....... Update 09-02-24: V0.3发布 更新试听功能，去除文字多余符号，使其更为美观 常来的同学也许已经看到了，在我的Widget栏中把8box换成了现在的... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>这名字起得真纠结，Wandsea's"正在播放"信息发布器.......</p>
<p><strong>Update 09-02-24: V0.3发布 更新试听功能，去除文字多余符号，使其更为美观</strong></p>
<p>常来的同学也许已经看到了，在我的Widget栏中把8box换成了现在的正在播放信息发布，这用的就是本文的这个小脚本（应该不能算软件.....－－），耗时不长，也很简单，主要是利用了前几天的一个显示歌词的脚本中的一个函数，自己编一定很困难...开源就是好，能很好地避免重复劳动，呵呵～</p>
<p>首先从系统中读取现在播放的歌曲信息，经过去空格等操作后利用Get方式与密钥一起发送到服务器段的php脚本上，这个php脚本会把传送过来的密钥与自己存储的密钥进行比对，如一致，则去除html标签（防黑）后保存到服务器上的一个文本文件中，之后打开网页时就从此文本文件中读取内容以及文件最后修改时间并显示出来....就这样....很简单...</p>
<p>支持的播放器有Audicious,Rhythmbox(已测试)，mpc,amarok(理论可以)...当然了，Linux下使用</p>
<p>压缩包内一共四个文件，首先修改各个文件中的各个变量（密钥、服务器地址以及文本文件地址），然后把music_add.php传送到服务器端，music_get.php中的内容复制到你所要显示信息的地方，在终端中运行music_sender_main.sh就可以了。</p>
<p>其他还可以定制的有发布格式，更新间隔等等...（废话...都开源的什么还不能改）</p>
<blockquote><p>本软件采取GPL协议发布，用来发送本地正在播放的歌曲名称到服务器上并在页面上显示出来，这个小程序在本地使用Bash+Python，服务器端使用PHP，主要部分参考自UbuntuForum上的歌词显示插件<br />
作者：Wandsea (2009-02-22)<br />
联系方式：Wandsea [at] gmail.com<br />
网站：http://Wandsea.com/<br />
再次感谢开源社区为我提供如此便利的方式来编写程序！</p></blockquote>
<p>下载地址:<a href="http://wandsea.com/down/Wandsea's_Music_Infomation_Sender_V0.3.tar.gz">http://wandsea.com/down/Wandsea's_Music_Infomation_Sender_V0.3.tar.gz</a></p>
<p>欢迎提出修改意见，有修改好的也可以发送给我，呵呵～</p>
<hr/><small>Copyright &copy; 2009<br /> 本Blog采用 知识共享署名-非商业性使用-相同方式共享 许可协议进行许可 轉載請署名 <br/> </small>
<a href="http://wandsea.com/blog/397.htm#comments" title="to the comments"><font color="red">加油！已经盖到4楼啦</font></a><small> － 
<a href="http://Wandsea.com/blog/" title="http://Wandsea.com/blog/">去看看我的Blog？</a> － 
<a href="http://wandsea.com/blog/never-forget" title="http://wandsea.com/blog/never-forget">民主歌声献中华 20年</a><br/> </small></p><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://wandsea.com/blog/399.htm" title="WandShare链接分享V0.1">WandShare链接分享V0.1</a> (5)</li><li><a href="http://wandsea.com/blog/428.htm" title="Ubuntu下给照片批量添加EXIF信息水印">Ubuntu下给照片批量添加EXIF信息水印</a> (8)</li><li><a href="http://wandsea.com/blog/417.htm" title="Ubuntu 9.04 新通知机制 -Notify-send ">Ubuntu 9.04 新通知机制 -Notify-send </a> (1)</li><li><a href="http://wandsea.com/blog/155.htm" title="Php單詞日記&amp;留言簿">Php單詞日記&amp;留言簿</a> (1)</li><li><a href="http://wandsea.com/blog/437.htm" title="上海电信又开始强行插广告了&#8230;">上海电信又开始强行插广告了&#8230;</a> (10)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://wandsea.com/blog/397.htm/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
