Spaces:
Running
Running
Commit
·
cb26056
1
Parent(s):
b5ab7f5
Trying to understand whats going on
Browse files
routes/ytApi/getPreview.py
CHANGED
@@ -19,7 +19,9 @@ def getPreview(request):
|
|
19 |
if request.method == 'POST': duration = request.form['duration']
|
20 |
else: duration = request.args['duration']
|
21 |
if duration >= 60: duration = 60
|
22 |
-
except
|
|
|
|
|
23 |
|
24 |
try:
|
25 |
if request.method == 'POST': extension = request.form['extension']
|
|
|
19 |
if request.method == 'POST': duration = request.form['duration']
|
20 |
else: duration = request.args['duration']
|
21 |
if duration >= 60: duration = 60
|
22 |
+
except Exception as e:
|
23 |
+
print(e)
|
24 |
+
duration = 30
|
25 |
|
26 |
try:
|
27 |
if request.method == 'POST': extension = request.form['extension']
|