forked from Mirrors/humblebundle-downloader
Support both types of cookie files. Removed cookie gen script. Version bump
This commit is contained in:
@@ -18,19 +18,6 @@ def cli():
|
||||
subparsers = parser.add_subparsers(dest='action')
|
||||
subparsers.required = True
|
||||
|
||||
###
|
||||
# Generate cookie
|
||||
###
|
||||
parser_gencookie = subparsers.add_parser(
|
||||
'gen-cookies',
|
||||
help="Generate cookies used to access your library",
|
||||
)
|
||||
parser_gencookie.add_argument(
|
||||
'-c', '--cookie-file', type=str,
|
||||
help="Location of the file to store the cookie",
|
||||
required=True,
|
||||
)
|
||||
|
||||
###
|
||||
# Download Library
|
||||
###
|
||||
@@ -89,11 +76,8 @@ def cli():
|
||||
|
||||
cli_args = parser.parse_args()
|
||||
|
||||
if cli_args.action == 'gen-cookies':
|
||||
from .generate_cookie import generate_cookie
|
||||
generate_cookie(cli_args.cookie_file)
|
||||
|
||||
elif cli_args.action == 'download':
|
||||
if cli_args.action == 'download':
|
||||
# Still keep the download action to keep compatibility
|
||||
from .download_library import DownloadLibrary
|
||||
DownloadLibrary(
|
||||
cli_args.cookie_file,
|
||||
|
||||
Reference in New Issue
Block a user