amaroK Web Frontend

Audio Apps

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

0
5.0
Available as/for: -
Description:

This allows users to access songs that are in the amaroK MySQL database from anywhere (with a little configuration of course).

NOTE: Do not try and install this from within amaroK's "Get New Scripts!" dialog! It is neither built nor packaged to be installed that way. It is to be installed on a PHP ready web server. As of now I have no intentions of ever making it usable through the amaroK "Get New Scripts!" dialog but this always has the potential to change in the future, although I highly doubt that it will ;)
Last changelog:

15 years ago

Added the ability to download individual songs instead of sending a playlist

RipTorn

15 years ago

Well the app Amarok pumps all its SQL to Mysql not post, so I think it would depend if Amarok supported Post, which atm it doesnt: from the top of my head,,,


Cheers
Rip

Report

TanisInGentoo

15 years ago

I'm using gentoo and i've compiled it with postgresql support, so it has the possibility. In fact, i've done the porting (not as hard as i thought, but i don't know php anyway... :P) and it's working! :)

Report

RipTorn

15 years ago

I also forgot to ask.. ;)

I can play songs when I click on their names seperatly, but when I go to load several songs to playlist it seems the player is searching for the mp3's in my webdirectory? as i get an error from amarok saying cannot find mp3 (http://www.website.org/mp3/song.mp3) :\ it only does that when I load a playlist, so playing each song is fine and sweet, but kinda frustrating when at work when trying to load a whole playlist ;) hehe

hope i make a lick of sence

awsome app dude :) gw

Cheers
Rip

Report

C

ObsidianX

15 years ago

ah, totally overlooked the playlists when i switched to streaming. I'll surely fix that.

Report

RipTorn

15 years ago

Ok, Im using the password option which works fine, I can login, but then it wont stream a file... when I have password disabled, I can play any song i like... just wondering where i am going wrong and if anyone else is having the same issues...

Cheers
Rip

Report

veysey

15 years ago

Hi --

Fabulous program. Going to make my time at work much nicer. :)

1. I can't get the album covers to appear in the album info view (as with the Gorillaz screenshot). What needs to be done to enable this? All of my albums within amarok have covers.

Two things happen within amarokPHP. First, for older albums whos covers weren't downloaded by amarok, nothing appears. For albums whos covers were set by amarok, a "no cover found" icon appears. The older albums have directory based covers as well as covers embedded in the mp3 files. I don't know what amarok does.

I'm guessing it populates the database with some sort of cover info when it adds covers. But ... nothing seems to be working quite right, and documentation is hard to come by. Any pointers or help? :)

2. I've installed amarokPHP so that it works over an ssl connection (https). It works surprisingly well as far as the interface, searching, and generating the playlist. So far, though, no actual music. I modified the playlist.php to put the https in the address. I now need to find a player that will handle those sort of addresses / ssl (I'm hoping that mplayerplugin will work). Is this doomed to failure? Anybody have any experience with this?

Again very cool app. Many thanks.

John V

Report

C

ObsidianX

15 years ago

alright, to get the album covers to work you need to have your collection setup in the fashion of each album has its own folder. in each folder you can have an image that is the album cover. when amaroK scans the directories it'll store the image in the `images' table. one script i like in particular that eases this is the CopyCover.py script, which can be found on amaroK's wiki page. this will copy the downloaded covers from amazon into the folder the album resides. this is where the per-folder setup comes into play.... i originally had all my music in one single directory because i would just browse it in the directory. you'll have to organize your collection extensively if you REALLY want album covers but in certain situations its just a waste of time to go through all the trouble. i was able to do it because i was off for summer break and had a lot of time on my hands :P.

anyway, regarding the SSL questions: i've never tried it and i dont know what players will be able to read the SSL connection although i would hope something easy like XMMS or BMP would be able to read it.

as always, feel free to email me and post comments here regarding any issues you may have with my little frontend. i'm always more than happy to respond and help out.

Cheers,
Ryan

Report

alwin

15 years ago

hi,
had some problems with php5 and your script:
* you simply check for $_GET['a'] content
- php prints a lot of errors if just calling index.php.
Insert into global.conf.inc
if (isset($_GET['a'])) {
$choose = $_GET['a'];
} else {
$choose = '';
}

and check against choose overall suppress them and it works.

* $authed will just set when passwords enabled. prints a lot of errors if not.
-> prepend a $authed=0; before check the cookie/session

* you must check the cookie/session array if the value 'amarOK' is part of them (isset($_SESSION['amarOK']) - otherwise lot of warnings.

* [client ::1] PHP Notice: Undefined variable: subtitle in /var/www/html/amarok/index.php on line 134
[client ::1] PHP Notice: Undefined index: parse in /var/www/html/amarok/patTemplate/patTemplate.php on line 1077
[client ::1] PHP Notice: Undefined variable: gentime in /var/www/html/amarok/inc/globals.inc.php on line 126
-> I don't know where this variables should set.

When fixes above applied to your script I've got it working with php5

Hint:
IMHO setting $webloc to
$webloc = "http://".$_SERVER["HTTP_HOST"]."/mp3";

makes more sense for a default value as "ryan" ;)

