Support both types of cookie files. Removed cookie gen script. Version bump

This commit is contained in:
Eddy Hintze
2020-05-17 01:38:05 -04:00
parent 0d6a06f950
commit aaa8ecc7ba
6 changed files with 38 additions and 94 deletions

View File

@@ -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,