Updated readme regarding cookies. Added --session-auth cookie option. Fixed #32, Fixed #37, Fixed #30

This commit is contained in:
Eddy Hintze
2021-02-14 14:51:40 +00:00
parent b335e35242
commit c451d407d8
3 changed files with 34 additions and 17 deletions

View File

@@ -25,10 +25,14 @@ def cli():
'download',
help="Download content in your humble bundle library",
)
parser_download.add_argument(
cookie = parser_download.add_mutually_exclusive_group(required=True)
cookie.add_argument(
'-c', '--cookie-file', type=str,
help="Location of the cookies file",
required=True,
)
cookie.add_argument(
'-s', '--session-auth', type=str,
help="Value of the cookie _simpleauth_sess. WRAP IN QUOTES",
)
parser_download.add_argument(
'-l', '--library-path', type=str,
@@ -80,8 +84,9 @@ def cli():
# Still keep the download action to keep compatibility
from .download_library import DownloadLibrary
DownloadLibrary(
cli_args.cookie_file,
cli_args.library_path,
cookie_path=cli_args.cookie_file,
cookie_auth=cli_args.session_auth,
progress_bar=cli_args.progress,
ext_include=cli_args.include,
ext_exclude=cli_args.exclude,