Limit Playback per songs

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

Moderator: moderators

Limit Playback per songs

Postby vintendo » Fri Mar 18, 2011 10:30 am

Is there anyway or can someone point me in the Right direction to maybe getting Subsonic to limit the play back of a song to just 1 time a day.

Meaning that your users on your server could listen to any of the songs only 1 time in a 24-48 hour time period.



Can something like this be Done? I don't see how this would be impossible
vintendo
 
Posts: 9
Joined: Sat Mar 05, 2011 9:55 pm

Postby 3R3 » Fri Mar 18, 2011 10:46 am

Impossible is relative to time at hand. And in reasonable time, probably only a feature request can solve your problem. Currently its not possible to do this, and to implement it youd need some place in the DB to save when a user last played a song. Then you could test at starting any song if current date is 24h later than the saved last played for this user. Probably possible, but very tricky, hacky and maybe obsolete after next update. And I'd rather wait for better statistics and permission support from the next official update.
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby vintendo » Fri Mar 18, 2011 11:26 am

thank you for taking the time to Give me some more insight into this whole thing .

These features that you mention what are they Exactly as far as permissions and stats ?
vintendo
 
Posts: 9
Joined: Sat Mar 05, 2011 9:55 pm

Postby 3R3 » Fri Mar 18, 2011 2:05 pm

These are no actual features. I was just saying you should better make a post in the "feature requests" subforum, and then just thought aloud on how this could maybe modded into an existing installation. Nothing final though, only some rough thoughts so it's of no practical use for anyone except some adventurous crafty individual.
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby jaquense » Mon May 30, 2011 6:18 am

The only way I can see to do this is to build your own frontend complete with your own database solution. Since a frontend would be funneling all stream requests through API calls you would have a chance check the number of calls on a file against access stores in your database.

I don't mention this as an actual solution, given the sheer amount of work it would take to build a frontend from scratch to add a single feature. Actually it would make more sense to just download the source and fork your own version...provided you know java, and have tons of time.
jaquense
 
Posts: 47
Joined: Tue Dec 28, 2010 7:06 pm


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 0 guests