Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HFrost0 committed May 5, 2022
1 parent 897408a commit 46a1044
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions bilix/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}不能识别,请使用正确的方法名')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
description='⚡️快如闪电的b站视频下载工具,基于Python现代Async异步特性,高速批量下载整部动漫,电视剧,电影,up投稿等',
Expand Down

0 comments on commit 46a1044

Please sign in to comment.