AmaroK XUL Remote
Amarok 1.x Scripts
Description:

Control AmaroK from any Firefox browser on your network.

This AmaroK script embeds a Firefox extension and a HTTP server


FEATURES:
- player manipulation: play, pause, stop, next, previous, seek, volume
- auto refreshing playlist view, plays a given track on click, can delete tracks
- collection browser with filtering, ordered by artist/album
- drag and drop tracks, album and artists to the playlist
- cover view for current track
- access restricted by login/password/IP address

The project developpement is now hosted on: http://sourceforge.net/projects/xul-amarok/
please go there to report bugs or wishes.


REQUIREMENTS:
- python >= 2.3
- pyqt (python QT bindings)
- AmaroK >= 1.4.3
- Firefox >= 1.5

INSTALL:
- Download the archive, then install and run it with AmaroK script manager
- On the first launch, you will be prompted for some parameters:
- interface(optional): the IP adress of your network interface the server will listen on (empty means all)
- port (required): you can leave 8888 as a default
- login/passwd (optional): if you wish to restrict access
- on any host on your network, launch firefox, go to http://amarok_host:8888 , and install the extension
- restart firefox
- launch "AmaroK remote" in the firefox "Tools" menu.
- set the options of the extension to match those on the server

NOTES:
If you get troubles with the configuration interface, you can use this sample xulremote.ini file:

[Debug]
debugajax = off
debugdcop = off

[HttpAuth]
passwd =
login =

[Hosts]
allowed =

[Listen]
interface = 127.0.0.1
port = 8888

of course replace 127.0.0.1 with the IP you want to listen on.
Last changelog:

10 years ago

1.0 - 2007-05-24
- new option to open the remote in a tab
- disable launch by KDE session manager (closes #1614228)

0.9b - 2007-04-30
minor fixes:
- Default server IP address to 127.0.0.1
- No more client hostname lookup
- new window for cover display

0.9a - 2006-11-03
- fix bug [ 1585368 ] Wrong file name transmitted

0.9 - 2006-10-21
- feature: context menus on collection and playlist
- feature: restrict connections from an IP addresses list
- works with firefox2, Amarok 1.4.3
- extension code rewrite

0.8 - 2006-04-30
- feature: delete tracks from playlist (press delete key)
- better playlist refreshing behaviour
- more playlist columns
- bugfix: collection browser now works fine with sqlite
- bugfix: more robust handling of unicode/non-unicode locales

0.7a - 2006-03-01
- bugfix: non resolved IPs could not connect
- no changes to extension

0.7 - 2006-02-25
- login/password authentication (HTTP Basic)
- big changes on the script side, now a pyqt application
- configuration interface
- always use dcop CLI, pydcop no longer required
- unicode bugfixes
- no more javascript warnings
- debugging possibilities, see xulremote.ini

0.6 - 2006-02-12
- unicode support
due to some issues with unicode and pydcop, the command line dcop is used for some actions

- reworked communication layer
uses AJAX instead of XML-RPC, which was designed for ascii

- sliders for seek and volume
adapted from foxytunes (thanks to Alex Sirota)

- amarok message on new connections
- cover view

0.5 - 2006-02-05
- support for firefox 1.5.0.1

0.4 - 2005-10-16
- drag and drop now works with albums and artists
- support for special characters

0.3 - 2005-09-10
- support for firefox 1.5 (won't work anymore with 1.0.x)
- use the new firefox preferences system
- works with amaroK 1.3
- better layout
- collection browser handles compilations
- dropped the Dynamic mode switch

0.2 - 2005-05-03
- Add a party mode enable/disable switch
- corrected bugs in the collection browser
- some cleanups

mbedouet

10 years ago

Hi,
that should be resolved with the last release 0.9b.
and btw, when the script is launched by the Amarok script manager, the config file is read from :
~/.kde/share/apps/amarok/scripts-data/xulremote.ini

Report

gxblast

10 years ago

Hi when i run the script it stops after about .5 second, Tryed dubugging and it shows the .py script gives and error of "Floating Point Exception" I have no idea how to fix this. I'am i missing a lib?

~Gxblast

Report

mbedouet

10 years ago

Hi,

could you post the full output please?

thanks

Report

gxblast

10 years ago

The full out put i get is



Floating Point Exception



And then it quits. Just that one line.

Report

mbedouet

10 years ago

Hi,

You may have problems with your python installation.
what distribution/version are you running?
have you compiled some python modules by yourself?

Report

dustbln

10 years ago

not sure if anyone has mentioned this so far, but the remote app does not know anything about dynamic playlist and therefore gets confused e.g. if you try to play an already played song. in addition support for the queue function would be great. ok, this is more likely a feature request for this great piece of software! ;-)

Report

skralljt

10 years ago

This is an excellent app, though I found that it was far too slow if I loaded, say, 200 songs in the amarok playlist. this may also be because the box amarok is running on is only 1 ghz with 256 mb ram. I am going to go back to running amarok through a remote x session though.
Good job anyway!

Report

computercolin

10 years ago

Looks great, I think this script has a huge amount of potential. Though, there are some things I'd like to see if you can get around to them.

Fix script to get around gaierrors (if the user has their /etc/hosts misconfigured). This would ensure the configuration dialog would always open (even if they do need to fix their /etc/hosts).

Rating control: I really think it would be great if you could rate your songs through the browser!

Otherwise, thumbs up!

Report

foolosophy

10 years ago

After installing the script through Amarok's script manager, I made it run but the config screen never showed up. I tried connecting from a computer in my LAN but couldn't do it. I even tried changing the default port, but I had the same results.

Here's a dump of the script's registry:

[XUL remote] error reading config: won't start HTTPD
[XUL remote] starting readStdin
[XUL remote] error reading config, using defaults
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
self.run()
File "/home/pablo/.kde3.5/share/apps/amarok/scripts/xulremote/XulRemote.py", line 281, in run
self.app = XULRemote( sys.argv )
File "/home/pablo/.kde3.5/share/apps/amarok/scripts/xulremote/XulRemote.py", line 224, in __init__
self.startHttpd()
File "/home/pablo/.kde3.5/share/apps/amarok/scripts/xulremote/XulRemote.py", line 237, in startHttpd
self.configure()
File "/home/pablo/.kde3.5/share/apps/amarok/scripts/xulremote/XulRemote.py", line 258, in configure
self.cnf = ConfigDialog()
File "/home/pablo/.kde3.5/share/apps/amarok/scripts/xulremote/XulRemote.py", line 73, in __init__
ip=socket.getaddrinfo(socket.gethostname(), None)[0][4][0]
gaierror: (-2, 'Nombre o servicio desconocido')


I hope you can help me. Thanks in advance,

Pablo

Report

computercolin

10 years ago

I had the same issue. Based on that gaierror (your locale must be spanish speaking, hablo español un pocito) and it can't get your hostname. I had that error because I never configured /etc/hosts . I use arch linux (I've also used gentoo and it has the same thing) which has a central config file that contains a hostname setting (mine reads HOSTNAME=penguin) but libraries still refer to your /etc/hosts . I changed my /etc/hosts from the default to
127.0.0.1 penguin.localdomain penguin
and now the script runs properly.

