mirror of
https://github.com/alexta69/metube.git
synced 2026-09-21 13:35:01 +00:00
b74185b2af
Reported in #881, where the reporter had to reverse-engineer this from the outside over several days: setting YTDL_OPTIONS={"cookiefile": "/cookies/cookies.txt"} appeared to do nothing whenever a cookies file had also been uploaded through the UI. Uploaded cookies winning is correct and stays as it is. The upload exists so cookies can be refreshed without restarting the container, and letting YTDL_OPTIONS win instead would leave a visible UI button that silently does nothing. The defect is that it happened in silence, and could not be reported afterwards even in principle. set_runtime_override writes into YTDL_OPTIONS directly, so the moment an uploaded file is applied the configured path is gone from the live config: delete_cookies' existing has_manual_cookiefile check compares against COOKIES_PATH and therefore cannot fire once the value has been replaced. The two override points are the only places where both paths are still visible, so that is where the warning has to go. The startup path previously logged only "Cookie file detected"; both it and the upload handler now say plainly which file is being ignored and how to get it back. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>