slimshadow commited on
Commit
7e362ff
·
verified ·
1 Parent(s): 1962f71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ if url:
25
  if "youtube.com" in url or "youtu.be" in url:
26
  st.write("Fetching available formats from YouTube...")
27
  formats = get_youtube_formats(url)
28
- format_options = [f"{f['format_id']} - {f['format_note']} - {f['ext']}" for f in formats]
29
 
30
  format_choice = st.selectbox("Select video quality:", format_options)
31
  selected_format_id = format_choice.split(' ')[0]
 
25
  if "youtube.com" in url or "youtu.be" in url:
26
  st.write("Fetching available formats from YouTube...")
27
  formats = get_youtube_formats(url)
28
+ format_options = [f"{f['format_id']} - {f.get('format_note', 'No note')} - {f['ext']}" for f in formats]
29
 
30
  format_choice = st.selectbox("Select video quality:", format_options)
31
  selected_format_id = format_choice.split(' ')[0]