From 837abcdf449f8f1b9ba10c0a202fb19f8080e198 Mon Sep 17 00:00:00 2001 From: Raynoxis <34026291+Raynoxis@users.noreply.github.com> Date: Tue, 25 Nov 2025 00:58:00 +0100 Subject: [PATCH] Restore yt-dlp command display feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add command string back to download API response - Display executed yt-dlp command in frontend - Keep command display for transparency and debugging đŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app.py | 4 ++++ templates/index.html | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index a5bb87c..bb356c0 100644 --- a/app.py +++ b/app.py @@ -290,6 +290,9 @@ def download_video(): # Ajout de l'URL Ă  la fin cmd.append(url) + # Conversion de la commande en string pour affichage + cmd_string = ' '.join(f'"{arg}"' if ' ' in arg else arg for arg in cmd) + logger.info(f"Executing download command for session {session_id}") # ExĂ©cution du tĂ©lĂ©chargement @@ -322,6 +325,7 @@ def download_video(): 'session_id': session_id, 'filename': latest_file.name, 'size': latest_file.stat().st_size, + 'command': cmd_string, 'format_used': format_string, 'postproc_applied': postproc_added, 'audio_codec': audio_codec if audio_codec != 'copy' else 'original (copy)', diff --git a/templates/index.html b/templates/index.html index 3275809..ffe05cf 100644 --- a/templates/index.html +++ b/templates/index.html @@ -577,7 +577,8 @@ `; document.getElementById('commandDisplay').innerHTML = ` -
✅ TĂ©lĂ©chargement prĂȘt
+
📋 Commande exĂ©cutĂ©e :
+ ${data.command} `; document.getElementById('downloadSection').style.display = 'block';