Report

gislio

10 years ago

I am running Amarok 1.3.9 under Ubuntu 6.06 and I am having difficulty with the collection view -- it fails to expand to the song level. I select the + in front of the Artist and it expands to a list of Albums, but when I click the + in front of an Album, nothing happens. Consequently I am unable to add songs to the playlist.

I have no other problem. If songs are already there, I can play them without problems, control volume, etc. Swell!

I've tried accessing from Firefox 1.5.x and 2.0.x. Same problem.

Thanks for any suggestions.

Gisli

Report

midna

10 years ago

Whenever I search for something other than an artist all it displays in the results is the Various Artist and when I click on it, everything is there. Regardless of the search. Also, if I search for something I know doesn't exist, Various Artist shows up the same way.

Report

mbedouet

10 years ago

I know the collection browser needs improvements, but that should be done with a DCOP API, on Amarok side for querying the collection.
Anyone interested?

Report

lithium-

10 years ago

Thanks for this great AmaroK script/ff plugin.

I've found one small issue: songs without a value for album set in the id3 tags are not displayed in the treeview of AmaroK XUL Remote.
AmaroK itself just shows 'Unknown' if the album is not set.

Report

mrgreyisyelling

10 years ago

Hey,

So this works for the most part: it loads, plays the music, shows the playlist, and the collection.

What I am having a problem is adding a song doesn't function correctly (drag and drop right?). When I do, the program loads it as a stream with these attributes:

track:0
title:from
year:0
length:0:00

It will do this what ever I add to it. I'm running Ubuntu 6.06, and I'm sort of a newbie at this linux stuff.

Thanks!

Report

mbedouet

10 years ago

Hi,

please could you tell me what Amarok version you're running, I think it's related to a Amarok database shema change in 1.4.2, I've not updated since.

I have to release a new version as soon as I can, to support firefox 2 too.

thanks.

Report

ptitmain

10 years ago

Same bug here. When drag and dropping, the song is not appearing ok (all is at 0). And I cannot play it.

I am using amarok 1.4.3 and firefox 1.5.0.7.

This apps is really excellent !!! I hope you will find the bug because I will use it and use it !!! :-)

Report

Kiloman

10 years ago

I'm getting the same error. I'm using Amarok 1.4.3 and a MySQL backend.

Bounce me an e-mail, I'd be glad to test any fixes.

Report

Kiloman

10 years ago

I managed fix this.

It looks like the new schema prepends '.' to the beginning of the file URLs. I just sliced it off before making the dcop addMedia call in Amarok.py:

