[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread:
Thread Closed 
[MUSIC] Music Album Browser
10-06-2008, 03:14 PM (This post was last modified: 07-22-2009 12:42 PM by werner.)
Post: #1
[MUSIC] Music Album Browser
Music Album Browser (written in php)

http://de.youtube.com/watch?v=SCYPpEBHrhM

http://rapidshare.com/files/147827290/mab_v05.rar.html

- scans your harddisk
- reads the id3-tags of your mp3
- generates playlists
- fetches missing covers from amazon.de
- supports *cover*.jp , *front*.jpg, *folder*.jpg within your mp3-folder
- supports three different menus
- simple static menu for about 40 albums
- php menu with supportf of searching for artist, genre, year(works only if id3-tags are correct)
- album flow menu (based on michael t's movie flow)

all scripts are very quick and dirty, feel free to customize and optimize the php code. no plans for future releases.


unzip to your harddisk (e.g. folder music)
copy your Albums to the folder MP3
for example my folder structure is

/share/music/mp3

- Artist1
- Album 1
- MP3 1
- MP3 2

- Album 2
- MP3 1
- MP3 2

use ftp client to set permissions for your folder to 777
correct the path to your folder in index.html

browse to index.html
follow instructions

you can set some parameter in the mab.php (eg. max. Album to import at once, fetch cover from amazon, read id3 tags)
be sure that the permissions for the used folder are set to 777
if you have problems set max. Album to 30 or 40, then restart the script as often as you need.

have fun
dd
Find all posts by this user
10-06-2008, 03:32 PM (This post was last modified: 10-06-2008 03:36 PM by excal.)
Post: #2
RE: Music Album Browser
I can say this thing definitly works pretty well.

A couple key points i thought i'd mention from my own using experience.

1. As mentioned, definitly change the max albums to 30 in the mab.php file. (at the top).
-It seems to hang and give an error if you don't.
-No this doesn't mean you can only have a total of 30 albums. Simply run the scan...let it do the 30. After its done those 30....rerun the scan...after those 30...rerun the scan...untill you get to a white screen with a 3 line german message..then its found all your albums.

2. It will not work if you transfer the files via FTP. (atleast not with Filezilla). Transfer them via usb, or SMB, or what ever. Then use the FTP to change the files to 777. I'm not sure why this is the case...but it was for me, and i think Flash had the same problems too.

3. This is all done and created on your popcornhour....except to transfer the files onto your popcornhour, this doesn't require a PC to make the jukebox.
Find all posts by this user
10-06-2008, 03:46 PM
Post: #3
RE: Music Album Browser
Yes, this is definitely a great peace of software Smile

The php menu is my favorite.

Note: There are some characters which make problems in your MP3 folder names...e.g.
Code:
'

Regards,
FLaSH
Find all posts by this user
10-06-2008, 03:51 PM
Post: #4
RE: Music Album Browser
does it support embedded artwork? All my music files have images embedded in them already, and I would rather that be used than the folder art.
Find all posts by this user
10-06-2008, 03:54 PM
Post: #5
RE: Music Album Browser
This looks great! But, is there any way to navigate through the albums besides just scrolling through them all? I'm just thinking that it may be a little tedious if you have a few hundred CD's online! Is there any way to search or jump to a specific letter? I didn't see any navigation controls in the youtube video.

If not, hopefully it'll evolve! I just wished it used a YAMJ-style interface to make navigation a little easier. But, it's a great start! We have a few movie jukeboxes and a music jukebox is badly needed!

Thanks to the author!!!
Find all posts by this user
10-06-2008, 04:09 PM
Post: #6
RE: Music Album Browser
Use the php menu instead of the flow menu, then you have a alphabetical navigation + year + genre
Find all posts by this user
10-06-2008, 04:11 PM
Post: #7
RE: Music Album Browser
i used a php-class named getid3, if getid3 supports embedded artworks, it should be possible.

i think for someone with javascript skills (not me) it would be very easy to extend the navigation for letters and genres..
the flow-menu is only experimental..

im sorry, but i don't have so much time, as all sources are included perhaps someone likes to optimize the code..

cya
dd
Find all posts by this user
10-06-2008, 04:16 PM
Post: #8
RE: Music Album Browser
If I add a new album, will I need to re-run the scan ... or does it automatically add it?
Find all posts by this user
10-06-2008, 04:26 PM
Post: #9
RE: Music Album Browser
(10-06-2008 04:11 PM)digitaldesaster Wrote:  i used a php-class named getid3, if getid3 supports embedded artworks, it should be possible.

i think for someone with javascript skills (not me) it would be very easy to extend the navigation for letters and genres..
the flow-menu is only experimental..

im sorry, but i don't have so much time, as all sources are included perhaps someone likes to optimize the code..

cya
dd

Please, don't apologize! What you've done is absolutely wonderful!!! I didn't realize that there was a "normal" navigation method as well (using php menu). I was under the impression that the Movie-flow style was the only option there was and didn't realize it was acutally just another option (experimental at this point).

Again, great work! I hope you keep expanding on this as the PCH badly needs a better music interface!!!

Thanks again.
Find all posts by this user
10-06-2008, 05:08 PM
Post: #10
RE: Music Album Browser
@alex

Yes you'd have to re-run the scan.

@jt

I agree i'd like to see some way of sorting the list out. The coding is there in movie flow...its a matter of adapting it to this music thing.

I had already begun messing with the details page for the movie flow version...you can include more stuff then it does...unfortunately i haven't gotten a track listing to work yet.

I've also messed with adding the MAB setup scan right to the flow index. So that you don't have to leave the page to rescan your library.

all just experiments so far.... Smile
Find all posts by this user
10-06-2008, 08:09 PM
Post: #11
RE: Music Album Browser
Hmm, any way to get this working with media NOT residing on PCH hard disk? I'd much rather keep my audio stored on my NAS device and stream it. Any way to do that using this app without a complete re-write? Just curious....

Thanks!
Find all posts by this user
10-06-2008, 08:11 PM
Post: #12
RE: Music Album Browser
i can't say for sure...but try pointing the home directory from MP3 to where ever you want.
Find all posts by this user
10-06-2008, 10:34 PM
Post: #13
RE: Music Album Browser
(10-06-2008 08:11 PM)excal Wrote:  i can't say for sure...but try pointing the home directory from MP3 to where ever you want.

that would not work, somebody describes the problem here in the forum a few weeks ago, it is not possible to make a simple "dir" on usb-drive, wonder if nas would work..

its a problem with the rights of the php-user...

perhaps someone has an idea. also like to have my music on usb or something..

cya
dd
Find all posts by this user
10-07-2008, 12:40 PM
Post: #14
RE: Music Album Browser
(10-06-2008 10:34 PM)digitaldesaster Wrote:  
(10-06-2008 08:11 PM)excal Wrote:  i can't say for sure...but try pointing the home directory from MP3 to where ever you want.

that would not work, somebody describes the problem here in the forum a few weeks ago, it is not possible to make a simple "dir" on usb-drive, wonder if nas would work..

its a problem with the rights of the php-user...

perhaps someone has an idea. also like to have my music on usb or something..

cya
dd

I'll see what I can do to get it working from a NAS... Actually, I guess I could always mount the "Music" directory from my NAS to a local PCH directory (via NFS) and make it work that way! I'll install the Music jukebox after work today and mess with it. I'll let you know what I find out.

Thanks again - glad to see someone working on the music functionality of the PCH! I actually still have my Dlink DSM-520 connected just for music, but I would much rather move that device to the bedroom for movies!
Find all posts by this user
10-07-2008, 03:21 PM
Post: #15
RE: Music Album Browser
So i was messing around with this thing last night, and trying to teach myself PHP (and failing misserably).

I was looking to find a way to make it sort the genre's and output a js file for each genre.

I think if i can do that i can rig the flow.html file up to use genre sorting.

What would be the best way to do this? with an array? or an if?

I tried
if ($genre=='Rock')
then i copied the fopen and such and renamed it selrock.js

but that doesn't seem to work
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Information [MUSIC] Music Jukebox Release 8 Download and Installation wandidj 1,484 512,401 03-30-2013 01:36 AM
Last Post: kcstueber
Music [MUSIC] MPD JukeBox (MPDJB) joblo10 378 197,096 01-18-2013 02:57 PM
Last Post: Penfold
  music jukebox with ipad remote wesley2004 0 568 12-26-2012 12:31 AM
Last Post: wesley2004
Exclamation [PHOTO] Generate html photo album PWijnberg 10 6,761 09-07-2012 06:45 PM
Last Post: Franco1s
  What is wrong? music jukebox config help jplinux3 15 2,924 07-23-2012 07:55 AM
Last Post: jluc2808
  Kroozbox- Personal Video Database - PVD (or any DB) and Music Jukebox to Popcorn Hour Nono 383 156,312 07-03-2012 01:52 PM
Last Post: Paul_T
  Any new flash based music jukebox? grey 1 1,320 06-18-2012 12:44 AM
Last Post: accident
  [AUDIO] What about folder.jpg and album art Bergkamp 0 1,062 01-05-2012 04:24 PM
Last Post: Bergkamp
  JUKEBOX w/movie series grouping+VIDEO_TS/ISO TV series episode parsing+music vid+shuf heinza 6 3,668 01-03-2012 02:58 AM
Last Post: gondom
  Music Jukebox Startup colinb 1 3,510 12-11-2011 06:29 PM
Last Post: chris57

Forum Jump: