Browse Source

Update 'pluralsight.py'

master
parent
commit
4172acbccd
  1. 4
      pluralsight.py

4
pluralsight.py

@ -521,7 +521,7 @@ def click_validate_proxy(ctx, param, value) -> Tuple[str, int]: @@ -521,7 +521,7 @@ def click_validate_proxy(ctx, param, value) -> Tuple[str, int]:
@click.command()
@click.option("-i", "--path-id", "path_id", type=int, help="Path ID")
@click.option("-p", "--proxy", "proxy_tuple", default=None, callback=click_validate_proxy, help="Proxy in IP:Port Format")
@click.option("-p", "--proxy", "proxy_tuple", default=None, type=str, callback=click_validate_proxy, help="Proxy in IP:Port Format")
def main(path_id: int, proxy_tuple: Tuple[str, int]):
try:
paths_list, individual_courses_list = get_paths_and_independent_courses(PATHS_JSON_LOCATION,
@ -533,7 +533,7 @@ def main(path_id: int, proxy_tuple: Tuple[str, int]): @@ -533,7 +533,7 @@ def main(path_id: int, proxy_tuple: Tuple[str, int]):
if not 1 <= path_id <= len(paths_list):
raise Exception("Path ID is invalid or is out of range")
result = download_pluralsight_path(paths_list, int(sys.argv[2]), proxy_tuple)
result = download_pluralsight_path(paths_list, path_id, proxy_tuple)
if result:
print("SUCCESS")

Loading…
Cancel
Save