mzltest commited on
Commit
35d8f24
·
1 Parent(s): f3751d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def downloadTubeUpload(query):
86
  video_id = None
87
  for item in search_response:
88
  duration = item.get("duration_raw")
89
- if duration and len(duration.split(':'))< 3and int(duration.split(':')[1])<10:
90
  video_id = item.get("id", {}).get("videoId")
91
  break
92
  print('1-r',video_id)
@@ -163,7 +163,6 @@ def check_file(file_id):
163
  print(f"Progress: {progress}%")
164
 
165
  if task_state == "success":
166
- update_percent("Progress: 100%\n")
167
  stem_track_url = check_result["preview"]["stem_track"]
168
  back_track_url = check_result["preview"]["back_track"]
169
  return stem_track_url, back_track_url
 
86
  video_id = None
87
  for item in search_response:
88
  duration = item.get("duration_raw")
89
+ if duration and len(duration.split(':'))< 3 and int(duration.split(':')[1])<5:
90
  video_id = item.get("id", {}).get("videoId")
91
  break
92
  print('1-r',video_id)
 
163
  print(f"Progress: {progress}%")
164
 
165
  if task_state == "success":
 
166
  stem_track_url = check_result["preview"]["stem_track"]
167
  back_track_url = check_result["preview"]["back_track"]
168
  return stem_track_url, back_track_url