Add method return

This commit is contained in:
544146
2023-09-23 14:11:58 +01:00
parent 981bcbaffe
commit 8dac380bef
+1 -1
View File
@@ -84,7 +84,7 @@ def random_10_digit_int():
return random.randint(10 ** 9, 10 ** 10 - 1)
def convert_egg_to_ogg_and_get_length(egg_path: str):
def convert_egg_to_ogg_and_get_length(egg_path: str) -> tuple[str, float]:
ogg_path = egg_path.replace('.egg', '.ogg')
subprocess.run(
['ffmpeg', '-loglevel', 'quiet', '-y', '-i', egg_path, ogg_path],