[Resolved] Share with your own domain

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

[Resolved] Share with your own domain

Postby GreenTentacle » Sat Aug 13, 2011 12:43 pm

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
Last edited by GreenTentacle on Mon Mar 05, 2012 2:52 pm, edited 4 times in total.
User avatar
GreenTentacle
 
Posts: 18
Joined: Fri Aug 05, 2011 11:54 am

Postby SparkyRih » Sat Aug 13, 2011 2:27 pm

Can we also use thsi on 4.5 stable?
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Postby dcuellar » Sat Aug 13, 2011 2:35 pm

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.
dcuellar
 
Posts: 97
Joined: Sat Feb 05, 2011 3:23 pm

Postby GreenTentacle » Sat Aug 13, 2011 3:36 pm

SparkyRih wrote:Can we also use thsi on 4.5 stable?


Yup, no problems



@dcuellar : I'm just a little paranoid ^^
User avatar
GreenTentacle
 
Posts: 18
Joined: Fri Aug 05, 2011 11:54 am

Postby donpearson » Sat Aug 13, 2011 9:29 pm

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.
Facebook Group:
http://www.facebook.com/groups/subsonic.group/

Image
donpearson
 
Posts: 361
Joined: Wed Oct 15, 2008 3:53 pm
Location: UK

Postby SparkyRih » Sat Aug 13, 2011 10:03 pm

I would love to test this mod, but my entire ubuntu server crashes whenever I upgrade from 4.4 to any hhigher version :S
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Postby GreenTentacle » Sun Aug 14, 2011 12:00 am

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 ?
User avatar
GreenTentacle
 
Posts: 18
Joined: Fri Aug 05, 2011 11:54 am

Re: [Resolved] Share with your own domain

Postby tbmx » Tue Aug 16, 2011 2:42 am

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.
tbmx
 
Posts: 4
Joined: Tue Aug 16, 2011 2:30 am

Re: [Resolved] Share with your own domain

Postby Magica » Wed Aug 17, 2011 1:41 pm

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.
Magica
 
Posts: 22
Joined: Thu Aug 11, 2011 1:46 pm

Re: [Resolved] Share with your own domain

Postby GreenTentacle » Wed Aug 17, 2011 2:53 pm

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
User avatar
GreenTentacle
 
Posts: 18
Joined: Fri Aug 05, 2011 11:54 am

Re: [Resolved] Share with your own domain

Postby Magica » Fri Aug 19, 2011 6:40 am

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!
Magica
 
Posts: 22
Joined: Thu Aug 11, 2011 1:46 pm

Re: [Resolved] Share with your own domain

Postby osnet » Tue Sep 20, 2011 3:49 pm

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;

?>
Version 4.5 (build 2384) – 10. August 2011
Server jetty-6.1.x, java 1.6.0_22, Linux
osnet
 
Posts: 16
Joined: Thu Aug 25, 2011 6:05 am

Re: [Resolved] Share with your own domain

Postby kleverbear » Thu Nov 03, 2011 3:40 pm

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?
Ubuntu 10.04 LTS
Atom @ 1.60GHz, 4 cores 2Gb ram
6 Users

SubSonic 4.6 (build 2585)
2,575 artist
2,053 albums
16,090 songs
288.69GB (~4,484 hours)
User avatar
kleverbear
 
Posts: 48
Joined: Thu Nov 03, 2011 3:34 pm
Location: US, Mexico

Re: [Resolved] Share with your own domain

Postby mnksauce » Tue Nov 08, 2011 6:44 pm

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!
mnksauce
 
Posts: 12
Joined: Tue Dec 08, 2009 7:55 am

Re: [Resolved] Share with your own domain

Postby gawee » Sat Nov 12, 2011 5:05 pm

does this work for 4.6.beta1?
gawee
 
Posts: 28
Joined: Wed Nov 09, 2011 11:27 am

Next

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 8 guests