mzltest commited on
Commit
c457f93
·
1 Parent(s): a05e39b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def downloadTubeUpload(query):
87
  #search_response = sorted(search_response, key=lambda x: x["views"], reverse=True)
88
  for item in search_response:
89
  duration = item.get("duration_raw")
90
- if duration and len(duration.split(':'))< 3 and int(duration.split(':')[0])<5:
91
  video_id = item.get("id", {}).get("videoId")
92
  break
93
  print('1-r',video_id)
 
87
  #search_response = sorted(search_response, key=lambda x: x["views"], reverse=True)
88
  for item in search_response:
89
  duration = item.get("duration_raw")
90
+ if duration and len(duration.split(':'))< 3 and int(duration.split(':')[0])<10:
91
  video_id = item.get("id", {}).get("videoId")
92
  break
93
  print('1-r',video_id)