[go: nahoru, domu]

Skip to content

Commit

Permalink
Remove unused ffmpeg arg
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Jul 1, 2024
1 parent 85505dc commit f7c01ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions auto_editor/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ def edit_media(
if path_ext == ".xml":
from auto_editor.formats.fcp7 import fcp7_read_xml

tl = fcp7_read_xml(paths[0], ffmpeg, log)
tl = fcp7_read_xml(paths[0], log)
assert tl.src is not None
sources: list[FileInfo] = [tl.src]
src: FileInfo | None = tl.src

elif path_ext == ".mlt":
from auto_editor.formats.shotcut import shotcut_read_mlt

tl = shotcut_read_mlt(paths[0], ffmpeg, log)
tl = shotcut_read_mlt(paths[0], log)
assert tl.src is not None
sources = [tl.src]
src = tl.src
Expand Down
4 changes: 2 additions & 2 deletions auto_editor/formats/fcp7.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import TYPE_CHECKING
from xml.etree.ElementTree import Element

from auto_editor.ffwrapper import FFmpeg, FileInfo, initFileInfo
from auto_editor.ffwrapper import FileInfo, initFileInfo
from auto_editor.timeline import ASpace, TlAudio, TlVideo, VSpace, v3

from .utils import Validator, show
Expand Down Expand Up @@ -177,7 +177,7 @@ def read_filters(clipitem: Element, log: Log) -> float:
return 1.0


def fcp7_read_xml(path: str, ffmpeg: FFmpeg, log: Log) -> v3:
def fcp7_read_xml(path: str, log: Log) -> v3:
def xml_bool(val: str) -> bool:
if val == "TRUE":
return True
Expand Down
3 changes: 1 addition & 2 deletions auto_editor/formats/shotcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
if TYPE_CHECKING:
from collections.abc import Sequence

from auto_editor.ffwrapper import FFmpeg
from auto_editor.timeline import TlAudio, TlVideo
from auto_editor.utils.log import Log

Expand All @@ -22,7 +21,7 @@
"""


def shotcut_read_mlt(path: str, ffmpeg: FFmpeg, log: Log) -> v3:
def shotcut_read_mlt(path: str, log: Log) -> v3:
raise NotImplementedError


Expand Down

0 comments on commit f7c01ff

Please sign in to comment.