Publish Tune
From PsiWiki
Contents |
[edit]
Media supported players in Psi 0.11
- WinAmp - nothing needs to be done. It just works.
- iTunes
- generic file reader ($PSIDATADIR/tune) with format as below (every value in its own line, file encoded in UTF-8)
Name Artist Album Track LengthInSeconds
- foobar2000 with tunefile plugin updates tune file.
[edit]
How to check whether it works or not
- Open XML console for account. Check Enable checkbox. Make sure IQ checkbox under filter is checked.
- Publish Tune under Status menu should be enabled (checked)
- Play/change song in media player and you should see something like:
<iq type="set" id="ab0ba" > <pubsub xmlns="http://jabber.org/protocol/pubsub"> <publish node="http://jabber.org/protocol/tune" > <item id="current" > <tune xmlns="http://jabber.org/protocol/tune"> <artist>Emir Kusturica & No Smoking Orchestra</artist> <title>Who killed the D.J.</title> <source>La Vie Est Un Miracle</source> <track>11</track> <length>232</length> </tune> </item> </publish> </pubsub> </iq>
[edit]
Troubleshooting
- Jabber server must support PEP. Otherwise Publish Tune under Status menu in Psi is grayed (disabled).
- It seems some older development versions of psi corrupted a part of the options.xml file so enabling tune publishing doesn't work. One symptom of this is that psi prints "Error: Trying to add option value publish but it already exists as a node" on the console (as in xterm not as in xml-console). If that happens open your account's options.xml file (in $PSIDATADIR/profile/PROFILE_NAME/options.xml) in an text editor while psi is not running and remove this line "<publish comment="Publish user tune information" />".
[edit]

