mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-08 08:09:03 -06:00
change error message on global limiter
This commit is contained in:
@@ -44,7 +44,7 @@ def downloadLimiter():
|
|||||||
|
|
||||||
# Streams back the specified media back to the client
|
# Streams back the specified media back to the client
|
||||||
@app.route('/stream/<service>/<mediaid>')
|
@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):
|
def stream(service, mediaid):
|
||||||
if service == 'youtube':
|
if service == 'youtube':
|
||||||
if YouTubeAudio.isValid(mediaid):
|
if YouTubeAudio.isValid(mediaid):
|
||||||
|
|||||||
Reference in New Issue
Block a user