Skip to content

Commit c64e91f

Browse files
authored
fix: cli async main (#18)
release: v1.2.1
1 parent 6fd101a commit c64e91f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ license = "GPL-3.0-only"
3939
name = "yuisub"
4040
readme = "README.md"
4141
repository = "https://github.com/TensoRaws/yuisub"
42-
version = "1.2.0"
42+
version = "1.2.1"
4343

4444
# Requirements
4545
[tool.poetry.dependencies]

yuisub/__main__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
args = parser.parse_args()
2626

2727

28-
async def main() -> None:
28+
async def _main() -> None:
2929
if args.AUDIO and args.SUB:
3030
raise ValueError("Please provide only one input file, either audio or subtitle file")
3131

@@ -55,5 +55,9 @@ async def main() -> None:
5555
sub_bilingual.save(args.OUTPUT_BILINGUAL)
5656

5757

58+
def main() -> None:
59+
asyncio.run(_main())
60+
61+
5862
if __name__ == "__main__":
59-
asyncio.run(main())
63+
main()

0 commit comments

Comments
 (0)