<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Kommentare zu: Amarok &#8211; XChat</title>
	<atom:link href="http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/</link>
	<description>So kann es im Leben zugehen - hoffen wir, dass es nur bei mir so ist</description>
	<lastBuildDate>Sun, 02 Oct 2011 20:33:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Von: Tagtraeumer</title>
		<link>http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/comment-page-1/#comment-683</link>
		<dc:creator>Tagtraeumer</dc:creator>
		<pubDate>Mon, 09 Mar 2009 09:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/#comment-683</guid>
		<description>klar darfst du das, dafür habe ich das ja auch als kommentar gepostet ;)
ich habe nur keine funktion &quot;isPlaying&quot; oder dergleichen gefunden, daher erkennt das script nicht, ob amarok Spielt oder Pause ist, aber das ist eigentlich auch egal, denn wenn man Stop drückt gibt der qdbus befehl einen leeren string wieder.
aber ausführlich getestet hab ich das nocht nicht.</description>
		<content:encoded><![CDATA[<p>klar darfst du das, dafür habe ich das ja auch als kommentar gepostet <img src='http://www.kabarakh.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
ich habe nur keine funktion &#8220;isPlaying&#8221; oder dergleichen gefunden, daher erkennt das script nicht, ob amarok Spielt oder Pause ist, aber das ist eigentlich auch egal, denn wenn man Stop drückt gibt der qdbus befehl einen leeren string wieder.<br />
aber ausführlich getestet hab ich das nocht nicht.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Kabarakh</title>
		<link>http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/comment-page-1/#comment-682</link>
		<dc:creator>Kabarakh</dc:creator>
		<pubDate>Sun, 08 Mar 2009 12:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/#comment-682</guid>
		<description>joa danke, ich selbst nutze immer noch nen uralt-amarok und hab deswegen noch keine änderung gebraucht... hmm schade, die einrückungen sind weg bei deinem kommentar... 

mit deiner erlaubnis werd ich das script nehmen und als neue version hier veröffentlichen... ich korrigier auch die leerzeichen ;)</description>
		<content:encoded><![CDATA[<p>joa danke, ich selbst nutze immer noch nen uralt-amarok und hab deswegen noch keine änderung gebraucht&#8230; hmm schade, die einrückungen sind weg bei deinem kommentar&#8230; </p>
<p>mit deiner erlaubnis werd ich das script nehmen und als neue version hier veröffentlichen&#8230; ich korrigier auch die leerzeichen <img src='http://www.kabarakh.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Tagtraeumer</title>
		<link>http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/comment-page-1/#comment-672</link>
		<dc:creator>Tagtraeumer</dc:creator>
		<pubDate>Sat, 07 Mar 2009 16:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/#comment-672</guid>
		<description>Hi!
Hab das Script auch über google &quot;amarok xchat&quot; gefunden ;) mittlerweile Platz 1 glaub ich.
ich habs auch gleich ausprobiert, doch bei mir zeigt der immer an, dass ich nichts höre. Ich habe herausgefunden, dass dcop mein amarok nicht findet (?), also habe ich so gut wie es ging das Script für (q)dbus umgeschrieben.
war auch gleich das erste mal, dass ich python programmiert habe ...

def amarok_send(word, word_eol, userdata):
    global bar, switch, bar_mod
    if (commands.getoutput(&#039;qdbus org.kde.amarok /Player GetMetadata&#039;)==&quot;Service &#039;org.kde.amarok&#039; does not exist.&quot;):
        xchat.command(&#039;me isn\&#039;t playing any song...&#039;)
    else:
	if (commands.getoutput(&#039;qdbus org.kde.amarok /Player GetMetadata&#039;)!=&quot;&quot;):
	    if switch == True:
		percent = (int)((float)(commands.getoutput(&#039;qdbus org.kde.amarok /Player PositionGet&#039;))/(float)(commands.getoutput(&#039;qdbus org.kde.amarok /Player GetMetadata &#124; grep mtime:&#039;).replace(&#039;mtime: &#039;,&#039;&#039;)) * 100)
		if bar_mode == 1:
		    bar1(percent)
		elif bar_mode == 2:
		    bar2(percent)
		else:
		    bar3(percent)
		xchat.command(&#039;me is listening to title[02&#039; + commands.getoutput(&#039;qdbus org.kde.amarok /Player GetMetadata &#124; grep title:&#039;).replace(&#039;title: &#039;,&#039;&#039;) + &quot;02] artist[02&quot; + commands.getoutput(&#039;qdbus org.kde.amarok /Player GetMetadata &#124; grep artist:&#039;).replace(&#039;artist: &#039;,&#039;&#039;) + &quot;02] duration[02&quot;+ str((int)((float)(commands.getoutput(&#039;qdbus org.kde.amarok /Player PositionGet&#039;)))/1000) + &quot;s / &quot; + str((int)((float)(commands.getoutput(&#039;qdbus org.kde.amarok /Player GetMetadata &#124; grep mtime:&#039;).replace(&#039;mtime: &#039;,&#039;&#039;)))/1000) + &quot;s02]&quot; + bar)
		bar = &quot;&quot;
	else: 
	    xchat.command(&#039;me isn\&#039;t playing any song...&#039;)
	
    return xchat.EAT_ALL


---

ist nur der def amarok_send block, wenn jemand also mit dem script probleme hat kann er das mal ausprobieren.</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Hab das Script auch über google &#8220;amarok xchat&#8221; gefunden <img src='http://www.kabarakh.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  mittlerweile Platz 1 glaub ich.<br />
ich habs auch gleich ausprobiert, doch bei mir zeigt der immer an, dass ich nichts höre. Ich habe herausgefunden, dass dcop mein amarok nicht findet (?), also habe ich so gut wie es ging das Script für (q)dbus umgeschrieben.<br />
war auch gleich das erste mal, dass ich python programmiert habe &#8230;</p>
<p>def amarok_send(word, word_eol, userdata):<br />
    global bar, switch, bar_mod<br />
    if (commands.getoutput(&#8216;qdbus org.kde.amarok /Player GetMetadata&#8217;)==&#8221;Service &#8216;org.kde.amarok&#8217; does not exist.&#8221;):<br />
        xchat.command(&#8216;me isn\&#8217;t playing any song&#8230;&#8217;)<br />
    else:<br />
	if (commands.getoutput(&#8216;qdbus org.kde.amarok /Player GetMetadata&#8217;)!=&#8221;"):<br />
	    if switch == True:<br />
		percent = (int)((float)(commands.getoutput(&#8216;qdbus org.kde.amarok /Player PositionGet&#8217;))/(float)(commands.getoutput(&#8216;qdbus org.kde.amarok /Player GetMetadata | grep mtime:&#8217;).replace(&#8216;mtime: &#8216;,&#8221;)) * 100)<br />
		if bar_mode == 1:<br />
		    bar1(percent)<br />
		elif bar_mode == 2:<br />
		    bar2(percent)<br />
		else:<br />
		    bar3(percent)<br />
		xchat.command(&#8216;me is listening to title[02' + commands.getoutput('qdbus org.kde.amarok /Player GetMetadata | grep title:').replace('title: ','') + "02] artist[02" + commands.getoutput('qdbus org.kde.amarok /Player GetMetadata | grep artist:').replace('artist: ','') + "02] duration[02"+ str((int)((float)(commands.getoutput('qdbus org.kde.amarok /Player PositionGet')))/1000) + "s / " + str((int)((float)(commands.getoutput('qdbus org.kde.amarok /Player GetMetadata | grep mtime:').replace('mtime: ','')))/1000) + "s02]&#8221; + bar)<br />
		bar = &#8220;&#8221;<br />
	else:<br />
	    xchat.command(&#8216;me isn\&#8217;t playing any song&#8230;&#8217;)</p>
<p>    return xchat.EAT_ALL</p>
<p>&#8212;</p>
<p>ist nur der def amarok_send block, wenn jemand also mit dem script probleme hat kann er das mal ausprobieren.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Kabarakh</title>
		<link>http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/comment-page-1/#comment-34</link>
		<dc:creator>Kabarakh</dc:creator>
		<pubDate>Tue, 06 Nov 2007 20:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/#comment-34</guid>
		<description>Ich schau mirs mal morgen an ;) aber klar ist das in ordnung</description>
		<content:encoded><![CDATA[<p>Ich schau mirs mal morgen an <img src='http://www.kabarakh.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  aber klar ist das in ordnung</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Diogenes von Wien</title>
		<link>http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/comment-page-1/#comment-33</link>
		<dc:creator>Diogenes von Wien</dc:creator>
		<pubDate>Tue, 06 Nov 2007 20:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/#comment-33</guid>
		<description>Servusm, Kabarakh!

Ich hab&#039; mir Dein Skript gesaugt und folgendermaßen modifiziert. Ich hoffe, Du hast nixhts dagegen.

# amarok_np.py 0.1
# by Diogenes von Wien http://members.chello.at/diogenes
# announces song played by amarok

# based on *amarok_xchat_variant* by christian herberger (aka kabarakh)
# which you can find at http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/

# installation: just copy this file to /xchat2 or whatever your xchat config directory is
# use         : command /ap

__module_name__ = &quot;amarok_np&quot; 
__module_version__ = &quot;0.1&quot; 
__module_description__ = &quot;python module for xchat to display facts about songs played&quot; 
 
import xchat 
import commands

def amarok_send(word, word_eol, userdata):
    if ( commands.getoutput(&#039;dcop amarok&#039;) == &quot;No such application: &#039;amarok&#039;&quot; ) or ( commands.getoutput(&#039;dcop amarok&#039;) == &quot;ERROR: Couldn&#039;t attach to DCOP server!&quot; ):
        xchat.command(&#039;me isn\&#039;t playing any song...&#039;)
    else: 
        if (commands.getoutput(&#039;dcop amarok player isPlaying&#039;)==&quot;true&quot;):
            percent = (int)((float)(commands.getoutput(&#039;dcop amarok player trackCurrentTime&#039;))/(float)(commands.getoutput(&#039;dcop amarok player trackTotalTime&#039;)) * 100)
	    if commands.getoutput(&#039;dcop amarok player album&#039;) != &#039;&#039;:
                xchat.command(&#039;me l\xe4\xdft amarok 02&#039; + commands.getoutput(&#039;dcop amarok player title&#039;) + &quot;02 von 02&quot; + commands.getoutput(&#039;dcop amarok player artist&#039;) + &quot;02 auf 02&quot; + commands.getoutput(&#039;dcop amarok player album&#039;) + &quot;02 spielen.&quot;)
            else: 
                xchat.command(&#039;me l\xe4\xdft amarok 02&#039; + commands.getoutput(&#039;dcop amarok player title&#039;) + &quot;02 von 02&quot; + commands.getoutput(&#039;dcop amarok player artist&#039;) + &quot;02 spielen.&quot;)
        else: 
            xchat.command(&#039;me isn\&#039;t playing any song...&#039;)
    return xchat.EAT_ALL

xchat.hook_command(&#039;ap&#039;, amarok_send)

xchat.prnt(&#039;amarok_np 0.1 loaded..&#039;)</description>
		<content:encoded><![CDATA[<p>Servusm, Kabarakh!</p>
<p>Ich hab&#8217; mir Dein Skript gesaugt und folgendermaßen modifiziert. Ich hoffe, Du hast nixhts dagegen.</p>
<p># amarok_np.py 0.1<br />
# by Diogenes von Wien <a href="http://members.chello.at/diogenes" rel="nofollow">http://members.chello.at/diogenes</a><br />
# announces song played by amarok</p>
<p># based on *amarok_xchat_variant* by christian herberger (aka kabarakh)<br />
# which you can find at <a href="http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/" rel="nofollow">http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/</a></p>
<p># installation: just copy this file to /xchat2 or whatever your xchat config directory is<br />
# use         : command /ap</p>
<p>__module_name__ = &#8220;amarok_np&#8221;<br />
__module_version__ = &#8220;0.1&#8243;<br />
__module_description__ = &#8220;python module for xchat to display facts about songs played&#8221; </p>
<p>import xchat<br />
import commands</p>
<p>def amarok_send(word, word_eol, userdata):<br />
    if ( commands.getoutput(&#8216;dcop amarok&#8217;) == &#8220;No such application: &#8216;amarok&#8217;&#8221; ) or ( commands.getoutput(&#8216;dcop amarok&#8217;) == &#8220;ERROR: Couldn&#8217;t attach to DCOP server!&#8221; ):<br />
        xchat.command(&#8216;me isn\&#8217;t playing any song&#8230;&#8217;)<br />
    else:<br />
        if (commands.getoutput(&#8216;dcop amarok player isPlaying&#8217;)==&#8221;true&#8221;):<br />
            percent = (int)((float)(commands.getoutput(&#8216;dcop amarok player trackCurrentTime&#8217;))/(float)(commands.getoutput(&#8216;dcop amarok player trackTotalTime&#8217;)) * 100)<br />
	    if commands.getoutput(&#8216;dcop amarok player album&#8217;) != &#8221;:<br />
                xchat.command(&#8216;me l\xe4\xdft amarok 02&#8242; + commands.getoutput(&#8216;dcop amarok player title&#8217;) + &#8220;02 von 02&#8243; + commands.getoutput(&#8216;dcop amarok player artist&#8217;) + &#8220;02 auf 02&#8243; + commands.getoutput(&#8216;dcop amarok player album&#8217;) + &#8220;02 spielen.&#8221;)<br />
            else:<br />
                xchat.command(&#8216;me l\xe4\xdft amarok 02&#8242; + commands.getoutput(&#8216;dcop amarok player title&#8217;) + &#8220;02 von 02&#8243; + commands.getoutput(&#8216;dcop amarok player artist&#8217;) + &#8220;02 spielen.&#8221;)<br />
        else:<br />
            xchat.command(&#8216;me isn\&#8217;t playing any song&#8230;&#8217;)<br />
    return xchat.EAT_ALL</p>
<p>xchat.hook_command(&#8216;ap&#8217;, amarok_send)</p>
<p>xchat.prnt(&#8216;amarok_np 0.1 loaded..&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Kabarakh</title>
		<link>http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/comment-page-1/#comment-25</link>
		<dc:creator>Kabarakh</dc:creator>
		<pubDate>Sun, 28 Oct 2007 11:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/#comment-25</guid>
		<description>jo steuerungsscripts gehen dank dcop auch bei amarok leicht

aber da man generell auf super+(z,x,c,v,b) die globalen tastenkombis hat, macht das bei amarok weniger sinn... ich überleg grad eh wie ich das script ver(schlimm)bessern kann</description>
		<content:encoded><![CDATA[<p>jo steuerungsscripts gehen dank dcop auch bei amarok leicht</p>
<p>aber da man generell auf super+(z,x,c,v,b) die globalen tastenkombis hat, macht das bei amarok weniger sinn&#8230; ich überleg grad eh wie ich das script ver(schlimm)bessern kann</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: BadBoy_</title>
		<link>http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/comment-page-1/#comment-24</link>
		<dc:creator>BadBoy_</dc:creator>
		<pubDate>Sat, 27 Oct 2007 12:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/#comment-24</guid>
		<description>höhö....python is cool...
ich nutz derzeit ne abgewandelte Version eines &quot;Now Playing&quot; scripts für XChat und Exaile...
dank dem programm kann ich exaile nun über Strg+F1/F2/F3 steuern</description>
		<content:encoded><![CDATA[<p>höhö&#8230;.python is cool&#8230;<br />
ich nutz derzeit ne abgewandelte Version eines &#8220;Now Playing&#8221; scripts für XChat und Exaile&#8230;<br />
dank dem programm kann ich exaile nun über Strg+F1/F2/F3 steuern</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: chimaera</title>
		<link>http://www.kabarakh.de/blog/2007/10/26/amarok-xchat/comment-page-1/#comment-23</link>
		<dc:creator>chimaera</dc:creator>
		<pubDate>Fri, 26 Oct 2007 23:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://kabarakh.pytalhost.de/blog/2007/10/26/amarok-xchat/#comment-23</guid>
		<description>Hi, klar kannst du das Skript weiterverwenden. IIRC gibt es entweder auf der Seite von Amarok oder X-Chat noch eine sehr nette Version davon, die den Songtitel in zufällige und ganz lustige Ausprüche verpackt. 

Gruss</description>
		<content:encoded><![CDATA[<p>Hi, klar kannst du das Skript weiterverwenden. IIRC gibt es entweder auf der Seite von Amarok oder X-Chat noch eine sehr nette Version davon, die den Songtitel in zufällige und ganz lustige Ausprüche verpackt. </p>
<p>Gruss</p>
]]></content:encoded>
	</item>
</channel>
</rss>

