-
 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   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (5) .- Knowledge Base  . 

Amarok2LibreFM

   0.2  

Amarok 2.0 Script

Score 72%
Minimum required   KDE 4.x
Downloads:  537
Submitted:  Jun 22 2009
Updated:  Sep 24 2010

Description:

This script will scrobble your listening habits to LibreFM.

It depends on the 'lastfmsubmitd' daemon which is available in most repos otherwise you can get the source here: http://www.red-bean.com/decklin/lastfmsubmitd/




Changelog:

Added delay before the track is submitted, currently set at 33% (see main.js for more information)




LicenseGPL
(Amarok2LibreFM)
Donate
Send to a friend
Subscribe
Other  Apps  from esdaniel1
Report inappropriate content



goto page:  1  2 

-

 Tip: lastfmsubmitd

 
 by esdaniel1 on: Jun 24 2009
 
Score 50%

Tip:

You might find in order for this to work that you will need to set permissions so that lastfmsubmit script, when called with your user account credz, can write to the work folders:

/var/log/lastfm/
/var/spool/lastfm/


Reply to this

-

 A little work, but works!

 
 by raycosm on: Jul 2 2009
 
Score 50%

The version of lastfmsubmitd in the Ubuntu repos (at this time) was 0.37-3, which apparently doesn't let you change the server it scrobbles to. According to http://ebanana.orconhosting.net.nz/librefm.html, version 1.05 works, but the version in the Ubuntu repos were 0.37.

They were in the Debian sid repo, so I went to http://packages.debian.org and downloaded a version 1.05-1 deb. It told my python-support needed to be greater than 0.90, and the version in the Ubuntu repos again were again not high enough, so I downloaded a version 1.0.3 python-support again from Debian, and they both installed.

The next step was to configure lastfmsubmitd to use libre.fm instead of last.fm. That was accomplished easily with a "sudo nano /etc/lastfmsubmitd.conf" and adding:

--copy text after this--
[server]
url=http://turtle.libre.fm/
--copy text before this--

If this is already here, make sure the url points to http://turtle.libre.fm/ and not one of last.fm's servers. Save and restart your computer (not sure if it's necessary, but it's the easiest way to restart lastfmsubmitd).

Also, I couldn't find the script in the Amarok file selector unless I changed the file extension to .amarokscript.tar.gz. Never noticed that before, but perhaps that's a new convention introduced in Amarok 2.1?


Reply to this

-

 Changes

 
 by esdaniel1 on: Jul 2 2009
 
Score 50%

Thanks, Raycosm.

Script name updated so that Amarok's file extension filter matches.

FYI:

I use v 0.37-3 of the lastfmsubmit daemon from the repos, in the 'readme' I provide further instruction on how to use the daemon including configuring the daemon to use the LibreFM scrobbling url (turtle).

A daemon restart does not in and of itself dictate a system restart and as such you are able to restart your daemon without any need to restart, logout or perform any other action than have Amarok running with the script installed - the lastfmsubmit daemon is written with good intent, for example it has the ability to cache when it is unable to connect to the service and upload when the service is available again.

One thing I have been mulling over is the best way to reduce false positives such as duplicates because you restart a track - most seem to use a sleep function but I've not decided what I'll do and that feature will come in the next version.


Reply to this

-

 submission

 
 by thenktor on: Jul 15 2009
 
Score 50%

The script submits the tracks at the beginning of the song and not after 50 %.


Reply to this

-

 Re: submission

 
 by esdaniel1 on: Feb 7 2010
 
Score 50%

Sorry for the delay in getting this done - if you edit the main.js in ~/.kde/share/apps/amarok/scripts and replace the old function with this one it should do the trick...

function onTrackChange() {
if (config["showChange"]) {
var currentTrack = Amarok.Engine.currentTrack();
var wait_to_update = currentTrack.length * 0.33; // i.e. wait 33% of track length played before updating (in milliseconds)
var qo = new QObject();
qo.event = function(qevent) {
if (currentTrack.path == Amarok.Engine.currentTrack().path) {
notify();
}
this.killTimer(qo.timerID);
}
qo.timerID = qo.startTimer(wait_to_update);
}
}

