Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ async def process_conversion(use_youtube, youtube_url, video_file, downscale, fa
|
|
93 |
return "Error: YouTube URL required.", None
|
94 |
yt_uuid = str(uuid.uuid4())
|
95 |
yt_out = os.path.join(UPLOAD_FOLDER, yt_uuid + ".%(ext)s")
|
96 |
-
yt_cmd = ['yt-dlp', '-o', yt_out, '-f',
|
97 |
await run_subprocess(yt_cmd)
|
98 |
pattern = os.path.join(UPLOAD_FOLDER, yt_uuid + ".*")
|
99 |
files = glob.glob(pattern)
|
@@ -123,7 +123,9 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="rose")) as demo:
|
|
123 |
gr.Markdown("""
|
124 |
# 🎥 **Low Quality Video Inator**
|
125 |
|
126 |
-
Upload a video or paste a YouTube URL
|
|
|
|
|
127 |
""")
|
128 |
|
129 |
with gr.Group():
|
|
|
93 |
return "Error: YouTube URL required.", None
|
94 |
yt_uuid = str(uuid.uuid4())
|
95 |
yt_out = os.path.join(UPLOAD_FOLDER, yt_uuid + ".%(ext)s")
|
96 |
+
yt_cmd = ['yt-dlp', '-o', yt_out, '-f', "\"best[protocol*=m3u8][format_id*=tv]/best[format_id*=tv]/b\"", youtube_url]
|
97 |
await run_subprocess(yt_cmd)
|
98 |
pattern = os.path.join(UPLOAD_FOLDER, yt_uuid + ".*")
|
99 |
files = glob.glob(pattern)
|
|
|
123 |
gr.Markdown("""
|
124 |
# 🎥 **Low Quality Video Inator**
|
125 |
|
126 |
+
Upload a video or paste a YouTube URL below then play around with the settings to see which one you like the best.
|
127 |
+
|
128 |
+
Note: YouTube never works
|
129 |
""")
|
130 |
|
131 |
with gr.Group():
|