Madsonic - Mashup Mod (old Support Thread)

Madsonic Mashup Mod is a fork of the Subsonic 4.7 Server Build 3090 with some Subsonic Data schema modifications!

Moderator: moderators

Re: Madsonic - Mashup Mod 4.7

Postby MediocreFred » Fri Sep 28, 2012 12:19 pm

jonnymnemo - THANKS so much for your detailed replies and the script!!! I sure hope MadEvil adds your instructions to the OP for others looking for this info.

One question. Is it always required/recommended to be on the latest DEB version before installing the latest WAR (assuming the WAR is a newer build than the latest DEB build)?

So, always get the latest DEB and install it. After this, If there is a newer WAR, install that too. Is this how it is supposed to be done?

Also, any thoughts on how I would go about hiding certain menu items or links on pages from certain users (either hide <certain features> from user "guest" or only show <certain features> for users with "admin" role.)? I have Sindre's Subsonic installed on another server (Windows) and there, I have edited JSP files under the jetty/nnnn/... folder to selectively hide/show menu items; have to remember to replace my tweaked files after every update. Since Madsonic has much more frequent updates, it gets cumbersone to repackage subsonic.war with tweaked files each time. Any suggestions? Is there a jetty folder in Linux too?

Thanks!
MediocreFred.
MediocreFred
 
Posts: 35
Joined: Tue Oct 05, 2010 4:19 pm

Re: Madsonic - Mashup Mod 4.7

Postby jonnymnemo » Fri Sep 28, 2012 12:26 pm

MediocreFred wrote:jonnymnemo - THANKS so much for your detailed replies and the script!!! I sure hope MadEvil adds your instructions to the OP for others looking for this info.

One question. Is it always required/recommended to be on the latest DEB version before installing the latest WAR (assuming the WAR is a newer build than the latest DEB build)?

So, always get the latest DEB and install it. After this, If there is a newer WAR, install that too. Is this how it is supposed to be done?

Also, any thoughts on how I would go about hiding certain menu items or links on pages from certain users (either hide <certain features> from user "guest" or only show <certain features> for users with "admin" role.)? I have Sindre's Subsonic installed on another server (Windows) and there, I have edited JSP files under the jetty/nnnn/... folder to selectively hide/show menu items; have to remember to replace my tweaked files after every update. Since Madsonic has much more frequent updates, it gets cumbersone to repackage subsonic.war with tweaked files each time. Any suggestions? Is there a jetty folder in Linux too?

Thanks!
MediocreFred.


You're welcome ! :D
Yes, I would recommend to install the latest .deb version before, because some files not included in the .war package might have been changed (most of times they are not, but just in case).
For your menu hiding thing, I can't answer to you, I really know nothing about java. I suppose it could be a feature to add, but it doesn't seem to be implemented yet.
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

Re: Madsonic - Mashup Mod 4.7

Postby jonnymnemo » Fri Sep 28, 2012 3:01 pm

Small bugfix for the script. One line was not working (in the .deb part). That's OK now.
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

Re: Madsonic - Mashup Mod 4.7

Postby rixton » Sun Sep 30, 2012 9:34 am

Really love this mod, I however got some issues with loading large folders containing about ~10 000 albums, it seems to load fine, but after a while the browser just freezes (and the CPU runs up), finally I have to force-quit it
Gets the same issue in both Chrome, Firefox and Safari

The server dont get any high CPU/RAM usage at all
Have tried to do an complete re-install but always ends with the same results

I have no issue´s loading the same folder when using the original Subsonic 4.7 (even though it takes some time to load the folder)
rixton
 
Posts: 5
Joined: Wed May 04, 2011 8:11 pm

AW: Re: Madsonic - Mashup Mod 4.7

Postby MadEvil » Sun Sep 30, 2012 11:34 am

MediocreFred wrote:Hello,

Long time Subsonic user, but, noobie to this mod (or any mod for that matter).

I have installed this on a brand new server running Ubuntu. So far, everything looks good. I have 2 questions that I'd appreciate help with.

1. To install newer builds, do I just download the most recent war.zip, extract the 3 files, shutdown Subsonic service, replace the 3 files and tart the service back up? Is this the recommended approach?

