change stream key to static global

This commit is contained in:
Xevion
2019-12-25 02:48:26 -06:00
parent b4d52fd7df
commit 98df7c7338

View File

@@ -44,7 +44,7 @@ def downloadLimiter():
# Streams back the specified media back to the client
@app.route('/stream/<service>/<mediaid>')
@limiter.limit(downloadLimiter, error_message='Rate Limit Hit')
@limiter.limit(downloadLimiter, lambda : 'global', error_message='Rate Limit Hit')
def stream(service, mediaid):
if service == 'youtube':
if YouTubeAudio.isValid(mediaid):