self.dcopCall('playlist', 'addMedia', url[1:])

Now the next problem is how to add items where dropped in the playlist, instead of at the end. There's not currently a dcop call to do this, so it would probably take a core patch as well.

Report

mbedouet

10 years ago

Hi,

I'm working on a new release right now,
I can send you a pre-version if you wish to test it before I publish it.

Report

ptitmain

10 years ago

It seems that the new version 0.9 has not fixed the issue. I cannot add anything to the playlist: I tried to drag and drop or to use the right button and click to "append" and nothing happen in the playlist :-(

Maybe I should test with Firefox 2, but I have to wait the release in Debian...

Report

mbedouet

10 years ago

Hi, I assume you're using Amarok 1.4.3, could you enable debug in:
~/.kde/share/apps/amarok/scripts-data/xulremote.ini
and post the output generated when you drag the tracks to the playlist and post it here?

also you could open a bug report on http://sourceforge.net/projects/xul-amarok/
it may be a more convenient place than here to discuss about this issue.

thanks


Report

jstammi

10 years ago

Happens for me, too. Kubuntu Dapper Drake, KDE 3.5.5, amarok 1.4.3. I inquired this at amarok bug db, too, as I feel it wrong to show a title in the playlist but to skip it then silently, see http://bugs.kde.org/show_bug.cgi?id=136761)

Is it in your intention to file a bug for this?

Same question for the issue with unicode (or is it only a problem whenever # is contained somewhere (maybe unicode encoding but maybe the title/artist/... name)? Whenever somewhere any track of the playlist contains a #, the playlist in XUL remote halts until this track disappeared (I use "Random Mix" all day long) or, when initializing, the playlist stays empty (see http://bugs.kde.org/show_bug.cgi?id=136760).



Most important/BTW: GREAT WORK!

Report

mbedouet

10 years ago

Hi,

the drag and drop issue is resolved in the last 0.9a release.

I'll close the bug report on amarok, for future ptoblems with xul-remote, you can use its bug tracker on sourceforge:
https://sourceforge.net/projects/xul-amarok/

about the '#' problem I will try to reproduce this.

thanks for your feedback.

Report

jstammi

10 years ago

Hi,

great, seems to work, thanks!

IMHO you should not close the issue at amarok - except you feel it correct to accept and show a track but not to play it then ... ?

Good luck with the #-issue (affects the WebControl script, too). That is much more annying, as all german "Umlauts" in my collection seem to arrive & # xdbff;& #xde81;-like encoded (this is should result in a ü; I had to add a blank as otherwise this became rendered here), see http://bugs.kde.org/show_bug.cgi?id=136760.

Regards,
Johannes

Report

10 years ago

1.0 - 2007-05-24
- new option to open the remote in a tab
- disable launch by KDE session manager (closes #1614228)

0.9b - 2007-04-30
minor fixes:
- Default server IP address to 127.0.0.1
- No more client hostname lookup
- new window for cover display

0.9a - 2006-11-03
- fix bug [ 1585368 ] Wrong file name transmitted

0.9 - 2006-10-21
- feature: context menus on collection and playlist
- feature: restrict connections from an IP addresses list
- works with firefox2, Amarok 1.4.3
- extension code rewrite

0.8 - 2006-04-30
- feature: delete tracks from playlist (press delete key)
- better playlist refreshing behaviour
- more playlist columns
- bugfix: collection browser now works fine with sqlite
- bugfix: more robust handling of unicode/non-unicode locales

0.7a - 2006-03-01
- bugfix: non resolved IPs could not connect
- no changes to extension

0.7 - 2006-02-25
- login/password authentication (HTTP Basic)
- big changes on the script side, now a pyqt application
- configuration interface
- always use dcop CLI, pydcop no longer required
- unicode bugfixes
- no more javascript warnings
- debugging possibilities, see xulremote.ini

0.6 - 2006-02-12
- unicode support
due to some issues with unicode and pydcop, the command line dcop is used for some actions

- reworked communication layer
uses AJAX instead of XML-RPC, which was designed for ascii

- sliders for seek and volume
adapted from foxytunes (thanks to Alex Sirota)

- amarok message on new connections
- cover view

0.5 - 2006-02-05
- support for firefox 1.5.0.1

0.4 - 2005-10-16
- drag and drop now works with albums and artists
- support for special characters

0.3 - 2005-09-10
- support for firefox 1.5 (won't work anymore with 1.0.x)
- use the new firefox preferences system
- works with amaroK 1.3
- better layout
- collection browser handles compilations
- dropped the Dynamic mode switch

0.2 - 2005-05-03
- Add a party mode enable/disable switch
- corrected bugs in the collection browser
- some cleanups

Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 50%
50.00 Likes
50 Dislikes
Details
version
1.0
updated May 23 2007
added May 01 2005
downloads
page views 1021