tool.poetry.scripts: add bili_get_bvids

This commit is contained in:
yzqzss 2023-06-07 03:45:52 +08:00
parent af28efc3e8
commit 51f1c73a62
2 changed files with 6 additions and 2 deletions

View File

@ -103,7 +103,7 @@ async def by_up_videos(url_or_mid: str) -> Path:
return Path(abs_filepath)
async def main():
async def _main():
args = arg_parse()
if args.by_ranking:
by_raning(args.ranking_rid)
@ -111,5 +111,8 @@ async def main():
assert args.up_videos_mid is not None, 'up_videos_mid 不能为空'
await by_up_videos(args.up_videos_mid)
def main():
asyncio.run(_main())
if __name__ == '__main__':
asyncio.run(main())
main()

View File

@ -14,6 +14,7 @@ internetarchive = "^3.5.0"
[tool.poetry.scripts]
bili_archive_bvids = "biliarchiver:bili_archive_bvids.main"
bili_uploade = "biliarchiver:bili_uploade.main"
bili_get_bvids = "biliarchiver:bili_get_bvids.main"
[build-system]