2. On my music server, the bulk of the users are going to be anonymous (logging in as guest/guest). So, for the guest user, I would like to disable a few of the menu options and also the whole Search bar (Search Google Wikipedia ...) that appears on the Playing page. What is the easiest way to "security-trim" the menu buttons as well as the Search Bar? Also, any way of disabling the page that shows up when clicking on the Subsonic logo (top-left) for guest users? Ideally, can some of these be added to the settings so I don't have to hack code with each new build?

Thanks,
MediocreFred.

Hi there,
In the next build i add a new role as feature to your question, so you can disable and cut down thr search functions in the interface for each user.

Best regards
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

AW: Re: Madsonic - Mashup Mod 4.7

Postby MadEvil » Sun Sep 30, 2012 11:39 am

jonnymnemo wrote:Hi MadEvil !
Your last update is very good ! No bugs encountered since I installed it. :D

Although, the thread about your mod is starting to be a little messy, with feature requests, help requests, bugs discussions, tips for installation...
I think it would be a good idea to have different sections for each topic, either in the subsonic forum, or in a dedicated forum.

What do you think ?

Hi,
Yes you are right, next month i am going to start a new platform with own forum and more. :grin:
Best regards
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

AW: Re: Madsonic - Mashup Mod 4.7

Postby MadEvil » Sun Sep 30, 2012 11:44 am

jonnymnemo wrote:Mediocrefred :
With a war package, you can easy update your madsonic.
Unzip the files in the /usr/share/subsonic folder, then in the same folder do a
Code: Select all
chmod +x *

If you don't, subsonic won't be able to start.

In summary (you have to be in root):
Code: Select all
service subsonic stop
cd /usr/share/subsonic
wget put_the_link_to_the_file -O the_name_you_want_to_give_it.zip
unzip the_name_you_want_to_give_it.zip
chmod +x *
service subsonic start


All builds don't have deb, ok, but the installation with a war package is quite as easy ! :wink:


Great work!Thank you, i am sure this would help other user!

Best regards
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

AW: Re: Madsonic - Mashup Mod 4.7

Postby MadEvil » Sun Sep 30, 2012 11:51 am

rixton wrote:Really love this mod, I however got some issues with loading large folders containing about ~10 000 albums, it seems to load fine, but after a while the browser just freezes (and the CPU runs up), finally I have to force-quit it
Gets the same issue in both Chrome, Firefox and Safari

The server dont get any high CPU/RAM usage at all
Have tried to do an complete re-install but always ends with the same results

I have no issue´s loading the same folder when using the original Subsonic 4.7 (even though it takes some time to load the folder)

did you tryed to increase the memory?
Best regards
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

Re: AW: Re: Madsonic - Mashup Mod 4.7

Postby rixton » Sun Sep 30, 2012 1:41 pm

MadEvil wrote:
rixton wrote:Really love this mod, I however got some issues with loading large folders containing about ~10 000 albums, it seems to load fine, but after a while the browser just freezes (and the CPU runs up), finally I have to force-quit it
Gets the same issue in both Chrome, Firefox and Safari

The server dont get any high CPU/RAM usage at all
Have tried to do an complete re-install but always ends with the same results

I have no issue´s loading the same folder when using the original Subsonic 4.7 (even though it takes some time to load the folder)

did you tryed to increase the memory?
Best regards

Yeah, has tried to increase it up to 4GB with the same issue
The server is running FreeBSD, but there does not seem to be any issue on the server-side, it is only the brower on the client-computer that freezes
If I just quit the brower and re-open it again the server is still active and works fine to use (unless I browse the same folders again of course)

Dont know if it has anything to do with it, but the folder contains only symlinks (the smaller folders that works fine are also only using symlinks)
rixton
 
Posts: 5
Joined: Wed May 04, 2011 8:11 pm

Re: Madsonic - Mashup Mod 4.7

Postby jonnymnemo » Mon Oct 01, 2012 12:17 pm

rixton wrote:Really love this mod, I however got some issues with loading large folders containing about ~10 000 albums, it seems to load fine, but after a while the browser just freezes (and the CPU runs up), finally I have to force-quit it
Gets the same issue in both Chrome, Firefox and Safari

The server dont get any high CPU/RAM usage at all
Have tried to do an complete re-install but always ends with the same results

I have no issue´s loading the same folder when using the original Subsonic 4.7 (even though it takes some time to load the folder)


