change error message on global limiter

This commit is contained in:
Xevion
2019-12-25 02:59:19 -06:00
parent 98df7c7338
commit 7baf5164fd

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, lambda : 'global', error_message='Rate Limit Hit')
@limiter.limit(downloadLimiter, lambda : 'global', error_message='429 Too Many Requests')
def stream(service, mediaid):
if service == 'youtube':
if YouTubeAudio.isValid(mediaid):