Page 1 of 1

How can I modify the API to remove the download method?

PostPosted: Sun Jul 18, 2010 5:20 pm
by maestro
:?:
I'd like to open my server up to some friends, but I know that some of these friends will download whatever they want if they have the opportunity to do so.

Disabling downloads works for the web page, but it doesn't prevent an application, for example subsonic SubAir from downloading the files.

I've tried it before, and it was allowed. As a result, I'd like to completely disable the download API.

Will this require me to change code, or is there a property that forces calls to download to always return an error XML file?

Thanks for any tips/info.

PostPosted: Sun Jul 18, 2010 6:34 pm
by brett
I disabled download on a user and tried downloading with the API and got this

Code: Select all
<subsonic-response xmlns="http://subsonic.org/restapi" status="failed" version="1.2.0">
<error code="50" message="jukebox is not authorized to download files."/>
</subsonic-response>


Maybe he's fixed it since you last tried.

PostPosted: Sun Jul 18, 2010 11:32 pm
by maestro
brett wrote:I disabled download on a user and tried downloading with the API and got this

Code: Select all
<subsonic-response xmlns="http://subsonic.org/restapi" status="failed" version="1.2.0">
<error code="50" message="jukebox is not authorized to download files."/>
</subsonic-response>


Maybe he's fixed it since you last tried.


I haven't donated, so it looks like Air will no longer work, but I know that if you allow external players with playlists, you can download the track by simply plugging the URL into a web browser. My gut tells me that if the client to doesn't specifically prevent you from downloading the file, then you can download it.

Interesting side note: My admin user is supposed to have unlimited bandwidth, but it transcodes to 128kb. My normal user is set to 256 and transocdes to 256...time to change admin, since I use it for jukebox mode.

PostPosted: Wed Dec 15, 2010 2:34 am
by mayrken
Did you figure out how to disable a folder from Downloading or Playing?

I need the option to disable PLAY for my MOVIE Folder....I dont have the Bandwidth for people to Play Movie from my Server?

I dont want to do the USER Disable because then they will not be able to play MUSIC.

PostPosted: Mon Jul 18, 2011 4:21 pm
by masterofrpm
easy to fix that. just disable the folder whenever your not using it