10000 in one folder !!!????? :shock:
OK, here is the problem ! Even if it doesn't crash with the original subsonic, it must take ages to load the page (even more when it is remotely, with your phone for example) !!!!
To give you an example, I have a "junk" folder which contains 3269 songs and folders... The main.view page weights ...11,6 Mb !!!

In subsonic, you have to organise better you music, at a minimum like this : /Artist/Album/song

To quote from A Practical Guide to Installing and Configuring SubSonic, by Shane R. Monroe, Monroeworld.com (http://monroeworld.com/android/subsonic/)

SubSonic assumes you are controlling your music storage hierarchy. This means that the program assumes you are organizing your music via the file system, not by "tags" embedded in the music files.

The term "album" is synonomous with "folder". On SubSonic's Home screen, when it says it's displaying 10 albums, it's really displaying 10 FOLDERS (which it assumes is a collection of songs on a particular album).

So, if all your music is in one big folder (shame on you) and you are relying on some music player to organize and display the music in some hierarctical format, SubSonic is going to be painful for you. SubSonic assumes that the ROOT of your music folder doesn't have music in it - but is INSTEAD filled with ARTISTS folders. Within the ARTISTS there are ALBUMS folders (which are their own folders) and within those albums are SONGS on that album.

In fact, songs that are on the ROOT of your music folders will NOT show up in the Android SubSonic app for playback - despite the fact that you CAN get to them from the web interface. Make sure all your music is in a folder off the music folder you have specified.
[...]
BEST METHOD (cover art should be accurate, etc) :
C:\MUSIC\JOURNEY\FRONTIERS\JOURNEY - SEPARATE WAYS.MP3
C:\MUSIC\JOURNEY\GREATEST HITS\JOURNEY - WHEEL IN THE SKY.MP3
C:\MUSIC\JAMES BROWN\GREATEST HITS\JAMES BROWN - I FEEL GOOD.MP3
C:\MUSIC\JANET JACKSON\RHYTHM NATION\JANET JACKSON - RHYTHM NATION.MP3
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

Re: Madsonic - Mashup Mod 4.7

Postby jonnymnemo » Mon Oct 01, 2012 12:42 pm

Hi Madevil.

I found a bug using chrome with your latest build (3132) :

When you have a list of songs in the player, if you want to scroll down to the bottom of the list, and you use the down arrow too much times, it continues to scroll down itself, and you can't scroll up anymore. It sticks to the bottom of the list, and the only thing to do is to reload the page (or only the player), and not use the down arrow anymore (you can use the slide pad between the up and down arrow).

I tried to reproduce this in firefox and internet explorer, but the bug seems to affect only chrome.

By the way, did you have some time to test my update script ? Do you have any ideas to improve it, and new features suggestions ?
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

Re: Madsonic - Mashup Mod 4.7

Postby rixton » Mon Oct 01, 2012 12:47 pm

jonnymnemo wrote:
rixton wrote:Really love this mod, I however got some issues with loading large folders containing about ~10 000 albums, it seems to load fine, but after a while the browser just freezes (and the CPU runs up), finally I have to force-quit it
Gets the same issue in both Chrome, Firefox and Safari

The server dont get any high CPU/RAM usage at all
Have tried to do an complete re-install but always ends with the same results

I have no issue´s loading the same folder when using the original Subsonic 4.7 (even though it takes some time to load the folder)


10000 in one folder !!!????? :shock:
OK, here is the problem ! Even if it doesn't crash with the original subsonic, it must take ages to load the page (even more when it is remotely, with your phone for example) !!!!
To give you an example, I have a "junk" folder which contains 3269 songs and folders... The main.view page weights ...11,6 Mb !!!

In subsonic, you have to organise better you music, at a minimum like this : /Artist/Album/song

To quote from A Practical Guide to Installing and Configuring SubSonic, by Shane R. Monroe, Monroeworld.com (http://monroeworld.com/android/subsonic/)

SubSonic assumes you are controlling your music storage hierarchy. This means that the program assumes you are organizing your music via the file system, not by "tags" embedded in the music files.

The term "album" is synonomous with "folder". On SubSonic's Home screen, when it says it's displaying 10 albums, it's really displaying 10 FOLDERS (which it assumes is a collection of songs on a particular album).

So, if all your music is in one big folder (shame on you) and you are relying on some music player to organize and display the music in some hierarctical format, SubSonic is going to be painful for you. SubSonic assumes that the ROOT of your music folder doesn't have music in it - but is INSTEAD filled with ARTISTS folders. Within the ARTISTS there are ALBUMS folders (which are their own folders) and within those albums are SONGS on that album.

In fact, songs that are on the ROOT of your music folders will NOT show up in the Android SubSonic app for playback - despite the fact that you CAN get to them from the web interface. Make sure all your music is in a folder off the music folder you have specified.
[...]
BEST METHOD (cover art should be accurate, etc) :
C:\MUSIC\JOURNEY\FRONTIERS\JOURNEY - SEPARATE WAYS.MP3
C:\MUSIC\JOURNEY\GREATEST HITS\JOURNEY - WHEEL IN THE SKY.MP3
C:\MUSIC\JAMES BROWN\GREATEST HITS\JAMES BROWN - I FEEL GOOD.MP3
C:\MUSIC\JANET JACKSON\RHYTHM NATION\JANET JACKSON - RHYTHM NATION.MP3


It takes about 1min to load the page remotely, which is pretty ok.
Re-organizing the folders are not an option, than I´d rather stick with the regular Subsonic setup

The folders are sorted by Genre, and not by artist. Not the best choice for Subsonic, but the artist-sorting is not an option at this moment
rixton
 
Posts: 5
Joined: Wed May 04, 2011 8:11 pm

Re: AW: Re: Madsonic - Mashup Mod 4.7

Postby MadEvil » Mon Oct 01, 2012 2:52 pm

rixton wrote:
MadEvil wrote:
rixton wrote:Really love this mod, I however got some issues with loading large folders containing about ~10 000 albums, it seems to load fine, but after a while the browser just freezes (and the CPU runs up), finally I have to force-quit it
Gets the same issue in both Chrome, Firefox and Safari

The server dont get any high CPU/RAM usage at all
Have tried to do an complete re-install but always ends with the same results

I have no issue´s loading the same folder when using the original Subsonic 4.7 (even though it takes some time to load the folder)

did you tryed to increase the memory?
Best regards

Yeah, has tried to increase it up to 4GB with the same issue
The server is running FreeBSD, but there does not seem to be any issue on the server-side, it is only the brower on the client-computer that freezes
If I just quit the brower and re-open it again the server is still active and works fine to use (unless I browse the same folders again of course)

Dont know if it has anything to do with it, but the folder contains only symlinks (the smaller folders that works fine are also only using symlinks)


I hope i understand this right. Do you mean your server hardware or the subsonic config has 4 GB Memory allocated.

You can change the memory for the application under
Code: Select all
/etc/sysconfig/subsonic


Default Memory is 150MB so this can be the bottleneck in your case.

best regards
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

Re: Madsonic - Mashup Mod 4.7

Postby MadEvil » Mon Oct 01, 2012 2:56 pm

jonnymnemo wrote:Hi Madevil.

I found a bug using chrome with your latest build (3132) :

When you have a list of songs in the player, if you want to scroll down to the bottom of the list, and you use the down arrow too much times, it continues to scroll down itself, and you can't scroll up anymore. It sticks to the bottom of the list, and the only thing to do is to reload the page (or only the player), and not use the down arrow anymore (you can use the slide pad between the up and down arrow).

I tried to reproduce this in firefox and internet explorer, but the bug seems to affect only chrome.

By the way, did you have some time to test my update script ? Do you have any ideas to improve it, and new features suggestions ?


hi,
i will check this scroll bug in the next build later this week, also i will test your script!
best regards
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

Re: Madsonic - Mashup Mod 4.7

Postby azkreationz » Mon Oct 01, 2012 7:07 pm

This might have been addressed already, not sure, I'm having an issue where all albums are listed twice like there's a duplicate in the DB. The only way to fix it is to delete the DB and re-scan all files, but then when it runs its nightly maintenance, and looks for new albums again - the duplicates return. Anyone else having this issue?
Image



Version 4.7 (build 3132) – September 26, 2012 – (Moded by MadEvil)
Server jetty-6.1.x, java 1.7.0_05, Windows 7 (59.2 MB / 134.6 MB)
azkreationz
 
Posts: 8
Joined: Mon Mar 26, 2012 6:45 am

PreviousNext

Return to Madsonic

Who is online

Users browsing this forum: No registered users and 13 guests