Page 1 of 2

Subsonic Pack version 3.9- 1335 new Update

PostPosted: Mon Feb 15, 2010 6:27 pm
by cyclopes
=====================================================================================
SUBSONIC PACK = 2010.v1.0a
This is tested on

Works on : Windows, Linux Standalone , Ubuntu 9.10 Karmic , ArchLinux VM
=====================================================================================

Thanks to:
----------

*jonathanroz

*3R3

* all users ;)

=====================================================================================
New Window for Uploading music to your Subsonic Windows install standalone version 3.9
+ Search - forward and back button at bottom to now ;)
+ Playlist - have remove the player options at the right site
NOW with rewind and forward button ;) 17/03 -2010
=====================================================================================

Mod info:
=========
New Window for Uploading music to your Subsonic Windows install standalone version 3.9
+ Search - forward and back button at bottom to now ;)
+ Playlist - have remove the player options at the left


====================
Mod info , Log new version 3.9:
====================
# fixd bugs - some script error and more.jsp i have remove the other upload option.
# more.jsp - Changed create random playlist with 50 80 90 100 150 200. orginal is max 50 songs.'
# moree.jsp - script bugs fix - UPDATED 17/03 -10
# Upwin.jsp -
# Search.jsp - forward and back button at bottom to now. ;)
# Playlist.jsp - removed player option at left at the flash player ;)
NOW with forward rewind button 17/03-2010
==============================================
-- TURN OF SUBSONIC BEFORE CHANGES --- !! Can make error if not !!!
==============================================
-- BACKUP --- -- BACKUP --- -- BACKUP ---
==============================================


Download the file here.
http://www.ferietunet.no/subsonic/Subso ... .9_new.zip

PostPosted: Wed Feb 17, 2010 8:09 am
by precipitous
Cyclopes:

Your modifications appear to work perfectly with the Linux Standalone version as well. I am running Ubuntu 9.10 Karmic, and have not experienced a single problem.

Another kick-ass job!

Thanks...

PostPosted: Wed Feb 17, 2010 11:29 pm
by cyclopes
thanks ;)
happy to help ...

Working Great!

PostPosted: Wed Mar 03, 2010 4:34 pm
by idris
Cyclopes:

I wanted to also extend a thank you for this mod and confirm it works on Linux standalone as well. (ArchLinux VM)

Thanks for a great mod to a great program!

PostPosted: Sun Mar 14, 2010 1:53 am
by 3R3
First up, thanks for keeping this mod and the easy to follow instrucions up to date with every new subsonic release.
And second, I have a small suggestion for my favourite mod. this was always the first thing i did after modding a new release of subsonic with cyclopes mod, but somehow i never thought of sharing it...here goes:

This allows you to do this: users will not be able to upload files where they want, thereby messing up any ordering system of yours, and you can always see who uploaded what.
Rather, they will only be able to upload to one folder that is specific for every user. This folder has the same name as the user that wants to upload. Also, subsonic will create it if it doesnt exist.
So you will have something like this if your upload folder is called "incoming":
Code: Select all
incoming
---------bob
------------Song 2.mp3
------------Tribute to Song 3.mp3
---------bill
------------Bills Mixtape
-------------------------file1.mp3
-------------------------file2.mp3
etc etc


find in jetty/1130/webapp/WEB-INF/jsp/moree.jsp:

${model.uploadDirectory}
and replace with
${model.uploadDirectory}/${model.user.username}

now to make the path field in the upload window invisible, find in same file: (just a few characters after the previous change)

<td><fmt:message key="more.upload.target"/></td>
<td><input type="text" id="dir" name="dir" size="37" value="${model.uploadDirectory}/${model.user.username}"/></td>

and change
input type="text"
to
input type="hidden"

Note about permission while creating the users folder: even if that directory does not exist, subsonic will create it, as long as the permissions with which it were startet allow it. Basically it just means that subsonic has to have write permission in the admin-specified upload folder.

Please report back with any feedback, it always worked for me but you never know^^

EDIT: Please note that the functionality of my addition to cyclopes mod has not yet been incorporated into his subsonicpack.zip. You have to add it by hand if you want convenient upload "management".
Also cyclopes, if you want you are free to add my addition to your pack. I only ask for attribution in the changelog, but other than that I consider it "paying it forward". And would be proud to be included into the best mod yet :)

Prepending username mod works perfectly!

PostPosted: Mon Mar 15, 2010 2:11 am
by idris
3R3 - just wanted to say I appreciate you submitting your mod to an already great mod :) I too will be performing your addition once any new pack is released. I have several users who upload against my system and forcing their username at the end will make tracking so much easier and prevent someone from overwriting the same album!

FYI, I also remove the 'checked' from automagically unpack so the files are not cataloged until I process them.

Cheers and thanks again!

NEW UPDATE

PostPosted: Wed Mar 17, 2010 11:01 am
by cyclopes
Have now updated the Subsonic pack ;)

feedback ;)

Cyclopes

PostPosted: Mon Mar 29, 2010 6:17 pm
by twent4
hey guys,
i followed the instructions here and the features are sweet (thanks!) but it seemed to have removed my player selector dropdown. can anyone tell me which line i've possibly deleted to accidentally get rid of it?

PostPosted: Mon Mar 29, 2010 7:00 pm
by cyclopes
player selector dropdown ,
i have removed this but you can get it back open playlist.jsp

find:

<div class="bgcolor2" style="position:fixed; top:0; width:100%;padding-top:0.1em">
<table style="white-space:nowrap;">
<tr style="white-space:nowrap;">
<c:if test="${model.player.web}">
<td style="width:240px; height:20px;padding-left:0.1px;padding-right:10px"><div id="placeholder">


Replace width this:


<div class="bgcolor2" style="position:fixed; top:0; width:100%;padding-top:0.1em">
<table style="white-space:nowrap;">
<tr style="white-space:nowrap;">
<td><select name="player" onchange="location='playlist.view?player=' + options[selectedIndex].value;">
<c:forEach items="${model.players}" var="player">
<option ${player.id eq model.player.id ? "selected" : ""} value="${player.id}">${player}</option>
</c:forEach>
</select></td>
<td>
<c:if test="${model.player.web}">
<td style="width:240px; height:20px;padding-left:0.1px;padding-right:10px"><div id="placeholder">

PostPosted: Mon Mar 29, 2010 7:16 pm
by twent4
thanks cyclopes!

PostPosted: Mon Jun 07, 2010 1:13 pm
by jonathanroz
The mod works on 4.0.1. Tested on Windows and Ubuntu.

Thanks for keeping this going cyclopes.

PostPosted: Mon Nov 01, 2010 9:23 am
by kroken
Is it possible to add something that updates artist to the left when upload is done?

EDIT: fixed this by myself

SUBSONIC PACK 2010

PostPosted: Wed Dec 29, 2010 3:33 am
by cyclopes
Works on version 4.2 ;)

PostPosted: Fri Jan 14, 2011 7:04 pm
by 3R3
If you use this mod on SS 4.3, the player will not load. Heres the fix:

On SS 4.3 you need to change the filename of the JWPlayer in the
subsonic/jetty/2078/webapp/WEB-INF/jsp/playlist.jsp

find
Code: Select all
swfobject.embedSWF("<c:url value="/flash/jw-player-4.4.swf"/>", "placeholder", "340", "20", "9.0.0", false, flashvars, params, attributes);

change to
Code: Select all
swfobject.embedSWF("<c:url value="/flash/jw-player-5.4.swf"/>", "placeholder", "340", "20", "9.0.0", false, flashvars, params, attributes);


Also to make the "more" tab look proper again, in
subsonic/jetty/2078/webapp/WEB-INF/jsp/more.jsp

find
Code: Select all
<h2><img src="<spring:theme code="androidImage"/>" alt=""/>&nbsp;<fmt:message key="more.android.title"/></h2>
<fmt:message key="more.android.text"/>
<h2><img src="<spring:theme code="subairImage"/>" alt=""/>&nbsp;<fmt:message key="more.subair.title"/></h2>
<fmt:message key="more.subair.text"/>
<h2><img src="<spring:theme code="wapImage"/>" alt=""/>&nbsp;<fmt:message key="more.mobile.title"/></h2>
<fmt:message key="more.mobile.text"><fmt:param value="${model.brand}"/></fmt:message>
<h2><img src="<spring:theme code="podcastImage"/>" alt=""/>&nbsp;<fmt:message key="more.podcast.title"/></h2>
<fmt:message key="more.podcast.text"/>

replace with
Code: Select all
<h2><img src="<spring:theme code="androidImage"/>" alt=""/>&nbsp;<fmt:message key="more.apps.title"/></h2>
<fmt:message key="more.apps.text"/>
<h2><img src="<spring:theme code="wapImage"/>" alt=""/>&nbsp;<fmt:message key="more.mobile.title"/></h2>
<fmt:message key="more.mobile.text"><fmt:param value="${model.brand}"/></fmt:message>
<h2><img src="<spring:theme code="podcastImage"/>" alt=""/>&nbsp;<fmt:message key="more.podcast.title"/></h2>
<fmt:message key="more.podcast.text"/>


Though even after doing that my search tab doesnt work and throws a java exception when called. I hope this is due to my fiddling and doesnt happen with other servers. Anyway this is the exception in case someone else does happen to get the same error. I spare you the whole log, but this is the Exception and detail message:
org.springframework.beans.NotReadablePropertyException
Message Invalid property 'offset' of bean class [net.sourceforge.subsonic.command.SearchCommand]: Bean property 'offset' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?


enjoy!

PostPosted: Sat Jan 15, 2011 4:05 am
by cyclopes
Thanks 3R3

:D :D

new mod soon ready for release ;) !!!