Skip to content

Commit 53a3047

Browse files
committed
Remove shotcut stub function
1 parent b0b3514 commit 53a3047

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

auto_editor/edit.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ def edit_media(paths: list[str], args: Args, log: Log) -> None:
174174

175175
tl = fcp7_read_xml(paths[0], log)
176176
elif path_ext == ".mlt":
177-
from auto_editor.formats.shotcut import shotcut_read_mlt
178-
179-
tl = shotcut_read_mlt(paths[0], log)
177+
log.error("Reading mlt files not implemented")
180178
elif path_ext in {".v1", ".v3", ".json"}:
181179
from auto_editor.formats.json import read_json
182180

auto_editor/formats/shotcut.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
from __future__ import annotations
2-
31
import xml.etree.ElementTree as ET
42
from typing import TYPE_CHECKING, Any, cast
53

6-
from auto_editor.timeline import v3
4+
from auto_editor.timeline import TlAudio, TlVideo, v3
75
from auto_editor.utils.func import aspect_ratio, to_timecode
86

97
if TYPE_CHECKING:
108
from collections.abc import Sequence
119

12-
from auto_editor.timeline import TlAudio, TlVideo
13-
from auto_editor.utils.log import Log
1410

1511
"""
1612
Shotcut uses the MLT timeline format
@@ -21,10 +17,6 @@
2117
"""
2218

2319

24-
def shotcut_read_mlt(path: str, log: Log) -> v3:
25-
raise NotImplementedError
26-
27-
2820
def shotcut_write_mlt(output: str, tl: v3) -> None:
2921
mlt = ET.Element(
3022
"mlt",

0 commit comments

Comments
 (0)