mirror of
https://github.com/dreammis/social-auto-upload.git
synced 2026-08-30 16:56:34 +08:00
aa5112e985
- Wait until the upload progress reaches 100% before clicking publish. The browser-based upload only progresses while the page is open, so publishing (and closing the browser) mid-upload cut it off and left the video stuck partway (e.g. 76%). - Add optional YT_PROXY (conf.py): where youtube.com is blocked, direct connections time out and the chromium does not use the system proxy, so allow pointing it at a local proxy explicitly.
12 lines
626 B
Python
12 lines
626 B
Python
from pathlib import Path
|
|
|
|
BASE_DIR = Path(__file__).parent.resolve()
|
|
XHS_SERVER = "http://127.0.0.1:11901" # only used by xhs-related flows
|
|
LOCAL_CHROME_PATH = "" # optional, e.g. C:/Program Files/Google/Chrome/Application/chrome.exe
|
|
LOCAL_CHROME_HEADLESS = True # default headless behavior for uploader/examples
|
|
DEBUG_MODE = True # default debug behavior
|
|
# Optional proxy for the YouTube uploader. Where youtube.com is blocked, direct
|
|
# connections time out and the (patchright) chromium does NOT use the system proxy.
|
|
# Point this at your local proxy port, e.g. "http://127.0.0.1:7890". None = no proxy.
|
|
YT_PROXY = None
|