I'll update the script in due course but let me know if that works for you.


Reply to this

-

 Re: Re: submission

 
 by esdaniel1 on: Feb 7 2010
 
Score 50%

main.js in this location:

~/.kde/share/apps/amarok/scripts/Amarok2LibreFM


Reply to this

-
.

 Error

 
 by Gallaecio on: Sep 2 2009
 
Score 50%

http://xltwo.co.nr/amarok-libre.fm-output.txt

This is the debug output in console, when I start Amarok. And this is what I get in the GUI:

There are exceptions caught in the script 'Amarok2LibreFM'. Please refer to the console debug output for more information.

Can someone tell me why?


Reply to this

-

 Re: Error

 
 by esdaniel1 on: Sep 9 2009
 
Score 50%

Sorry for late reply - just took a peek at the console debug output - thanks btw for posting that.

So the info that helps me trace is here:

"11:56:07 Error: Unable to import qt.core: no such extension on Line: 14"

This refers to the includes in the companion script that provides the on/off toggle for the script being enabled:

Importer.loadQtBinding( "qt.core");
Importer.loadQtBinding( "qt.gui");
Importer.loadQtBinding( "qt.uitools" );

You should check that you've got those libs installed - I think the key package you're looking for is libqt4-scripttools.

HTH

ed (esdaniel)


Reply to this

-

 Re: Re: Error

 
 by Gallaecio on: Sep 10 2009
 
Score 50%

I already had the arch version of that package (qtscriptgenerator), but the libs were not in the system. Reinstalling fixed it. Thanks! :)


Reply to this

-

 Folders

 
 by Gallaecio on: Mar 12 2010
 
Score 50%

Hi,

While trying to make fix the script not getting, I found out that Installing the TAR.GZ from Amarok placed the files into this archive directly into the [...]/scripts folder, instead of [...]/scripts/Amarok2LibreFM folder. Fixing this I got Amarok to recognize the script under "Installed Script".

Even so, I could not get the script working. These are the only *Libre* strings I get in Amarok's output:

[...]
amarok(6443)/kio (Slave) KIO::Slave::createSlave: createSlave "http" for KUrl("http://amarok.kde.org/scriptupdates/Amarok2LibreFM/version")
[...]
amarok(6443)/kio (KIOJob) KIO::SlaveInterface::dispatch: error 111 "http://amarok.kde.org/scriptupdates/Amarok2LibreFM/version"
[...]
amarok(6443)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "Amarok2LibreFM"

Is there a way I can get an output with more details about the script or why could it not be working? (if it is the script what's not working, of course).


Reply to this

-

 Re: Folders

 
 by okurz on: Apr 5 2010
 
Score 50%

I had the same problem. The script installed from Amarok's internal script manager is extracted to ~/.kde/share/apps/amarok/scripts
directly, not a subfolder and consequently not recognized.
After moving the script content to a subfolder "Amarok2LibreFM" AND installing and configuring lastfmubmitd, the script works.

And also, the scripts archive filename is still not correct for amarok to recognize as a script archive.


Reply to this

-

 Re: Re: Folders

 
 by Gallaecio on: Apr 5 2010
 
Score 50%

I'll play with it again, hope this time I get it to work.


Reply to this

-

 Re: Re: Re: Folders

 
 by Gallaecio on: Apr 5 2010
 
Score 50%

I've just found out it has been working for some days: http://alpha.libre.fm/user/gallaecio/stats

And I didn't noticed... It's time to take use of LibreFM! THANK YOU ALL! :)


Reply to this

-

 Re: Re: Folders

 
 by esdaniel1 on: Apr 7 2010
 
Score 50%

Thanks for the pointer, I've updated the download.


Reply to this

goto page:  1  2 

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
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.