Spaces:
Paused
Paused
Update app.py
Browse files
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
|
| 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]
|