
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
wabaroK - amaroK script
Version 0.1.3 04/12/2005
Description:
This script offer a web interface to browse amaroK collection.
Features:
- list artists/albums/songs
- list albums of an artist
- list songs of an album (with cover and length)
- stream mp3 files over network
- does NOT need apache nor MySql
- GUI for configuration
- change look via css
Install:
To install, follow the standard amaroK scripts procedure.
See details instuctions in documentation (on the web)
The configuration is done via many kdialog.
You can change (default) :
- Listening port: the port of the webserver (1234)
- Number of columns: for lists display (3)
- cover width/height: for single album display (200 pixels)
- Theme: css file name (default)
Similar scripts:
http://kde-apps.org/content/show.php?content=25398 (not amaroK script)
http://kde-apps.org/content/show.php?content=28867 (static html)
Author: JJL - BuggerOne (at) gmail (dot) com
Web: http://kubuntu.free.fr/wabarok/
License: GNU GPL
15 years ago
0051204 v0.1.3 : fix Content-Type for ogg files
read Collection path from ~/[kdeprefix]/share/config/amarokrc
fix security issue : can read any file on the system
now can only read files in collection folders
(thanks to ntome for reporting)
20051130 v0.1.2 : adapt requests to MySQL syntax (thanks to Dave Cohen)
20051128 v0.1.1 : possible bug in dcop treatment
20051127 v0.1 : first public release
15 years ago
0051204 v0.1.3 : fix Content-Type for ogg files
read Collection path from ~/[kdeprefix]/share/config/amarokrc
fix security issue : can read any file on the system
now can only read files in collection folders
(thanks to ntome for reporting)
20051130 v0.1.2 : adapt requests to MySQL syntax (thanks to Dave Cohen)
20051128 v0.1.1 : possible bug in dcop treatment
20051127 v0.1 : first public release
pernambuco
14 years ago
File "/home/pepe/.kde/share/apps/amarok/scripts/wabaroK/wabaroK.py", line 23, in <module>
class HTTPHandler (SimpleHTTPRequestHandler):
File "/home/pepe/.kde/share/apps/amarok/scripts/wabaroK/wabaroK.py", line 28, in HTTPHandler
dico_artists = dcop.getArtists()
File "/home/pepe/.kde/share/apps/amarok/scripts/wabaroK/amaroKdcop.py", line 18, in getArtists
return dict(self.execSql("select id||'##'||name from artist"))
ValueError: dictionary update sequence element #0 has length 1; 2 is required
Report
cruiseoveride
13 years ago
File "/home/vikky/.kde/share/apps/amarok/scripts/wabaroK/wabaroK.py", line 23, in ?
class HTTPHandler (SimpleHTTPRequestHandler):
File "/home/vikky/.kde/share/apps/amarok/scripts/wabaroK/wabaroK.py", line 28, in HTTPHandler
dico_artists = dcop.getArtists()
File "/home/vikky/.kde/share/apps/amarok/scripts/wabaroK/amaroKdcop.py", line 18, in getArtists
return dict(self.execSql("select id||'##'||name from artist"))
ValueError: dictionary update sequence element #0 has length 1; 2 is required
Report
outeris
14 years ago
its not working
Report
jjl
14 years ago
I have answered in the forum.
Report
Diogy
14 years ago
This script rocks!!! All of my friends were shocked when they saw the website.
However, I noticed that whenever I view an album that has a similar name on another artist (for example: both Backstreet Boys and Earth, Wind & Fire have an album named "Millenium"), only one of them will viewed on the website. Either both will show backstreet boys' album cover or EWF's cover.
Thanks a lot, anyway. :)
Report
jetpeach
14 years ago
Obviously, things that need work are playlists and general interface stuff, I hope you keep up the great work.
Report
karlheinz
15 years ago
Thanks, Val.
Report
karlheinz
15 years ago
(Would use it happily if I wouldn't have killed my simpad web pad :( ).
Thanks for the effort, Val.
Report
jjl
15 years ago
Yes it is not dead :) In fact 0.1.3 does not work with MySQL. I've released a beta version to correct the problem (see on http://kubuntu.free.fr/wabarok/index.php?p=down )
About amaroK 1.4, I think that I'll wait for ubuntu dapper to be released. So that I will just have to install packages (yes I'm lazy ;) )
Report
guillaumeh
15 years ago
In my collection i have some artists who have songs tagged to no album. Is it possible that your web interface displays them directly under the artist section ?
bye
Report
jjl
15 years ago
Well I'm not sure to understand what you'd like. I also have artists without album and they are listed in artists.
But the songs are not listed in the 'Albums of artist' (2nd screenshot). Is it your wish ?
Report
centic
14 years ago
So if you look for a song from Nick Cave, you just see the Albums of Nick Cave, but not a single song that is not assigned to an album in the collection that is from him.
I hope that makes it a bit clearer... Dominik.
Report
Mucki
15 years ago
Report
jjl
15 years ago
I think this will change for next version. I hope to release it by the end of january.
Report
ObsidianX
15 years ago
Report
jjl
15 years ago
So I developed mine. (full story in french on my blog http://kubuntu.free.fr/wordpress/index.php?p=39)
I've added links to thoses scripts in the description.
Report
bugmenot
15 years ago
To convince you, just type
wget 'http://localhost:1234/mp3?url=/etc/fstab' -O -
in a console, and you will get the file /etc/fstab if the user has read access to this file (if you ask for a directory, the script simply crashes).
good bye privacy ! (and maybe security)
Report
jjl
15 years ago
Now it is corrected (0.1.3), the script can only display files within collection directories (from amaroK configuration)
Report
bugmenot
15 years ago
(and my nickname isn't "bugmenot" :) (it comes from the site bugmenot.com that let me add a comment without having to register here), my nickname is "ntome" :) )
now a suggestion :), maybe you could reencod files (with lame for example) so they would be smaller in order to transfer over internet
Report
gryphen
15 years ago
sorry, but developers need to start realizing that not everyone who comes to KDE-APPS is a programmer or Linux/BSD guru.
Report
jjl
15 years ago
You can also look at this script web page (Link at the top), I've made a documentation with Install instructions and screenshots.
http://kubuntu.free.fr/wabarok/index.php?p=doc
Report
gryphen
15 years ago
Report
kriko
15 years ago
Traceback (most recent call last):
File "/home/kriko/.kde/share/apps/amarok/scripts/wabaroK/wabaroK.py", line 23, in ?
class HTTPHandler (SimpleHTTPRequestHandler):
File "/home/kriko/.kde/share/apps/amarok/scripts/wabaroK/wabaroK.py", line 28, in HTTPHandler
dico_artists = dcop.getArtists()
File "/home/kriko/.kde/share/apps/amarok/scripts/wabaroK/amaroKdcop.py", line 13, in getArtists
return dict(self.execSql("select id||'##'||name from artist"))
ValueError: dictionary update sequence element #0 has length 1; 2 is required
What is wrong?
Report
jjl
15 years ago
If it is, this should be corrected with 0.1.1. If not you can set debug=1 in file ~/.kde/share/apps/amarok/scripts/wabaroK/amaroKdcop.py and send me the output and the file ~/.kde/share/apps/amarok/scripts-data/wabaout.log
(maybe by mail because this will be quite huge)
Thank you
Report
kriko
15 years ago
Traceback (most recent call last):
File "/home/kriko/.kde/share/apps/amarok/scripts/wabaroK/wabaroK.py", line 23, in ?
class HTTPHandler (SimpleHTTPRequestHandler):
File "/home/kriko/.kde/share/apps/amarok/scripts/wabaroK/wabaroK.py", line 28, in HTTPHandler
dico_artists = dcop.getArtists()
File "/home/kriko/.kde/share/apps/amarok/scripts/wabaroK/amaroKdcop.py", line 13, in getArtists
return dict(self.execSql("select id||'##'||name from artist"))
ValueError: dictionary update sequence element #0 has length 1; 2 is required
I set debug to 1, but there is no .log output.
Report