소스 검색

Update help files

wivb 6 년 전
부모
커밋
fea4afcb6c
3개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 0
      MOREHELP.md
  2. 1 0
      pyinstalive/constants.py
  3. 1 1
      pyinstalive/startup.py

+ 5 - 0
MOREHELP.md

@@ -45,6 +45,7 @@ run_at_finish =
 use_locks = True
 clear_temp_files = False
 do_heartbeat = True
+proxy = 
 ```
 
 ```username```  **—**  Instagram username to login with.
@@ -74,3 +75,7 @@ do_heartbeat = True
 ```clear_temp_files```  **—**  When set to True, PyInstaLive will delete all temporary files that were downloaded as well as the folders which contained these files. Replay folders created by PyInstaLive will not be deleted because they are used to determine if a replay has already been downloaded.
 
 ```do_heartbeat```  **—**  When set to True, PyInstaLive will check the livestream's active status. If set to False no checks will be conducted, and the logged in user will not show up as a viewer during the livestream. May cause degraded performance.
+
+```proxy```  **—**  When set, PyInstaLive will use the specified HTTP proxy. The format should be similar to http://user:pass@proxy.com:12345
+
+

+ 1 - 0
pyinstalive/constants.py

@@ -20,4 +20,5 @@ run_at_finish =
 use_locks = True
 clear_temp_files = False
 do_heartbeat = False
+proxy =
     """

+ 1 - 1
pyinstalive/startup.py

@@ -82,7 +82,7 @@ def validate_inputs(config, args, unknown_args):
         pil.ffmpeg_path = config.get('pyinstalive', 'ffmpeg_path')
         pil.args = args
         pil.config = config
-        pil.proxy = config.get('pyinstalive', 'proxy')
+        pil.proxy = config.get('pyinstalive', 'proxy', fallback=None)
 
         if args.configpath:
             pil.config_path = args.configpath