diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index c5766402..80d96078 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -26,7 +26,7 @@ jobs: - name: Install python dependencies run: | python -m pip install --upgrade pip - pip install bilix + pip install . - name: Install ffmpeg run: | sudo apt-get update diff --git a/bilix/_cli.py b/bilix/_cli.py index bce2d307..35a76972 100644 --- a/bilix/_cli.py +++ b/bilix/_cli.py @@ -5,23 +5,23 @@ async def download(args): d = Downloader(videos_dir=args.dir, video_concurrency=args.max_con, sess_data=args.cookie) - if args.method == 'get_series' or 's': + if args.method == 'get_series' or args.method == 's': await d.get_series(args.key, quality=args.q, image=args.image, subtitle=args.subtitle, dm=args.dm, only_audio=args.only_audio) - elif args.method == 'get_video' or 'v': + elif args.method == 'get_video' or args.method == 'v': await d.get_video(args.key, quality=args.q, image=args.image, subtitle=args.subtitle, dm=args.dm, only_audio=args.only_audio) - elif args.method == 'get_up' or 'up': + elif args.method == 'get_up' or args.method == 'up': await d.get_up_videos( args.key, quality=args.q, total=args.num, order=args.order, keyword=args.keyword, series=args.no_series) - elif args.method == 'get_cate' or 'cate': + elif args.method == 'get_cate' or args.method == 'cate': await d.get_cate_videos( args.key, quality=args.q, num=args.num, order=args.order, keyword=args.keyword, days=args.days, series=args.no_series) - elif args.method == 'get_favour' or 'fav': + elif args.method == 'get_favour' or args.method == 'fav': await d.get_favour( args.key, quality=args.q, num=args.num, keyword=args.keyword, series=args.no_series) - elif args.method == 'get_collect' or 'col': + elif args.method == 'get_collect' or args.method == 'col': await d.get_collect(args.key) else: print(f'{args.method}不能识别,请使用正确的方法名') diff --git a/setup.py b/setup.py index 74b89ce0..8b4ebbc0 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ def get_license(): setup( name='bilix', python_requires=">=3.8", - version='0.3.3.5', + version='0.3.3.6', author='HFrost0', author_email='hhlfrost@gmail.com', description='⚡️快如闪电的b站视频下载工具,基于Python现代Async异步特性,高速批量下载整部动漫,电视剧,电影,up投稿等',