Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ from PIL import Image
|
|
14 |
#import sqlite3
|
15 |
from huggingface_hub import Repository
|
16 |
import subprocess
|
|
|
17 |
|
18 |
app = Flask(__name__, static_url_path='/static')
|
19 |
|
@@ -103,7 +104,8 @@ def getdatalocal():
|
|
103 |
@ app.route('/getpathvideo', methods=['GET'])
|
104 |
def getpathvideo():
|
105 |
video = request.args.get('c')
|
106 |
-
|
|
|
107 |
print(newurl)
|
108 |
res = requests.get(newurl)
|
109 |
|
|
|
14 |
#import sqlite3
|
15 |
from huggingface_hub import Repository
|
16 |
import subprocess
|
17 |
+
import urllib.parse
|
18 |
|
19 |
app = Flask(__name__, static_url_path='/static')
|
20 |
|
|
|
104 |
@ app.route('/getpathvideo', methods=['GET'])
|
105 |
def getpathvideo():
|
106 |
video = request.args.get('c')
|
107 |
+
new = urllib.parse.quote(video)
|
108 |
+
newurl = 'http://painel.atualli.com/getpathvideo?c='+new
|
109 |
print(newurl)
|
110 |
res = requests.get(newurl)
|
111 |
|