Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,6 +100,15 @@ def getdatalocal():
|
|
100 |
response = Response(res.content, res.status_code, res.headers)
|
101 |
return response
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
@ app.route('/<file>' , methods=['GET'])
|
104 |
def fileget(file):
|
105 |
newurl = 'http://painel.atualli.com/'+file
|
|
|
100 |
response = Response(res.content, res.status_code, res.headers)
|
101 |
return response
|
102 |
|
103 |
+
@ app.route('/getpathvideo', methods=['GET'])
|
104 |
+
def getpathvideo():
|
105 |
+
video = request.args.get('c')
|
106 |
+
newurl = 'http://painel.atualli.com/getpathvideo?c='+video
|
107 |
+
res = requests.get(newurl)
|
108 |
+
|
109 |
+
response = Response(res.content, res.status_code, res.headers,mimetype="video/mp4")
|
110 |
+
return response
|
111 |
+
|
112 |
@ app.route('/<file>' , methods=['GET'])
|
113 |
def fileget(file):
|
114 |
newurl = 'http://painel.atualli.com/'+file
|