share links without use of subsonic.org?

Need help? Post your questions here.

Moderator: moderators

share links without use of subsonic.org?

Postby pir8radio » Tue May 22, 2012 1:30 am

Hi i have my own domain name for my subsonic server... music.notallmine.net I want to allow the sharing function but I do not want to use XXXXX.subsonic.org i cant seem to find in the code where to get rid of XXXX.subsonic.org and insert my domain name... Any help? Direct me where the the variable is? I would be more than happy to just remove the .subsonic.org so what ever i enter under network settings "easy to remember" field will be the full address. For example if i put music.notallmine.net....

So just to be clear i need to know where this info is stored in my install so i can REMOVE .subsonic.org/ string and just allow what is submitted in the network settings as the full url.

Hope i made sense..
pir8radio
 
Posts: 79
Joined: Mon Apr 23, 2012 10:44 pm

Re: share links without use of subsonic.org?

Postby pir8radio » Tue May 22, 2012 2:03 am

i want to do EXACTLY THIS: http://forum.subsonic.org/forum/viewtopic.php?f=8&t=7599&hilit=own+domain with my current version of subsonic which is: 4.7.beta1 (build 2988) – May 14, 2012
pir8radio
 
Posts: 79
Joined: Mon Apr 23, 2012 10:44 pm

Re: share links without use of subsonic.org?

Postby GJ51 » Tue May 22, 2012 3:15 am

I know it's in the que for things to do, but no telling when.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: share links without use of subsonic.org?

Postby hakko » Tue May 22, 2012 7:43 am

I did this exactly, amongst other things, in my mod (viewtopic.php?f=8&t=9504).

The files I changed were ShareService.java and createShare.jsp

https://github.com/hakko/subsonic/blob/ ... rvice.java
https://github.com/hakko/subsonic/blob/ ... eShare.jsp

Notice the difference in method ShareService.getShareBaseUrl().
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: share links without use of subsonic.org?

Postby pir8radio » Wed May 23, 2012 12:55 am

hakko wrote:I did this exactly, amongst other things, in my mod (viewtopic.php?f=8&t=9504).

The files I changed were ShareService.java and createShare.jsp

https://github.com/hakko/subsonic/blob/ ... rvice.java
https://github.com/hakko/subsonic/blob/ ... eShare.jsp

Notice the difference in method ShareService.getShareBaseUrl().



Sweet hakko, that was exactly the reference i was looking for... ill look at your files and find them in mine. Thanks!
pir8radio
 
Posts: 79
Joined: Mon Apr 23, 2012 10:44 pm

Re: share links without use of subsonic.org?

Postby pir8radio » Wed May 23, 2012 1:02 am

thanks again i thought i dug through all the files i must have missed it... The below is exactly what i was hunting for... thanks again!!

public String getShareBaseUrl() {
String host = settingsService.isUrlRedirectionEnabled() ?
settingsService.getUrlRedirectFrom() + ".subsonic.org" :
getCurrentIpAdress() + ":" + settingsService.getPort();
return "http://" + host + "/share/";
pir8radio
 
Posts: 79
Joined: Mon Apr 23, 2012 10:44 pm

Re: share links without use of subsonic.org?

Postby hakko » Wed May 23, 2012 12:59 pm

No problem!
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: share links without use of subsonic.org?

Postby pir8radio » Thu May 24, 2012 3:44 am

Well its not as easy to change as i thought... Im no java programmer.. :-) The new version has the below line:

public String getShareBaseUrl() {
return "http://" + this.settingsService.getUrlRedirectFrom() + ".subsonic.org/share/";
}

But im not good at de-compiling and recompiling. is there anyone that can help me? I have the latest BETA version, that i need to change the above code to:

public String getShareBaseUrl() {
return "http://" + this.settingsService.getUrlRedirectFrom() + "/share/";
}

I assume that will fix my issues....
pir8radio
 
Posts: 79
Joined: Mon Apr 23, 2012 10:44 pm

Re: share links without use of subsonic.org?

Postby hakko » Thu May 24, 2012 7:48 am

In general, this is how you go about:

check out all the code, starting from /subsonic
do your changes to it
make sure you have maven installed. from the command line, run the command "mvn" to check
go to /subsonic/subsonic-main
issue the command "mvn package"
it compiles the code and if everything goes well, there's now a file called /subsonic/subsonic-main/target/subsonic.war which you'll use to replace your current one!

the folder /subsonic might get a different name depending on how you check it out. it could be subsonic-4.7beta1 or something like that.

i recommend using an IDE for altering the code, like Eclipse (there are a few to choose from).
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden


Return to Help

Who is online

Users browsing this forum: No registered users and 36 guests