Atualli commited on
Commit
e3ef2e0
1 Parent(s): 656f5fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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