KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   


- Content .- Fans  .- Knowledge Base  . 

Amarok Atom Syndication


Amarok Script

Score 68%
Downloads:  63
Submitted:  Sep 11 2007


Script for syndicating your currently playing music to the net (store an Atom file on you Google Pages account).

You need to have previously signed for Google Pages service before using this script, and have cookies enable for Google Pages service as well.


Some bugs fixed

New text file,IMPORTANT, explains how to make this script work

Send to a friend
Other  Apps  from dpino
Report inappropriate content



 by andrewmin on: Sep 12 2007
Score 50%

I'd love to try this, but I get an error. Kubuntu Feisty, Amarok 1.4.7, and Perl 5.8.8

The script 'atomSyndication.pl' exited with error code: 2


Can't locate XML/DOM.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/andrew/.kde/share/apps/amarok/scripts/atomSyndication/atomSyndication.pl line 108.
BEGIN failed--compilation aborted at /home/andrew/.kde/share/apps/amarok/scripts/atomSyndication/atomSyndication.pl line 108.

Reply to this


 Re: Error

 by dpino on: Sep 12 2007
Score 50%

OK, try to install XML::DOM module first

Open a term and type:


If you are running CPAN for the first time, just follow the steps needed

Then, install XML::DOM

cpan> install XML::DOM

Thanks for the feedback, I did not realize maybe some perl configuration was needed to be done

Hope it works now, have fun!

Reply to this


 Re: Re: Error

 by andrewmin on: Sep 12 2007
Score 50%

Both are now installed, but it still has this error message:

The script 'atomSyndication.pl' exited with error code: 2


Can't locate Data/UUID.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/andrew/.kde/share/apps/amarok/scripts/atomSyndication/atomSyndication.pl line 110.
BEGIN failed--compilation aborted at /home/andrew/.kde/share/apps/amarok/scripts/atomSyndication/atomSyndication.pl line 110.

Reply to this


 Re: Re: Re: Error

 by dpino on: Sep 12 2007
Score 50%

Hello onlineapps,

The error is similar to the previous one, UUID library is not installed in your system. To install it proceed as before,

Run cpan
$ cpan

Then, install UUID
cpan> install Data::UUID

Thanks for the feedback, I did not realize maybe some libraries were missing. In the next released I will add some warnings telling which libraries are needed and how to install them, or better, will add a config script to install those libraries.

Till then, I put down here a list of the libraries used by the script. If someone gets an error on a missing library (I mean, similar to the previous ones) please check this list:


Reply to this


 Re: Re: Re: Re: Erro

 by andrewmin on: Sep 12 2007
Score 50%

Thanks, that and LWP::UserAgent fixed it for me!

Reply to this


 Missing XMLDecl

 by BoredByPolitics on: Sep 25 2007
Score 50%

Nice script!

I had to make a couple of changes to the script. The first was helping it find my cookies.txt file. Unfortunately there are two cookies.txt files findable from ~/.mozilla on my system, and it just happened to pick the one that isn't updated. I adjusted the start point to ~/.mozilla/firefox, which fixed the cookies problem.

Secondly, although the file amarok.xml was being generated, and it looked OK, RSS readers were not liking it, mostly refusing to render anything.

I made this change, to add the <? xml ...?> declaration to the head of the file:


--- /home/pete/src/atomSyndication/atomSyndication.pl 2007-09-10 23:38:01.000000000 +0100
+++ ./atomSyndication.pl 2007-09-25 22:25:38.000000000 +0100
@@ -25,15 +25,21 @@
use LWP::UserAgent;
use File::Find;

-$username = '';
+$username = 'xxx';
$ATOM_FILE = 'amarok.xml';

$URL = "http://pages.google.com";
$URL_ATOM_FILE = "http://$username.googlepages.com/$ATOM_FILE";

+$XMLDECL = new XML::DOM::XMLDecl;
$uploadURL = $URL."/upload-file-simple/$username";

-find(\&handleFind, "$ENV{'HOME'}/.mozilla/");
+find(\&handleFind, "$ENV{'HOME'}/.mozilla/firefox/");

sub handleFind {
my $foundFile = $File::Find::name;
@@ -194,11 +200,15 @@
sub GetXML
local($url) = @_;
- local($parser, $xmldoc);
+ local($parser, $xmldoc, $xmldecl);

eval {
$parser = XML::DOM::Parser->new();
$xmldoc = $parser->parsefile($url);
+ $xmldecl = $xmldoc->getXMLDecl();
+ if ( $xmldecl == undef ) {
+ $xmldoc->setXMLDecl($XMLDECL);
+ }

if ($@) {
@@ -247,10 +257,11 @@
my $xmldoc = new XML::DOM::Document;
+ my $xmldecl= new XML::DOM::XMLDecl;
$feed{'updated'} = &GetTime;
$feed{'id'} = 'urn:uuid:'.Data::UUID->new->create_str;
$node = &ArrayToXML($xmldoc, 'feed', %feed);
+ $xmldoc->setXMLDecl($XMLDECL);

return $xmldoc;

Reply to this

Add commentBack

Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.