mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-06 21:16:56 -06:00
change stream key to static global
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, error_message='Rate Limit Hit')
|
@limiter.limit(downloadLimiter, lambda : 'global', error_message='Rate Limit Hit')
|
||||||
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