foosic for amaroK
Amarok 1.x Scripts
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:

10 years ago

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

cameos

9 years ago

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.

Report

krigstask

9 years ago

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

Report

krigstask

9 years ago

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

Report

krigstask

9 years ago

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

Report

kalmark

9 years ago

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 :)

Report

krigstask

9 years ago

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

Report

tescov

10 years ago

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?

Report

kalmark

10 years ago

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.

Report

tescov

10 years ago

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

Report

kalmark

10 years ago

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

Report

tescov

10 years ago

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

Report

curbsideproject

10 years ago

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!

Report

kalmark

10 years ago

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 :)

Report

sleepkreep

10 years ago

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

Report

dangle

10 years ago

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

Report

blaster999

10 years ago

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

Report

sleepkreep

10 years ago

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

Report

krigstask

9 years ago

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

Report

10 years ago

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

Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 50%
50.00 Likes
50 Dislikes
Details
version
0.3
updated Jun 02 2006
added May 16 2006
downloads
page views 183
support kalmark
For The Product
foosic for amaroK
5 - 10 - 25 - 50 - 100 - 200 - 500