Description: amarokNowPlaying is an amaroK script that generates two types of files: a text file (nowplaying.txt) with loads of information about the currently played track and the playlist's settings and images with the album cover, artist and track name plus an image which you can use in your signature or similiar. (take a look at the screenshots)
Please send me any comments, critique and/or suggestions
have fun
Since some people voted 'bad' I would like to now what they found bad to enhance my script, so PLEASE: write a comment!
You'll need: o ImageMagick o lftp o kdialogLast changelog:
Added FTP support Added KDialog support (Many thanks to Aitor Moreno)
I CHANGED TO GNOME AND QUODLIBET, SO I CAN'T PUBLISH ANY NEW VERSION!
I have write similar script,but you don't need imagemagick to use it, either FTP. Just kdialog + wget. :)
http://www.kde-apps.org/content/show.php/amarokNP?content=104231
I want some feedback. Thanks you. :)
ok, i got it to upload on my server now.
only that images are created and the text, but not the image combined with the info.
what do i have to do to get this working like your first screenshot?
i get this via console:
~/.kde/share/apps/amarok/scripts$ amarokNowPlaying
convert: unable to read font `/usr/share/fonts/type1/gsfonts--with-magick-plus-plus/n019003l.pfb'.
convert: unable to open image `nowplaying_text.png': Datei oder Verzeichnis nicht gefunden.
ftp: u: unknown option
Uhm, dunno what's wrong with this, but ftp won't work here. had to replace line 241 in the script with
---snip---
lftp -c "open -u $ftp_user,$ftp_password ftp://$ftp_host/$ftp_dir/; put nowPlaying.txt nowplaying.png"
---snap---
to get this upload anything. of course, you need lftp for this.
First: Love the script, will be very useful.
Only problems:
It only seems to create a new output when the next file starts playing if it is stopped and started again. Any thoughts?
Second I have lftp and the files still aren't being uploaded to my website, is there any way to see a verbose output to check that no errors are being thrown by my server?
yes, you can run it via commandline. The script is listening on stdin for input. Just take a look at the sourcecode or the amarok-wiki to see whicht commands amarok sends.
I'm pretty sure, that I'll have some holidays next week. There are several things that must be fixed and one guy ported the whole thing to use kdialog.
How does it work, i set the config file with my ftp server, username, password, the directory but it just won't upload the file. Any dependencies/programs needed?
Running Gentoo Linux, amarok 1.3.2 with kde 3.4.1 and the most recent version of this script.
Thanks
my only complaint so far with this script is that it seems to have difficulty with printing unicode characters to the images. a good portion of my music has Japanese tags, and it's a little confusing (and frustrating) that they're not displayed correctly.
In fact, I found your script so intriguing, that I decided to play with it a bit!
I've created a PHP webpage that takes selective output from amarokNowPlaying and displays it on a webpage and nicely formats it.
To see it in action (When I'm online..): http://mystra.homelinux.net/~mishura/amarok/index.php
To download the source code and my modifications, go here: http://mystra.homelinux.net/~mishura/amarok/nowPlayingParse_src.tar.gz
Keep in mind that I'm a complete PHP newb, and I'm only just learning the language. Enjoy!
-- Mishura
Mishura AT Gmail DOT com
In fact, I found your script so intriguing, that I decided to play with it a bit!
I've created a PHP webpage that takes selective output from amarokNowPlaying and displays it on a webpage and nicely formats it.
To see it in action (When I'm online..): http://mystra.homelinux.net/~mishura/amarok/index.php
To download the source code and my modifications, go here: http://mystra.homelinux.net/~mishura/amarok/nowPlayingParse_src.tar.gz
Keep in mind that I'm a complete PHP newb, and I'm only just learning the language. Enjoy!
-- Mishura
Mishura AT Gmail DOT com
Ratings & Comments
18 Comments
I have write similar script,but you don't need imagemagick to use it, either FTP. Just kdialog + wget. :) http://www.kde-apps.org/content/show.php/amarokNP?content=104231 I want some feedback. Thanks you. :)
I have improved this by changing 'ftp' to 'lftp' and adding the Album name. How can I submit my changes?
Hi, could I get help installing and configuring this? this sn is my AIM if u can get at me there. Sorry, thanks!
(The Kdialogue support one). An error occurred while loading http://www.kde-apps.org/content/download.php?content=24449&id=2: Malformed URL http://.
ok, i got it to upload on my server now. only that images are created and the text, but not the image combined with the info. what do i have to do to get this working like your first screenshot?
what i mean is that the "nowplaying_text.png" is not generated (; any ideas?
i get this via console: ~/.kde/share/apps/amarok/scripts$ amarokNowPlaying convert: unable to read font `/usr/share/fonts/type1/gsfonts--with-magick-plus-plus/n019003l.pfb'. convert: unable to open image `nowplaying_text.png': Datei oder Verzeichnis nicht gefunden. ftp: u: unknown option
Uhm, dunno what's wrong with this, but ftp won't work here. had to replace line 241 in the script with ---snip--- lftp -c "open -u $ftp_user,$ftp_password ftp://$ftp_host/$ftp_dir/; put nowPlaying.txt nowplaying.png" ---snap--- to get this upload anything. of course, you need lftp for this.
First: Love the script, will be very useful. Only problems: It only seems to create a new output when the next file starts playing if it is stopped and started again. Any thoughts? Second I have lftp and the files still aren't being uploaded to my website, is there any way to see a verbose output to check that no errors are being thrown by my server?
yes, you can run it via commandline. The script is listening on stdin for input. Just take a look at the sourcecode or the amarok-wiki to see whicht commands amarok sends. I'm pretty sure, that I'll have some holidays next week. There are several things that must be fixed and one guy ported the whole thing to use kdialog.
How does it work, i set the config file with my ftp server, username, password, the directory but it just won't upload the file. Any dependencies/programs needed? Running Gentoo Linux, amarok 1.3.2 with kde 3.4.1 and the most recent version of this script. Thanks
Yes, you'll need lftp. Didn't know that, when I programmed it, sorry
my only complaint so far with this script is that it seems to have difficulty with printing unicode characters to the images. a good portion of my music has Japanese tags, and it's a little confusing (and frustrating) that they're not displayed correctly.
yeah... seems to be ImageMagick's fault. sorry.
How can it be fixed?
I don't know why people vote 'bad' for this script. It's really great !
In fact, I found your script so intriguing, that I decided to play with it a bit! I've created a PHP webpage that takes selective output from amarokNowPlaying and displays it on a webpage and nicely formats it. To see it in action (When I'm online..): http://mystra.homelinux.net/~mishura/amarok/index.php To download the source code and my modifications, go here: http://mystra.homelinux.net/~mishura/amarok/nowPlayingParse_src.tar.gz Keep in mind that I'm a complete PHP newb, and I'm only just learning the language. Enjoy! -- Mishura Mishura AT Gmail DOT com
In fact, I found your script so intriguing, that I decided to play with it a bit! I've created a PHP webpage that takes selective output from amarokNowPlaying and displays it on a webpage and nicely formats it. To see it in action (When I'm online..): http://mystra.homelinux.net/~mishura/amarok/index.php To download the source code and my modifications, go here: http://mystra.homelinux.net/~mishura/amarok/nowPlayingParse_src.tar.gz Keep in mind that I'm a complete PHP newb, and I'm only just learning the language. Enjoy! -- Mishura Mishura AT Gmail DOT com