cu

Alwin
p.s.: for sqlite support take a look to the php-pear system and the DB classes.

Report

C

ObsidianX

15 years ago

wow, thank you very much for all this information! i dont run PHP5 on my machine and neither has anybody i tested on so i didn't get a proper bug report. but i'll be sure to fix all this stuff by the next release. thanks again!

Report

cptcomic

15 years ago

The errors reported above are not triggered because of a specific PHP Version.

Just switch to error_reporting = E_ALL in your php.ini (or at least in your script).


I've uloaded a patch, witch deals with this issues, to http://chris.mifix.com/amarokwebfront.patch

Apply with:
$ patch -p0 < amarokwebfront.patch



HTH && HAND,
chris

Report

cptcomic

15 years ago

It seems you _never_ checked if a variable is set?

Sorry, but I do not have the time right now to fix all this :(

The patch and the comments above should lead the way...

For the users how just want to use this script, write

ini_set('error_reporting', '~E_NOTICE');

at the beginning of index.php. Its will supress the warnings.



HAND,
chris

Report

darealgege

15 years ago

hi,

this is the scrtip that i ever want :)
but how can i set mysql to default sql daemon in amarok? i dont have an option for it, in the options i have only collection above the scrobbler setting. if im right (look at amarok's help) sql settings are above the scrobbler settings.

my amarok is come with suse 9.3

sorry for my bad english :)

Report

C

ObsidianX

15 years ago

in the collection tab under where you select folders you can setup the mysql database :) also, (and i have no idea how suse works) you may need to install a mysql module. i know if you compile it directly (as in the case of gentoo) you have to specify to use mysql. hope this is informative enough and thank you for your comment :)

Report

darealgege

15 years ago

thanks for your respond. the problem was in the amarok which comes with suse, it doesnt contains the sql options. im download and complie amarok 1.3 beta and it contains it. i really love your work, thanks again!

(and sorry for my bad english again :))

Report

eean

15 years ago

This isn't working with the Get New Scripts in amaroK because it links to sourceforge site instead of an actual download location. Its only 97k, you could just upload it to kde-apps.org directly.

Also, it needs to have the amarokscript.tar.bz2 extension. Thanks.

Now I'll actually rename it, install and try it out. :)

Report

C

ObsidianX

15 years ago

its not that kind of a script. its intended to be loaded into an httpd server.

Report

Octane097

15 years ago

How can I get the playlists to play in xmms? I click the link and the playlist opens in xmms but it does not play... thanks for a great app!

Report

C

ObsidianX

15 years ago

there are a few things that could be going wrong here:

1. what output do you have selected?
2. do you have apache (or the http server of choice) setup to be able to share your mp3s?
3. is inc/globals.inc.php fully configured to match your setup?

also check to see if the playlist in xmms shows anything listed, and if not open the file in a text editor and see if it has any php warning in it.

thanks for the comments! :)

Cheers,
ObsidianX

Report

yakhan

15 years ago

One small oversight...

In the artist list, where do the number-prefixed artists go? (ie. 2Pac or 10,000 Maniacs)

Report

C

ObsidianX

15 years ago

ah... i always seem to overlook that part... i'll surely add that in the next version

Report

yakhan

15 years ago

First off, great script. It's way cool.

I just thought I'd tell you it's not rendering under Opera 8.0 (for me at least.) Firefox and Konqueror love it though... thanks!

Report

C

ObsidianX

15 years ago

yeah this is a strange problem im seeing in IE as well... i haven't found out why this is occuring but its something i do need to find out :\

Report

raphink

15 years ago

While I'm reporting bugs and wishes... Here are some things I've noticed :

- bug : if the title variable in inc/global.inc contains spaces or special characters, the playlist file name will contain them too and there will be problems with it. Why not separate the page title variable from the playlist file name variable ?

- wish : you're using playlist files for single tracks, could you provide playlist files for lists aswell ? For example, providing a link on the album infos page to play the entire album with a playlist.

Report

raphink

15 years ago

And one more :

I've been playing around with the CSS. It doesn't contain much. It would be great that styles are entirely defined in the CSS instead of being defined as HTML in the templates, so it could be easily customized :)

Report

C

ObsidianX

15 years ago

thanks for the input here, the bug you mentioned will be taken care of... i didn't build it with a name that had spaces in it so didn't anticipate that

for the wish: this has been addressed a few times by a few different people and i do have plans for this and it will be available in the next release.

1.3 isn't on sourceforge yet because i havent been around to upload it. i'll do that right now so you can get the latest fixes and such.

as for the theming: i've setup the foundation for that and will surely move more into a CSS based theme to make it easier to customize

in response to the memory overflow because of too many songs on the page i've added pagination to the search pages and the browse page and you can set how many results you want per-page in the globals.inc file.

keep the comments coming!

-ObsidianX

Report

15 years ago

Added the ability to download individual songs instead of sending a playlist

12345678910
Be the first to comment
File (click to download) Version Description PackagetypeArchitectureRelease ChannelDevices Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.8
updated Dec 18 2005
added Jun 14 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2