Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def downloadaud(query):
|
|
| 19 |
#search_response = sorted(search_response, key=lambda x: x["views"], reverse=True)
|
| 20 |
for item in search_response:
|
| 21 |
duration = item.get("duration_raw")
|
| 22 |
-
if duration and len(duration.split(':'))< 3 and int(duration.split(':')[0])<
|
| 23 |
video_id = item.get("id", {}).get("videoId")
|
| 24 |
break
|
| 25 |
print('1-r',video_id)
|
|
|
|
| 19 |
#search_response = sorted(search_response, key=lambda x: x["views"], reverse=True)
|
| 20 |
for item in search_response:
|
| 21 |
duration = item.get("duration_raw")
|
| 22 |
+
if duration and len(duration.split(':'))< 3 and int(duration.split(':')[0])<10:
|
| 23 |
video_id = item.get("id", {}).get("videoId")
|
| 24 |
break
|
| 25 |
print('1-r',video_id)
|