chuanenlin commited on
Commit
75a3846
1 Parent(s): 8e4f8f7

Update whichframe.py

Browse files
Files changed (1) hide show
  1. whichframe.py +3 -3
whichframe.py CHANGED
@@ -13,9 +13,9 @@ def fetch_video(url):
13
  yt = YouTube(url)
14
  streams = yt.streams.filter(adaptive=True, subtype="mp4", resolution="360p", only_video=True)
15
  length = yt.length
16
- if length >= 300:
17
- st.error("Please find a YouTube video shorter than 5 minutes. Sorry about this, the server capacity is limited for the time being.")
18
- st.stop()
19
  video = streams[0]
20
  return video, video.url
21
 
13
  yt = YouTube(url)
14
  streams = yt.streams.filter(adaptive=True, subtype="mp4", resolution="360p", only_video=True)
15
  length = yt.length
16
+ # if length >= 300:
17
+ # st.error("Please find a YouTube video shorter than 5 minutes. Sorry about this, the server capacity is limited for the time being.")
18
+ # st.stop()
19
  video = streams[0]
20
  return video, video.url
21