
amaroK Web Frontend
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
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 ;)
15 years ago
Added the ability to download individual songs instead of sending a playlist
15 years ago
Added the ability to download individual songs instead of sending a playlist
RipTorn
15 years ago
Cheers
Rip
Report
TanisInGentoo
15 years ago
Report
RipTorn
15 years ago
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
ObsidianX
15 years ago
Report
RipTorn
15 years ago
Cheers
Rip
Report
veysey
15 years ago
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
ObsidianX
15 years ago
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
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
ObsidianX
15 years ago
Report
cptcomic
15 years ago
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
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
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
ObsidianX
15 years ago
Report
darealgege
15 years ago
(and sorry for my bad english again :))
Report
eean
15 years ago
Also, it needs to have the amarokscript.tar.bz2 extension. Thanks.
Now I'll actually rename it, install and try it out. :)
Report
ObsidianX
15 years ago
Report
Octane097
15 years ago
Report
ObsidianX
15 years ago
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
In the artist list, where do the number-prefixed artists go? (ie. 2Pac or 10,000 Maniacs)
Report
ObsidianX
15 years ago
Report
yakhan
15 years ago
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
ObsidianX
15 years ago
Report
raphink
15 years ago
- 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
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
ObsidianX
15 years ago
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