-
-
Save MrDini123/212a2c93e611c9f92b5bbdecd314590f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, redirect, request | |
app = Flask(__name__) | |
@app.route('/test.m3u8') | |
def test(): | |
user_agent = request.headers.get('User-Agent') | |
print(user_agent) | |
return redirect('https://live-par-2-cdn-alt.livepush.io/live/bigbuckbunnyclip/index.m3u8') | |
if __name__ == '__main__': | |
app.run(host='127.0.0.1', port=8082, debug=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment