Skip to content

Commit

Permalink
get_packet_sizes: get_file_from_path_or_clip -> get_file_from_clip
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed May 22, 2024
1 parent 31b925b commit e1ec448
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lvsfunc/packets/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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()}\"...")
Expand Down

0 comments on commit e1ec448

Please sign in to comment.