diff --git a/media-webgui/app.py b/media-webgui/app.py
index 92d5c7f..4ad43c4 100644
--- a/media-webgui/app.py
+++ b/media-webgui/app.py
@@ -307,6 +307,7 @@ def run_aria2(url: str, out_dir: str, proxy: str, progress_cb, headers: List[str
raise subprocess.CalledProcessError(ret, cmd)
+
def md5_file(path: str) -> str:
h = hashlib.md5()
with open(path, "rb") as f:
@@ -432,6 +433,13 @@ def worker(jobid: str):
else:
run_aria2(job.url, OUTPUT_DIR, proxy, update_progress)
+ if engine == "ytdlp":
+ run_ytdlp(job.url, OUTPUT_DIR, YTDLP_FORMAT, proxy)
+ elif engine == "hoster":
+ run_aria2(job.url, OUTPUT_DIR, proxy, headers=headers)
+ else:
+ run_aria2(job.url, OUTPUT_DIR, proxy)
+
new_files = list_output_files(before)
if not new_files:
raise RuntimeError("No output file detected in /output")
@@ -588,6 +596,11 @@ def render_downloads(error: str = "") -> str:
}}
setInterval(refreshProgress, 2000);
+
+ JobID URL Engine Library Proxy Status