
amsn-now-listen
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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
12 years ago
Report
hammettbv
12 years ago
Report
hammettbv
12 years ago
Report
AngelOD
12 years ago
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
13 years ago
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
13 years ago
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
13 years ago
This ensures that aMSN does not display the same song endlessly when Amarok has long been shut down.
Report
PanderMusubi
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
- 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
13 years ago
Report
raycosm
13 years ago
Report
rickster
13 years ago
perl -c ~/.kde/share/apps/amarok/scripts/amsn-now-listen/amsn-now-listen.pl
Report
wolfreal
13 years ago
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
13 years ago
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