amsn-now-listen
Amarok 1.x Scripts
Score 50%
Description:

If you are both a amarok and amsn user, this handy little amarok script will update your personal message with the song you are currently listening!.

Requirements:

Perl
Perl Module IO::Socket
Perl Module Digest::HMAC_MD5
AMSN Remote must be enabled

Instructions:

Once you have this installed, in Script Manager run it then click on Configure. You need to provide your AMSN Profile name and the remote password (so it can modify your PSM).

Todo:

More configuration options, such as:

* Store/Restore original PSM
* Format of songs listing should be configurable. Currently it is Artist - Title (Album).

Please add comments if you have other suggestions.

flywheel

9 years ago

works great on openSUSE 10.3, neat, thx!

Report

hammettbv

8 years ago

Saludos, como lo hizo funcionar? me puede decir por favor q paquetes instaló exactamente pq el HMAC_MD5 no me aparece en ningún repositorio, y cuales son los pasos q siguió? ... gracias

Report

hammettbv

8 years ago

Hi, how you made it work? which packages did you use? and the steps to make it work please... bye

Report

AngelOD

9 years ago

Im having a Problem on Ubuntu 8.04.
I cant configure the plugin, it just wont open the config window and it has not created any config file. Can anyone send me a sample config file ?

Report

pmpopower

9 years ago

Thank you very much, this plugin is wonderful!!
I had a problem with online music... it show the song title only once (when connect to the station) then when the song change amarok update their metadata show info and title but doesn't change anything on amsn.

I test with "Anime Academy Radio" (http://91.121.92.19:8500)

When I play mp3, the plugin work normally and change the message in amsn.

Thanks in advance and sorry for my English. :

Report

pander

9 years ago

Hi Rickster,

Thanks for making version 0.2. I have a feature request that might result in version 0.3.

Can you add an extra variable called "default" which will set amsn personal message when no music is being played. Now this is always set to "", but providing the user the possibility to customise this will improve amsn-now-listen. Note that this "default" will be set without the prefix.

Thanks,

Pander

Report

pander

9 years ago

Please also set this default text when the plugin/script is being disabled or when Amarok application is being stopped.

This ensures that aMSN does not display the same song endlessly when Amarok has long been shut down.

Report

PanderMusubi

9 years ago

The following two patches could result in a versin 0.2 that will offer a custom prefix for what is being displayd. In stead of "Listening to: " the user is asked what to use as prefix. Suggestion provided is (8) which is a note emoticon which is more international and also used by other tools like this.

diff amsn-now-listen/amsn-now-listen.pl ~/.kde/share/apps/amarok/scripts/amsn-now-listen/amsn-now-listen.pl
4c4
< # Version:0.1
---
> # Version:0.2
30c30
< change_psm("Listening to: $a ($b)");
---
> change_psm("$amsn{prefix} $a ($b)");
36c36
< my ($new_name, $new_remote_pass);
---
> my ($new_name, $new_remote_pass, $new_prefix);
39c39,40
< if($new_name ne $amsn{name} || $new_remote_pass ne $amsn{remote_pass}) {
---
> chomp($new_prefix=`kdialog --inputbox "Prefix, e.g. (8) for a note emoticon" "$amsn{prefix}"`);
> if($new_name ne $amsn{name} || $new_remote_pass ne $amsn{remote_pass} || $new_prefix ne $amsn{prefix}) {
41a43
> $amsn{prefix} = $new_prefix;

diff amsn-now-listen/amsn-now-listen.spec ~/.kde/share/apps/amarok/scripts/amsn-now-listen/amsn-now-listen.spec
1c1
< name = Tell AMSN what you are currently listening
---
> name = AmarokAMSN

Report

rickster

9 years ago

Sorry for the late response, I was away on Holiday for 2 weeks and catching up.

Thanks for the patch, I'll make this a version 0.2

Thanks to Pander for the patch, and also Fernando Coronel who also early on mailed me that (8) is preferred.

I'll try to get a newer version up some time today, after catching up with work commitments.

Report

rickster

9 years ago

It's up!

I've made an additional small change for those currently running 0.1 so that they don't need to run configuration again. It will default to (8) if no prefix's have been set.

Report

PanderMusubi

9 years ago

Make sure you have these files:
- HMAC.pm
- HMAC_MD5.pm
- MD5.pm
in /usr/local/lib/site_perl/Digest/ or somewhere else in your @INC path.

You can download them here:
http://search.cpan.org/

Report

heyneken

9 years ago

The scrip no run. I've ubuntu 7.04 x84_64 and I've installed all requirements.

Report

rickster

9 years ago

What is the output you are getting from:

perl -c ~/.kde/share/apps/amarok/scripts/amsn-now-listen/amsn-now-listen.pl

Report

wolfreal

9 years ago

Hi

I can not made this work. If i write in console

$ perl -c ~/.kde/share/apps/amarok/scripts/amsn-now-listen/amsn-now-listen.pl

/home/anunez/.kde/share/apps/amarok/scripts/amsn-now-listen/amsn-now-listen.pl syntax OK

But my psm is not changing. I activated remote server in amsn. Idea?

Thanks, sorry for my bad english

Report

rickster

9 years ago

Make sure the script is configured to start.

Go to Tools -> Script Manager

If the AMSN script isn't running please start it (and make sure you have configured your settings for remote access to amsn).

Report

raycosm

9 years ago

Worked after I installed libdigest-hmac-perl

Report

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.2
updated Nov 28 2007
added Sep 07 2007
downloads today
0
page views today 2