Page 1 of 1
Limit Playback per songs

Posted:
Fri Mar 18, 2011 10:30 am
by vintendo
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

Posted:
Fri Mar 18, 2011 10:46 am
by 3R3
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.

Posted:
Fri Mar 18, 2011 11:26 am
by vintendo
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 ?

Posted:
Fri Mar 18, 2011 2:05 pm
by 3R3
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.

Posted:
Mon May 30, 2011 6:18 am
by jaquense
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.