diff --git a/pyproject.toml b/pyproject.toml index 5e5eaf6..06a0a0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ license = "GPL-3.0-only" name = "yuisub" readme = "README.md" repository = "https://github.com/TensoRaws/yuisub" -version = "1.2.0" +version = "1.2.1" # Requirements [tool.poetry.dependencies] diff --git a/yuisub/__main__.py b/yuisub/__main__.py index 5d551ee..69634f7 100644 --- a/yuisub/__main__.py +++ b/yuisub/__main__.py @@ -25,7 +25,7 @@ args = parser.parse_args() -async def main() -> None: +async def _main() -> None: if args.AUDIO and args.SUB: raise ValueError("Please provide only one input file, either audio or subtitle file") @@ -55,5 +55,9 @@ async def main() -> None: sub_bilingual.save(args.OUTPUT_BILINGUAL) +def main() -> None: + asyncio.run(_main()) + + if __name__ == "__main__": - asyncio.run(main()) + main()