From e1ec448e2e1d382c17e3378474c055b3cc2cfc18 Mon Sep 17 00:00:00 2001 From: LightArrowsEXE Date: Wed, 22 May 2024 16:18:03 +0200 Subject: [PATCH] get_packet_sizes: get_file_from_path_or_clip -> get_file_from_clip --- lvsfunc/packets/info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lvsfunc/packets/info.py b/lvsfunc/packets/info.py index 948adc2..6005b7d 100644 --- a/lvsfunc/packets/info.py +++ b/lvsfunc/packets/info.py @@ -11,7 +11,7 @@ from vstools import (CustomValueError, FuncExceptT, Keyframes, SPath, SPathLike, core, vs) -from ..util import get_file_from_path_or_clip +from ..util import get_file_from_clip __all__ = [ 'get_packet_sizes', @@ -107,8 +107,8 @@ def get_packet_sizes( with open(out_file, "r+") as f: pkt_sizes = [int(pkt) for pkt in f.readlines()] else: - pkt_sizes = _get_frames(sfile, func) - sfile = get_file_from_path_or_clip(clip, src_file, func) + sfile = get_file_from_clip(clip, src_file, func_except=func) + pkt_sizes = _get_frames(sfile, func) # type:ignore[arg-type] if out_file is not None and not (sout := SPath(out_file)).exists(): print(f"Writing packet sizes to \"{sout.absolute()}\"...")