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

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

Moderator: moderators

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

Postby maestro » Sun Jul 18, 2010 5:20 pm

:?:
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.
maestro
 
Posts: 7
Joined: Thu Apr 01, 2010 12:46 pm

Postby brett » Sun Jul 18, 2010 6:34 pm

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.
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby maestro » Sun Jul 18, 2010 11:32 pm

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.
maestro
 
Posts: 7
Joined: Thu Apr 01, 2010 12:46 pm

Postby mayrken » Wed Dec 15, 2010 2:34 am

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.
mayrken
 
Posts: 11
Joined: Sat Oct 30, 2010 6:32 am

Postby masterofrpm » Mon Jul 18, 2011 4:21 pm

easy to fix that. just disable the folder whenever your not using it
masterofrpm
 
Posts: 9
Joined: Wed Jul 13, 2011 5:13 am


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 6 guests