foosic for amaroK

Amarok 1.x Scripts

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
"foosic is an automated music database and a playback statistics tracking system. While you listen to your music, the foosic client submits information about which songs you play. Together with the submissions from other users, we can gather a complete database about currently existing albums, artists, compilations, etc..., as well as information about what is popular and what is not.

You can see your own statistics, and, if you allow it, let your friends see what you are listening to and what you like.

You can browse the database on this site and discover new artists or albums that you didn't know about before."

Based on the protocol description I created a ruby script for amaroK so I can update my statistics also from my Linux box.
The script was tested with ruby version 1.8.3 and amaroK 1.3.8 to 1.4. The script depends on Korundum for the config panel.

You can use the amaroK Script manager to install the script.

As I'm no expert neither in ruby nor in Qt, if anyone feels corrections should be made to the script, please tell me so or correct the mistake yourself.

I probably won't add new features unless I'm *really* bored. Or they are useful *and* easy to implement

Oh, and I'm not related in any way to the original foosic developers.
Last changelog:

0.3
- fixed reading username for context menu (now works even before first submission)
0.2
- fix for reading ASCII tags to UTF-8 (thanks to the amaroK Diary script again)
- better Various Artists detection
- no need anymore to restart plugin for username/password changes to take effect


Ratings & Comments

18 Comments

cameos

too bad many submitted international characters show up as garble code from foosic.org site. at the meantime, Amarok itself does good job on submitting correct info to last.fm. So if you only listen English songs that's OK, otherwise don't use this script, it will put tons of junk in your foosic data.

krigstask

Don't see any junk, but tracks with non-standard-Latin (Cyrillic, extended Latin) characters in tags seem not to submit now )-:E

krigstask

Thanks for foosic support, firstly! I got this script working, but I don't understand, why I cannot see "latest subscriptions" on my page, while playcounter number continues to grow, indicating that script is somehow working. Can you tell something about this? (-:E

krigstask

Well... It's been fixed by its own. Somehow (-:E

kalmark

Glad to hear, frankly I had no idea what could have caused the problem. That's why I was taking my time with the answer... I'm guessing server-side problems were the cause, as for me at least the site was quite shaky, but I can only guess. Thanks for using this, anyhow :)

krigstask

Before posting this comment, I tried foobar2000 under Win and it submitted tracks as it always did... And because it was first time I used Amarok with your script, I thought that's regular problem, not reported by that time... I'm glad it was temporary problem! Thanks again for script! (-:E

tescov

For some reason Im not sending information if the tag has unusual letters ie Æ, Is this some thing that cant be fixed or is it on my end?

kalmark

Well, I'm gonna try and look into it, but these days I can't really access my Linux box. I know "special" characters support is kinda flaky in the plugin, because I would have to know the correct character page to get interpret the characters with. I think :) I use a part of the Amarok Diary script for this part, so I'm not 100% sure about how it works and why it would not work exactly. You can get some debug results if you uncomment lines 152, 153 and 156. That's not too much though, but it's worth a try.

tescov

Well Im pretty sure all of them should be supported by UTF-8, I checked to see if Mysql db was saved in utf-8 (But i figured mysqldb has nothing to do with the sent data, only the actual idv tag's) and it was...and the songs are being sent to last.fm, but ill take a look at the output logs. and post them

kalmark

I'd be glad if you'd rather email them to me. Thanks, Mark

tescov

so after a little reading, apparently this is Ruby itself, it has issues with utf-8 i guess, i tried to add the hack that is available for ruby w/o much success, being my ruby knowledge is low, i can read it and know what some of the calls are.. dont know if your interested but if you do a search in google/clusty with utf8+ruby there is quite a lot of stuff about it. whether or not you feel like or even have time to implement it, if you dont thats fine, I like the script and the fact that it works well with every thing other then, albums like NAÏVE or Ænima or bands like Fantomas, any way no big deal.... BTW i was unable to figure out where the debug information is going

curbsideproject

so, i keep trying to use this, and i keep getting this error: ./foosic_cfg.rb:10: uninitialized constant Qt (NameError) from /home/jeff/.kde/share/apps/amarok/scripts/foosic.rb:37 any ideas? im very new to linux, and so i have no idea how to go about fixing this. is it because im running ubuntu? thanks!

kalmark

Well, this error most probably is caused by some missing dependencies, like Korundum, as that handles the Ruby-Qt interaction to show the config screen. So you need to install that, I think. Please tell me if that solves your problem. Thanks for trying the script :)

sleepkreep

Sorry, maybe I'm missing something. But what's the difference between this and last.fm that's already built into amarok?

dangle

nothing as far as I can tell, other than yet another mob who have seen last.fm's success and want a pice o' that tasty thing :D

blaster999

Free Software is all about alternatives, right? So why not another musical statistics site? It won't hurt, for sure

sleepkreep

You're absolutely right, thanks for setting me straight.

krigstask

Also foosic aims for a little bit other goal. To cut a long story short, foosic database could be used for tagging your files using some kind of "fingerprinting". For more info, visit foosic homepage (-:E

Pling
0 Affiliates
Details
license
version 0.3
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Amarok 1.x Scripts:

Gnome Play Video in Totem
mwheatland
last update date: 19 years ago

Score 5.0

editLyrics-gnome
ZeeD
last update date: 19 years ago

Score 5.0

amarok Alarm
aroth
last update date: 16 years ago

Score 5.0

amaroK Web Collection V xmms
pti-jean
last update date: 16 years ago

Score 5.0

SongLogger
lucatnt
last update date: 17 years ago

Score 5.0

amaroK Web Collection
pti-jean
last update date: 16 years ago

Score 5.0



System Tags