Page 1 of 4

[Resolved] Share with your own domain

PostPosted: Sat Aug 13, 2011 12:43 pm
by GreenTentacle
Before doing anything : BACKUP YOUR SUBSONIC FOLDER !

This is a custom version so if you don't know what your doing : Stop here.


NOTA : I really mean it : DO A BACKUP FIRST ! You'll need it when you'll want to upgrade to the next official version.


How to Install :

- Upgrade your subsonic to at least 4.5beta2
- Stop your subsonic server (sudo /etc/init.d/subsonic stop)
replace the "jsp" and "classes" folders from /var/subsonic/jetty/<some mumbers>/webapp/WEB-INF/ with the ones provided in subsonic-gt.zip
- Relaunch subsonic (sudo /etc/init.d/subsonic start)


After that you can go to settings/network and enter the subsonic url you want to use for sharing

Image




Modified Files (4.6final) :
subsonic-gt.zip
Sources

PostPosted: Sat Aug 13, 2011 2:27 pm
by SparkyRih
Can we also use thsi on 4.5 stable?

PostPosted: Sat Aug 13, 2011 2:35 pm
by dcuellar
This should be a stock feature. I'm not gonna try it though, mostly because you scared the crap out of me with number of times you used the word "backup" in your post.

PostPosted: Sat Aug 13, 2011 3:36 pm
by GreenTentacle
SparkyRih wrote:Can we also use thsi on 4.5 stable?


Yup, no problems



@dcuellar : I'm just a little paranoid ^^

PostPosted: Sat Aug 13, 2011 9:29 pm
by donpearson
Just tried it and it dont seem to work for me :cry:

Also in about it seems to say this as well now 4.5 (build ${buildNumber}) – 13 August 2011

Shame, i was very happy about this mod as well.

PostPosted: Sat Aug 13, 2011 10:03 pm
by SparkyRih
I would love to test this mod, but my entire ubuntu server crashes whenever I upgrade from 4.4 to any hhigher version :S

PostPosted: Sun Aug 14, 2011 12:00 am
by GreenTentacle
donpearson wrote:Just tried it and it dont seem to work for me :cry:

Also in about it seems to say this as well now 4.5 (build ${buildNumber}) – 13 August 2011

Shame, i was very happy about this mod as well.



If the server run and you see 4.5 (build ${buildNumber}) then you've updaded successfully.

If you got an error when you're going to Settings/network then restart subsonic

If you don't see the subsonic url setting in settings/network, clear your browser cache and remove the "jsp" folder in /var/subsonic/jetty/<some numbers>

If you got an error saying you must use a .subsonic.org adress when trying to share something : replace createshare.jsp in /var/subsonic/jetty/<some numbers>/webapp/WEB-INF/jsp with this one : createShare.jsp (I'll update the full package tomorow)

or is it something else ?

Re: [Resolved] Share with your own domain

PostPosted: Tue Aug 16, 2011 2:42 am
by tbmx
I just wanted to say I tried this on the OSX version and it works great. Thanks for putting it together!

For those interested...I extracted "subsonic.app\Contents\Resources\subsonic.war", replaced the files in the WEB-INF folder within the war and re-war the directory via the terminal. Pop the modified "subsonic.war" back in the app and it works fine. I didn't lose any of my settings and it is being used with https.

Re: [Resolved] Share with your own domain

PostPosted: Wed Aug 17, 2011 1:41 pm
by Magica
Hi,

I tested this mod and it works great in my SS server.
In some reaseon when the share link is opened in browser the quality of stream was very bad comparing that when the same file was opened straight in SS. What migth be reason for that?

I have my own domain, not subsonic.org.

Re: [Resolved] Share with your own domain

PostPosted: Wed Aug 17, 2011 2:53 pm
by GreenTentacle
Magica wrote:Hi,

I tested this mod and it works great in my SS server.
In some reaseon when the share link is opened in browser the quality of stream was very bad comparing that when the same file was opened straight in SS. What migth be reason for that?

I have my own domain, not subsonic.org.


This happens with the official and modded version. I think the problem is when sharing the max bitrate isn't set properly. There isn't a combobox to choose the bitrate unlike when direct viewing in ss.

I'll see what i can do to fix this.


Edit :
See http://forum.subsonic.org/forum/viewtopic.php?f=8&t=7646#p30381 for better video quality

Re: [Resolved] Share with your own domain

PostPosted: Fri Aug 19, 2011 6:40 am
by Magica
GreenTentacle wrote:
Magica wrote:Hi,

I tested this mod and it works great in my SS server.
In some reaseon when the share link is opened in browser the quality of stream was very bad comparing that when the same file was opened straight in SS. What migth be reason for that?

I have my own domain, not subsonic.org.


This happens with the official and modded version. I think the problem is when sharing the max bitrate isn't set properly. There isn't a combobox to choose the bitrate unlike when direct viewing in ss.

I'll see what i can do to fix this.


Edit :
See http://forum.subsonic.org/forum/viewtopic.php?f=8&t=7646#p30381 for better video quality


I replaced "externalPlayer.jsp" and shared link quality is now good. Thanks for that!

I haven´t tried the official version of sharing and i have one question about share feature of this mod.
When I choose one song to share in the album and press share-button next to Facebook button. When I open that share link, all the songs from the album are available to listen (stream).
But if I create share link (again one song from the album) via More actions drop down menu, the link open only the chosen song.

Is this supposed to work like that?

But thanks for great mod!

Re: [Resolved] Share with your own domain

PostPosted: Tue Sep 20, 2011 3:49 pm
by osnet
another option to share ( with facebook ) is to write your own script ...

i replaced the original lines for facebook with this :
Code: Select all
        <p>



            <img src="<spring:theme code="shareFacebookImage"/>" alt="">&nbsp;<a

                href="http://MYHOMESERVER.ADDR/sharer.php?u=${model.playUrl}" target="_blank"><fmt:message key="share.facebook"/></a>

        </p>


the sharer.php looks like this :

if you once setup SS with a subdomain of subsonic.org , this value will remain in the settings.
no matter if you disable the network address or if the 30 days are expired

Code: Select all
<?
$url = $_REQUEST['u'];

$toreplace = "BLABLA.subsonic.org";
$replacement = "MYHOMESERVER.ADDR:4040";

$newurl = str_replace($toreplace, $replacement, $url);

$fburl = "http://www.facebook.com/sharer.php?u=".$newurl;

header("Status: 301 Moved Permanently");
header("Location:$fburl");
exit;

?>

Re: [Resolved] Share with your own domain

PostPosted: Thu Nov 03, 2011 3:40 pm
by kleverbear
This looks like what i might have been looking for. I'm trying to have a separate domain name for SS and also avoid using the :4040, will i be able to use it as such?

Re: [Resolved] Share with your own domain

PostPosted: Tue Nov 08, 2011 6:44 pm
by mnksauce
This was working great for 4.5, but I updated to 4.6 beta 1 and it looks like this does not work anymore. Any chance of getting an update?

Thanks!

Re: [Resolved] Share with your own domain

PostPosted: Sat Nov 12, 2011 5:05 pm
by gawee
does this work for 4.6.beta1?