mirror of
https://github.com/kennethreitz-archive/musicsaver.git
synced 2026-06-05 23:40:18 +00:00
master
Music Saver
===========
Saves your Public MP3s.
Music Request Process:
- user opens music page
- php registers temporary url for user, passes it to players
- players request mp3 from this app
- app checks database for constraints
- if kosher, stream mp3 to user, logs info
- grabs mp3 from server (http authed)
- responds with it (slowly if possible)
Notes:
------
- ``user_id`` is ip address
-
- Block known scrapers
Disable access for known referrals and such.
Install:
components/com_muscol/helpers.php
function getSongFileURL($song){
Configuration:
--------------
SONGS_PER_MINUTE = 3
SONGS_PER_HOUR = 16
SONGS_PER_DAY = 180
URL_EXPIRES_MINUTES = 15
Routes
------
- `/get?song=<url-for-song>`
Returns url for player to use. Good for 15 minutes?
- `/get?song=<url-for-song>`
Returns url for player to use. Good for 15 minutes?
Description
Languages
Python
100%