Add proxy export file support for JDownloader #7
Reference in New Issue
Block a user
Delete Branch "codex/add-proxy-list-import-function"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
Description
PROXY_EXPORT_PATH(env var, default/output/jd-proxies.txt) and asave_proxy_exporthelper to write the normalized list to disk.render_proxies_page.@app.post("/proxies/save")that formats proxies using existingformat_proxy_linesand persists the combined list..successCSS styling and wires the existing/proxiesGET/POST flows to include the export path in the rendered page.Testing
python -m uvicorn app:app --host 0.0.0.0 --port 8080as a smoke test, but it failed becauseuvicornis not installed in the environment.Codex Task
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The export form posts its own hidden
socks*_infields that are populated at render time, so any edits a user makes in the visible textareas (the/proxiesform above) are ignored when clicking “Liste als TXT speichern.” This means the saved TXT can differ from what the user sees/edited, which is a functional bug for the export flow; consider reusing the visible inputs (same form) or copying their current values before submit.Useful? React with 👍 / 👎.