-
 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 (10) .- Knowledge Base  . 

klastfm

   0.7  

Amarok 2.0 Script

Score 80%
Homepage:  Link
Depends on  KDE 4.x
Downloads:  713
Submitted:  Jul 3 2010
Updated:  May 31 2012

Description:

First of all: This is not an Amarok script in the common sense. Do not install this in Amarok! Read this file to get the idea!

This tool grabs your statistic from last.fm and merges it into your existing amarok database.

Since last.fm relies on MusicBrainz ( http://musicbrainz.org ) for tagging, in general it is a good idea to tag your media with MusicBrainz Picard ( http://musicbrainz.org/doc/MusicBrainz_Picard ) By tagging your music with Picard (or any other ID3 tagger using MusicBrainz) you will get the best results when using this script. All tracks not recognized by this script are skipped.

It will synchronize your playcount (how often you listened to a specific track) and the first and last played date of a track (with the accuracy of a few days).

Listed on kde-apps.org http://kde-apps.org/content/show.php?content=127016

Sourcecode available at github.com http://github.com/gauda/klastfm

When reporting errors, please include your last.fm username in the bugreport!




Changelog:

Klastfm is now based on LastToLibre, an external app to download your last.fm history, removed the option to rate the tracks



License:
MIT

Send to a friend
Subscribe
Other  Apps  from gauda
Report inappropriate content



goto page: prev   1  2  3  4  5 

-

 Location of database

 
 by kirmonkey on: Dec 15 2011
 
Score 50%

Could be a simple question.

I am getting the following error message:

rick@moto:~/Downloads/gauda-klastfm-853f232$ ruby ./klastfm
./lib/klastfm.rb:28:in `initialize': Cannot connect to the database. Check config/config.yaml (RuntimeError)
from ./klastfm:10:in `new'
from ./klastfm:10

It seems the script cannot find the 'database'

I am using Amarok 2.4.0 with SImply Mepis (based on Debian Stable)

The output for Gem list is:

*** LOCAL GEMS ***

activemodel (3.1.3)
activerecord (3.1.3)
activesupport (3.1.3)
arel (2.2.1)
builder (3.0.0)
httparty (0.8.1)
i18n (0.6.0)
logger (1.2.8)
multi_json (1.0.4)
multi_xml (0.4.1)
mysql (2.8.1)
progressbar (0.9.2)
tzinfo (0.3.31)
ya2yaml (0.30)

Amarok is set to use its internal database and config. is stored in:

~.kde/share/apps/amarok/

and my yaml.conf looks like this:

# mysql settings
mysql:
# uncomment this (and correct the path) if you're using amarok with embedded mysql
socket: ~/.kde4/share/apps/amarok/
host: localhost
database: amarok_database
username: amarok_username
password: amarok_password

# lastfm settings
lastfm:


With my username and api_key included in the file.


Hope that someone can help, I always prefer to find my own solutions but cannot this time.


Richard.


Reply to this

-

 Re: Location of database

 
 by gauda on: Dec 15 2011
 
Score 50%

Quote:
Amarok is set to use its internal database and config. is stored in:
~.kde/share/apps/amarok/

and my yaml.conf looks like this:
...
socket: ~/.kde4/share/apps/amarok/


Is the ".kde" vs. ".kde4" a typo in your post? ;)


Reply to this

-

 Re: Re: Location of database

 
 by msledziona on: Jan 18 2012
 
Score 50%

Hi, I'm getting the same error:
> ruby ./klastfm
./lib/klastfm.rb:28:in `initialize': Cannot connect to the database. Check config/config.yaml (RuntimeError)
from ./klastfm:10:in `new'
from ./klastfm:10

I have checked that my path is correct (~/.kde4/share/apps/amarok), but the script does not still work. My config.yaml:

# mysql settings
mysql:
# uncomment this (and correct the path) if you're using amarok with embedded mysql
socket: ~/.kde4/share/apps/amarok/
host: localhost
database: amarok_database
username: amarok_username
password: amarok_password

Could you help me with this?

BTW, I can't find any 'sock' file in the Amarok directory. Is this correct, or am I just looking for it badly?


Reply to this

-

 NoMethodError

 
 by wwmm on: Dec 17 2011
 
Score 63%

Hi, I see this on Arch Linux:

getting all tracks you ever submitted to last.fm (ca. 2000)
get playcount: 100% |ooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:04:56

creating a statistic entry for every track
creating stat: 100% |ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:08

getting all tracks played in the last 356 weeks
./lib/klastfm.rb:84:in `date_tracks': undefined method `each' for nil:NilClass (NoMethodError) | ETA: --:--:--
from ./lib/klastfm.rb:82:in `each'
from ./lib/klastfm.rb:82:in `date_tracks'
from ./klastfm:16
from /opt/ruby1.8/lib/ruby/gems/1.8/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
from /opt/ruby1.8/lib/ruby/gems/1.8/gems/activerecord-3.1.3/lib/active_record/transactions.rb:208:in `transaction'
from ./klastfm:13

My ruby version is 1.8.7_p352 and the rubygems and the rubygems version is: 1.3.7

gem list:

activemodel (3.1.3)
activerecord (3.1.3)
activesupport (3.1.3)
arel (2.2.1)
builder (3.0.0)
crack (0.3.1)
httparty (0.8.1)
i18n (0.6.0)
logger (1.2.8)
multi_json (1.0.4)
multi_xml (0.4.1)
mysql (2.8.1)
progressbar (0.9.2)
tzinfo (0.3.31)

Any help would be much appreciated


w.w.m.m.
Reply to this

-
.

 Re: NoMethodError

 
 by jrub on: Jan 19 2012
 
Score 50%

I got the same on Fedora 16


Reply to this

-

 Re: NoMethodError

 
 by MartinZ on: Feb 20 2012
 
Score 50%

I'm getting a similar error:

./lib/klastfm.rb:20:in `initialize': undefined method `merge' for nil:NilClass (NoMethodError)
from ./klastfm:10:in `new'
from ./klastfm:10

Currently running ArchLinux with ruby 1.8.7

Here are my gems:
activemodel (3.2.1)
activerecord (3.2.1)
activesupport (3.2.1)
arel (3.0.0)
builder (3.0.0)
crack (0.3.1)
fakeweb (1.3.0)
httparty (0.8.1)
i18n (0.6.0)
logger (1.2.8)
multi_json (1.1.0)
multi_xml (0.4.1)
mysql (2.8.1)
progressbar (0.10.0)
tzinfo (0.3.31)
ya2yaml (0.31)

Thanks a lot for the script, I really hope I can get it working.


Reply to this

-

 Debian database

 
 by kirmonkey on: Dec 18 2011
 
Score 50%

It seems there is no .kde4 directory in Debian, all settings are in the original .kde folder.

I took a couple of days away to reflect on the problem and still can't make the breakthrough.

It's worth pushing a solution through as Debian is so widely used and it could prove useful for others.

Thanks in advance.


Richard.


Reply to this

-
.

 First working version

 
 by bitcrazy on: Jun 4 2012
 
Score 50%

0.7 is the first working version for me. Thank you for this tool. Would be nice to merge lastexport.py into klastfm.

m0nk


If men could get pregnant, abortion would be a sacrament.
Reply to this

goto page: prev   1  2  3  4  5 

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

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.