mirror of
https://github.com/saveweb/biliarchiver.git
synced 2024-09-19 11:05:28 -07:00
tool.poetry.scripts: add bili_get_bvids
This commit is contained in:
parent
af28efc3e8
commit
51f1c73a62
@ -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()
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user